/* Epin Yol - Ana CSS Dosyası */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Dark Theme */
:root {
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --secondary-color: #6b7280;
    --accent-color: #ff6b35;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #374151;
    --dark-color: #111827;
    --text-color: #ffffff;
    --text-muted: #d1d5db;
    --border-color: #4b5563;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --navbar-bg: #1f2937;
    --search-bg: #374151;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --border-radius: 0.375rem;
    --transition: all 0.3s ease;
}

/* Category Badges (pills) */
.category-badges .badges-wrapper { gap: .5rem; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
.category-badges .badges-wrapper::-webkit-scrollbar { height: 6px; }
.category-badges .badges-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .4rem .75rem;
    min-width: 120px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.badge-pill:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.badge-pill img { height: 26px; width: auto; object-fit: contain; filter: none; }
.badge-pill i { font-size: 18px; color: #cbd5e1; }
.badge-pill .title { display: none; }

/* Hero Grid */
.category-badges .badges-viewport { overflow: hidden; }
.category-badges .badges-track { display: inline-flex; gap: .5rem; align-items: center; will-change: transform; transition: transform .5s ease; }
.category-badges { position: relative; }

.hero-grid-section .hero-carousel .carousel-control-prev-icon,
.hero-grid-section .hero-carousel .carousel-control-next-icon { filter: invert(1); }
.hero-grid-section .hero-carousel .carousel-control-prev,
.hero-grid-section .hero-carousel .carousel-control-next { display: none !important; }
.promo-tile {
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    padding: 16px;
}
.promo-tile.bg-gift {
    position: relative;
    overflow: hidden;
}
.promo-tile.bg-gift::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../images/ürünkartı.webp') center/cover no-repeat;
    opacity: .9;
}
.promo-tile.bg-gift::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25));
}
.promo-tile.bg-gift > * { position: relative; z-index: 1; }
.promo-sub { color: #cbd5e1; font-weight: 600; }
.promo-title { font-size: 1.25rem; font-weight: 800; }
.promo-card {
    display: flex; align-items: center; justify-content: center;
    min-height: 120px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff; text-decoration: none; font-weight: 700;
}
.promo-card:hover, .promo-tile:hover { box-shadow: 0 10px 30px rgba(0,0,0,.35); }

.promo-card.bg-grow31 { position: relative; overflow: hidden; }
.promo-card.bg-grow31::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../images/grow31.webp') center/cover no-repeat;
    opacity: .9;
}
.promo-card.bg-grow31::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25));
}
.promo-card.bg-grow31 > * { position: relative; z-index: 1; }

.promo-card.bg-pubg { position: relative; overflow: hidden; }
.promo-card.bg-pubg::before {
    content: '';
    position: absolute; inset: 0;
    background: url('../images/pubg.webp') center/cover no-repeat;
    opacity: .9;
}
.promo-card.bg-pubg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25));
}
.promo-card.bg-pubg > * { position: relative; z-index: 1; }

/* Quick Links */
.quick-links .quick-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; overflow-x: auto; padding-bottom: 4px; }
.quick-links .quick-grid::-webkit-scrollbar { height: 6px; }
.quick-links .quick-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
.quick-links .quick-card {
    display: flex; align-items: center; justify-content: center;
    height: 44px;
    min-width: 120px;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.quick-links .quick-card:hover { background: rgba(255,255,255,0.08); }
.quick-links .quick-name { display:none; }
.quick-links .quick-img { max-height: 26px; width: auto; object-fit: contain; filter: none; }

/* Vitrin Logo Strip */
.vitrin-logos { position: relative; display: flex; align-items: center; gap: .5rem; }
.vitrin-logos .logos-viewport { overflow: hidden; flex: 1; }
.vitrin-logos .logos-track { display: inline-flex; align-items: center; gap: .5rem; will-change: transform; transition: transform .4s ease; }
.vitrin-logos .logo-card { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-width: 110px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.vitrin-logos .logo-card img { max-height: 26px; width: auto; object-fit: contain; }
.vitrin-logos .logo-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #e5e7eb; display:flex; align-items:center; justify-content:center; }
.vitrin-logos .logo-nav:hover { background: rgba(255,255,255,.12); }

/* Category chip on product cards */
.category-chip { background: rgba(59,130,246,.18); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }

/* ================= Chat Floating ================= */
.chat-toggle-btn {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    cursor: pointer;
    z-index: 3000;
}
.chat-toggle-btn i { font-size: 20px; }

.chat-panel {
    position: fixed;
    left: 16px;
    bottom: 80px;
    width: 340px;
    max-height: 60vh;
    display: none;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
    z-index: 3000;
    transition: width .2s ease, max-height .2s ease;
}
.chat-panel.open { display: flex; }
.chat-panel.expanded {
    width: 900px;
    max-height: 80vh;
}
.chat-body { display:flex; min-height: 360px; }
.chat-sidebar { width: 280px; border-right: 1px solid var(--border-color); background: rgba(0,0,0,.2); display:flex; flex-direction: column; }
.chat-sidebar-header { padding: 10px 12px; font-weight: 700; color: var(--text-color); border-bottom: 1px solid var(--border-color); }
.chat-conversations { overflow:auto; padding: 8px; flex:1; }
.conv-item { display:flex; gap:10px; padding:10px; border-radius:12px; cursor:pointer; align-items:center; justify-content: space-between; }
.conv-item:hover { background: rgba(255,255,255,.06); }
.conv-item.active { background: rgba(59,130,246,.25); }
.conv-avatar, .conv-avatar-img { width:36px; height:36px; border-radius:50%; }
.conv-avatar { background:#334155; display:flex; align-items:center; justify-content:center; color:#cbd5e1; font-weight:700; }
.conv-avatar-img { object-fit: cover; border:1px solid rgba(255,255,255,.08); }
.conv-info { display:flex; flex-direction:column; min-width:0; }
.conv-name { color:var(--text-color); font-weight:600; font-size:.9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conv-last { color:var(--text-muted); font-size:.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conv-right { display:flex; flex-direction:column; align-items:flex-end; gap:4px; margin-left:8px; }
.conv-time { color:var(--text-muted); font-size:.75rem; }
.chat-main { flex:1; display:flex; flex-direction:column; }
.chat-header { background: #0f172a; color:#fff; padding:.5rem .75rem; display:flex; align-items:center; justify-content: space-between; }
.chat-header .title { font-weight:700; font-size:.95rem; }
.chat-user-results { max-height: 140px; overflow:auto; padding: 4px 8px; }
.chat-user-results .result { padding:6px 8px; border-radius:8px; cursor:pointer; color: var(--text-color); }
.chat-user-results .result:hover { background: rgba(255,255,255,.06); }
.chat-messages { flex:1; overflow:auto; padding:16px; background: rgba(0,0,0,.15); }
.chat-input { display:flex; gap:6px; padding:8px; border-top:1px solid var(--border-color); background: var(--card-bg); }
.chat-input .form-control { background: var(--search-bg); color: var(--text-color); border:1px solid var(--border-color); }
.msg { margin:6px 0; display:flex; flex-direction: column; max-width: 80%; }
.msg.own { margin-left:auto; align-items: flex-end; }
.bubble { padding:8px 10px; background:#1d4ed8; color:#fff; border-radius:12px; }
.msg.own .bubble { background:#16a34a; }
.time { font-size:.7rem; color: var(--text-muted); margin-top:2px; }

@media (max-width: 576px) {
    .chat-panel { width: 92vw; left: 4vw; bottom: 76px; }
    .chat-panel.expanded { width: 96vw; left: 2vw; max-height: 85vh; }
    .chat-sidebar { width: 40%; }
}

/* Search suggestions */
.search-bar-wrapper .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    overflow-y: auto;
    z-index: 2000;
}

.search-suggestions .suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestions .suggest-item:hover {
    background: rgba(255,255,255,0.06);
}

.search-suggestions .thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.08);
}

.search-suggestions .info {
    display: flex;
    flex-direction: column;
}

.search-suggestions .name { font-weight: 600; font-size: 0.9rem; color: var(--text-color); }
.search-suggestions .meta { font-size: 0.8rem; color: var(--text-muted); }

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    /* layered dark gradient similar to itempazar */
    background: radial-gradient(1200px 600px at 20% -10%, rgba(59,130,246,.15), transparent 60%),
                radial-gradient(1000px 500px at 90% -10%, rgba(147,51,234,.12), transparent 60%),
                linear-gradient(180deg, #0b1220, #0e1424 40%, #0a1020 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Home page specific styles (arkaplan.png already applied to body) */
.home-page {
    position: relative;
}

/* Remove overlay to show pure image */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #f3f4f6;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
}

/* Header Styles */
.navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

/* Top utility bar */
.top-utility-bar {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}
.top-utility-bar .util-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .9rem;
}
.top-utility-bar .util-link:hover { color: #fff; }

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: white !important;
}

.navbar-logo {
    height: 2.5rem;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: white !important;
}

/* Language Selector */
.language-selector .btn {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: transparent;
    transition: var(--transition);
}

.language-selector .btn:hover {
    background-color: var(--search-bg);
    border-color: var(--text-muted);
}

/* Search Input */
.search-input {
    border-radius: 0.5rem 0 0 0.5rem !important;
    border-right: none !important;
}

.search-input:focus {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    background-color: var(--search-bg) !important;
}

.search-input::placeholder {
    color: var(--text-muted) !important;
}

/* Search Button */
.search-input + .btn {
    border-radius: 0 0.5rem 0.5rem 0 !important;
    border-left: none !important;
}

.search-input:focus + .btn {
    border-color: var(--primary-color) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}

.dropdown-item {
    color: var(--text-color) !important;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--search-bg) !important;
    color: white !important;
}

.dropdown-divider {
    border-color: var(--border-color) !important;
}



/* Kategori Carousel Stilleri */
.category-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.category-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.category-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1rem;
}

.category-carousel-item {
    flex: 0 0 calc(25% - 0.75rem);
    min-width: calc(25% - 0.75rem);
}

/* Navigation Buttons */
.category-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.category-nav-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.category-nav-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.category-nav-prev {
    left: 10px;
}

.category-nav-next {
    right: 10px;
}

/* Dots Indicator */
.category-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.category-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.category-dot:hover {
    background: var(--accent-color);
}

/* Kategori Stilleri */
.category-item {
    transition: var(--transition);
    padding: 1rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-item:hover .category-image {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.category-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--border-color) 100%);
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.category-item:hover .category-image-placeholder {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 100%);
    color: var(--primary-color);
}

.category-name {
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-item:hover .category-name {
    color: var(--primary-color);
}

/* Avatar Stilleri */
.avatar-section {
    padding: 1rem;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.current-avatar:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--border-color) 100%);
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--text-muted);
    transition: var(--transition);
}

.avatar-placeholder:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 100%);
    color: var(--primary-color);
}

.avatar-upload-form {
    max-width: 400px;
    margin: 0 auto;
}

.avatar-upload-form .form-control {
    border: 2px dashed var(--border-color);
    background: var(--light-color);
    transition: var(--transition);
}

.avatar-upload-form .form-control:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.avatar-upload-form .form-control:hover {
    border-color: var(--accent-color);
    background: white;
}

/* Ürün Detay Resim Stilleri */
.product-detail-image {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.product-detail-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product-thumbnail {
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* Resim Yükleme Hata Durumu */
.image-error {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mesaj ve Bildirim Stilleri */
.alert {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Bakiye Gösterimi */
.nav-link .text-success {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #28a745 !important;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(40, 167, 69, 0.3);
    background: rgba(40, 167, 69, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link .fas.fa-wallet {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    color: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobilde bakiye gösterimi */
@media (max-width: 991.98px) {
    .nav-link .text-success {
        font-size: 1.1rem;
        padding: 0.25rem 0.5rem;
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
    }
    
    .nav-link .fas.fa-wallet {
        font-size: 1.3rem;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

/* Main content background for home page */
.home-page .main-content {
    background: transparent; /* Inherit from body */
}

/* Anasayfa Özel Stilleri */
.hero-section {
    background: transparent;
    color: var(--dark-color);
    padding: 2rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    transition: var(--transition);
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-buttons {
    gap: 1rem;
}

.hero-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Bakiye Gösterimi */
.nav-link .text-success {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 0.375rem;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Bildirim Dropdown */
#notificationsDropdown {
    position: relative;
}

#notificationsDropdown .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-header {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Çentik Menü */
.nav-link .fa-bars {
    font-size: 1.1rem;
}

/* Ürün Kartları */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg-secondary));
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    border-radius: 0;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-card .card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-stock {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Badge Stilleri */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

/* Buton Stilleri */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: white;
}

/* Fotoğraf Modal Stilleri */
#imageModal .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 12px;
}

#imageModal .modal-header {
    background: transparent;
}

#imageModal .modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal .modal-footer {
    background: transparent;
}

#modalImage {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 0.9rem;
    }
    
    .product-card .card-text {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Yuvarlak Kategori Kartları */
.category-card-wrapper {
    margin-bottom: 1rem;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.category-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #007bff;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 50%;
}

.category-content {
    text-align: center;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

/* İlan Ekle Footer Kısmı */
.footer-ilan-ekle h6 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-ilan-ekle .mb-3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-ilan-ekle i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    color: #007bff;
}

.footer-ilan-ekle .text-muted {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #6c757d;
}

.footer-ilan-ekle .btn {
    margin-top: 0.5rem;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-ilan-ekle .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .dropdown-menu {
        text-align: left;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    background: var(--card-bg);
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Sepete Ekle Butonu */
.add-to-cart {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Product Cards */
.product-card {
    height: 100%;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
}

.product-stock {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    background-color: var(--search-bg);
    color: #ffffff;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 65, 81, 0.25);
    background-color: var(--search-bg);
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-text {
    color: var(--text-muted) !important;
}

.form-check-label {
    color: var(--text-color);
}

.form-check-input {
    background-color: var(--search-bg);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 65, 81, 0.25);
}

/* Input Groups */
.input-group-text {
    background-color: var(--search-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-select {
    border-left: none;
}

.input-group .form-control:focus + .input-group-text,
.input-group .input-group-text + .form-control:focus {
    border-color: var(--primary-color);
}

/* Form Switch */
.form-switch .form-check-input {
    background-color: var(--border-color);
    border-color: var(--border-color);
}

.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(55, 65, 81, 0.25);
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

textarea.form-control:focus {
    resize: vertical;
}

/* File Input */
input[type="file"].form-control {
    padding: 0.5rem;
}

input[type="file"].form-control::-webkit-file-upload-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"].form-control::-webkit-file-upload-button:hover {
    background-color: var(--primary-dark);
}

input[type="file"].form-control::file-selector-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"].form-control::file-selector-button:hover {
    background-color: var(--primary-dark);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
    color: var(--text-color);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--primary-color);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    color: white;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--navbar-bg) !important;
    border-top: 1px solid var(--border-color);
}

footer h5,
footer h6,
footer p,
footer span,
footer a {
    color: white !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}

footer a:hover {
    color: white !important;
}

footer a:hover {
    color: var(--light-color) !important;
    text-decoration: none;
}

.social-links a {
    transition: var(--transition);
    display: inline-block;
    color: white !important;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--light-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .main-content {
        padding-top: 60px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .category-carousel-container {
        padding: 0 40px;
    }
    
    .category-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .category-carousel-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }
    
    /* Mobile Header */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .language-selector {
        display: none;
    }
    
    .search-input {
        font-size: 0.875rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .category-carousel-item {
        flex: 0 0 calc(100% - 0.25rem);
        min-width: calc(100% - 0.25rem);
    }
}

/* Hide search/login buttons in header for mobile; keep only brand + hamburger */
@media (max-width: 991.98px) {
    .navbar .language-selector,
    .navbar .search-input,
    .navbar .dropdown,
    /* hide any top-level navbar menus in the header bar, but NOT the collapse content */
    .navbar > .container > .navbar-nav,
    .navbar > .container .btn {
        display: none !important;
    }
}


/* Prevent header layout breaking on half-width desktop */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .navbar .navbar-brand { margin-right: auto; }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-dark { color: var(--text-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

.shadow-sm { box-shadow: var(--shadow) !important; }
.shadow { box-shadow: var(--shadow-lg) !important; }

.rounded { border-radius: var(--border-radius) !important; }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}



/* Table Styles */
.table {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--search-bg);
    color: var(--text-color);
    border-color: var(--border-color);
    font-weight: 600;
}

.table td {
    border-color: var(--border-color);
    color: var(--text-color);
}

.table-hover tbody tr:hover {
    background-color: var(--search-bg);
}

/* List Group */
.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.list-group-item:hover {
    background-color: var(--search-bg);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination .page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.pagination .page-link:hover {
    background-color: var(--search-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal-body {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Hero Carousel Section */
.hero-carousel-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.hero-carousel-container {
    max-width: 1320px;
    margin: 0 auto;
    height: 900px;
}

/* Side Banners */
.side-banners {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.side-banner img {
    transition: transform 0.3s ease;
}

.side-banner:hover img {
    transform: scale(1.05);
}

.side-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1rem;
    color: white;
}

.side-banner-overlay h6 {
    margin: 0;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.side-banner-overlay small {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-carousel-container .row {
        flex-direction: column;
    }
    
    .side-banners {
        flex-direction: row;
        margin-bottom: 1rem;
    }
    
    .side-banner {
        flex: 1;
        margin-right: 0.5rem;
    }
    
    .side-banner:last-child {
        margin-right: 0;
    }
    
    .side-banner img {
        height: 120px !important;
    }
    
    .side-banner-overlay {
        padding: 0.5rem;
    }
    
    .side-banner-overlay h6 {
        font-size: 0.9rem;
    }
    
    .side-banner-overlay small {
        font-size: 0.7rem;
    }
}

/* Main Carousel */
.hero-main-carousel {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

#heroCarousel {
    height: 100%;
}

#heroCarousel .carousel-inner {
    height: 100%;
}

#heroCarousel .carousel-item {
    height: 100%;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#heroCarousel .carousel-caption {
    background: rgba(0,0,0,0.7);
    border-radius: 15px;
    padding: 2rem;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
}

#heroCarousel .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#heroCarousel .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

#heroCarousel .carousel-indicators {
    bottom: 1.5rem;
}

#heroCarousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: 2px solid transparent;
    margin: 0 6px;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-control-prev {
    left: 1.5rem;
}

#heroCarousel .carousel-control-next {
    right: 1.5rem;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-carousel-container { height: 840px; }
}

@media (max-width: 1200px) {
    .hero-carousel-container { height: 780px; }
}

/* 5 kart için spacing iyileştirme ve görsel yüksekliği küçültme */
@media (min-width: 1400px) {
    .product-card .product-image { height: 180px !important; }
}

@media (max-width: 992px) {
    .hero-carousel-container { height: 720px; }
    
    #heroCarousel .carousel-caption h2 {
        font-size: 2rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel-container { 
        height: 700px; 
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    
    #heroCarousel .carousel-item img {
        height: 700px;
        object-fit: cover;
        object-position: center;
        width: 100%;
        background: rgba(0,0,0,0.1);
    }
    
    #heroCarousel .carousel-caption {
        padding: 1.5rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    #heroCarousel .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    
    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    #heroCarousel .carousel-control-prev {
        left: 1rem;
    }
    
    #heroCarousel .carousel-control-next {
        right: 1rem;
    }
}

/* Mobile (phones) specific tweaks */
@media (max-width: 576px) {
    /* Hero area: larger on mobile to match reference image */
    .hero-carousel-section { 
        margin: 0.5rem 0; 
        padding: 0; 
        margin-bottom: 2rem;
    }
    .hero-carousel-container { 
        height: 650px; 
        max-width: 100%; 
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    #heroCarousel .carousel-caption { display: none; }
    #heroCarousel .carousel-item img {
        height: 650px;
        object-fit: cover;
        object-position: center;
        width: 100%;
        background: rgba(0,0,0,0.1);
    }

    /* Product grid: 2 columns on mobile */
    .product-grid .col-lg-2,
    .product-grid .col-md-3,
    .product-grid .col-sm-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Product cards on mobile */
    .market-card {
        margin-bottom: 1rem;
    }
    
    .market-card .card-img-top {
        height: 200px !important;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }
    
    .market-card .card-body {
        padding: 1rem;
    }
    
    .market-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .market-card .price-badge {
        font-size: 1.1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .market-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }


    /* Categories: edge-to-edge */
    .game-categories-section .container-fluid { padding-left: 0; padding-right: 0; }
    .game-category-nav { width: 36px; height: 36px; }
}

/* Bottom tab bar style for mobile (fixed, like the reference) */
@media (max-width: 576px) {
    .mobile-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.9);
        border-top: 1px solid var(--border-color);
        backdrop-filter: blur(12px);
        display: flex;
        justify-content: space-around;
        padding: 8px 6px env(safe-area-inset-bottom, 8px);
        z-index: 1050;
    }
    .mobile-tabbar a {
        color: var(--text-color);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 4px;
    }
    .mobile-tabbar a i { font-size: 18px; }
}

/* Mobile navbar dropdown panel behaviour (for header.php) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    #mobileNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem 1rem 1rem;
        z-index: 1051;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
    }
    #mobileNav .nav-link { 
        padding: 0.75rem 0; 
        color: var(--text-color) !important;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    #mobileNav .nav-link:last-child {
        border-bottom: none;
    }
    #mobileNav .nav-link:hover {
        color: var(--primary-color) !important;
        background: rgba(255, 255, 255, 0.05);
        padding-left: 0.5rem;
    }
    
    /* Hamburger button styling */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .navbar-toggler.active {
        background: var(--primary-color);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    #mobileNav {
        display: none !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
}

/* Mobile header layout for non-logged users */
@media (max-width: 991.98px) {
    .navbar:not(.logged-in) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar:not(.logged-in) .navbar-toggler {
        order: 1;
        margin-right: auto;
    }
    
    .navbar:not(.logged-in) .navbar-brand {
        order: 2;
        margin: 0 auto;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar:not(.logged-in) .btn {
        order: 3;
        margin-left: auto;
    }
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 3rem;
}

.loading-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.loading-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 5px;
    left: 5px;
    border-top-color: #3b82f6;
    animation-delay: 0.1s;
}

.spinner-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #1d4ed8;
    animation-delay: 0.2s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #1d4ed8);
    border-radius: 2px;
    width: 0%;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Hide main content during loading */
body.loading .main-content {
    opacity: 0;
    visibility: hidden;
}


/* Desktop - Carousel'i göster ama nokta ve okları gizle */
@media (min-width: 769px) {
    .hero-carousel-section {
        display: block !important;
    }
    
    /* Carousel nokta göstergelerini gizle */
    .carousel-indicators {
        display: none !important;
    }
    
    /* Carousel ok butonlarını gizle */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    /* Carousel açıklamalarını gizle */
    .carousel-caption {
        display: none !important;
    }
    
    /* Desktop carousel boyutu */
    .hero-main-carousel {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-main-carousel .carousel-item img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}
@media (max-width: 768px) {
    /* Ana carousel için mobil optimizasyonları */
    .hero-main-carousel {
        height: 60vh !important; /* Mobilde daha yüksek */
        min-height: 400px;
    }
    
    .hero-main-carousel .carousel-inner {
        height: 100%;
    }
    
    .hero-main-carousel .carousel-item {
        height: 100%;
    }
    
    .hero-main-carousel .carousel-item img {
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }
    
    /* Carousel nokta göstergelerini gizle */
    .carousel-indicators {
        display: none !important;
    }
    
    /* Carousel ok butonlarını gizle */
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    /* Carousel caption'ları mobilde daha büyük */
    .carousel-caption {
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 10px;
        padding: 15px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
    }
    
    .carousel-caption p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
}
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Kar taneleri için farklı boyutlar ve hızlar */
.snowflake:nth-child(1) { animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { animation-duration: 8s; animation-delay: 2s; }
.snowflake:nth-child(4) { animation-duration: 15s; animation-delay: 3s; }
.snowflake:nth-child(5) { animation-duration: 11s; animation-delay: 4s; }
.snowflake:nth-child(6) { animation-duration: 9s; animation-delay: 5s; }
.snowflake:nth-child(7) { animation-duration: 13s; animation-delay: 6s; }
.snowflake:nth-child(8) { animation-duration: 7s; animation-delay: 7s; }
.snowflake:nth-child(9) { animation-duration: 14s; animation-delay: 8s; }
.snowflake:nth-child(10) { animation-duration: 10s; animation-delay: 9s; }
.snowflake:nth-child(11) { animation-duration: 12s; animation-delay: 10s; }
.snowflake:nth-child(12) { animation-duration: 8s; animation-delay: 11s; }
.snowflake:nth-child(13) { animation-duration: 15s; animation-delay: 12s; }
.snowflake:nth-child(14) { animation-duration: 11s; animation-delay: 13s; }
.snowflake:nth-child(15) { animation-duration: 9s; animation-delay: 14s; }
.snowflake:nth-child(16) { animation-duration: 13s; animation-delay: 15s; }
.snowflake:nth-child(17) { animation-duration: 7s; animation-delay: 16s; }
.snowflake:nth-child(18) { animation-duration: 14s; animation-delay: 17s; }
.snowflake:nth-child(19) { animation-duration: 10s; animation-delay: 18s; }
.snowflake:nth-child(20) { animation-duration: 12s; animation-delay: 19s; }

.notification-badge {
    background: #ef4444; /* Kırmızı */
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    position: absolute;
    top: 6px;
    right: 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.balance-amount {
    background: #10b981; /* Yeşil */
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}


/* Güvenli Giriş Loading Sayfası */
.secure-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-login-modal {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.secure-login-header {
    margin-bottom: 30px;
}

.secure-login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.secure-login-header h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.secure-login-header p {
    color: #b0b0b0;
    font-size: 16px;
    margin: 0;
}

.secure-login-spinner {
    margin: 30px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.secure-login-status {
    margin: 30px 0;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0;
    color: #b0b0b0;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.status-item.active {
    color: #4CAF50;
    opacity: 1;
}

.status-item.completed {
    color: #2196F3;
    opacity: 1;
}

.status-item i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
}

.secure-login-info {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    color: #ffc107;
    font-size: 14px;
}

.secure-login-info i {
    margin-right: 10px;
    font-size: 16px;
}

/* Kar Yağdırma Efekti */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.snowflake:nth-child(1) { animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { animation-duration: 12s; animation-delay: 1s; }
.snowflake:nth-child(3) { animation-duration: 8s; animation-delay: 2s; }
.snowflake:nth-child(4) { animation-duration: 15s; animation-delay: 3s; }
.snowflake:nth-child(5) { animation-duration: 11s; animation-delay: 4s; }
.snowflake:nth-child(6) { animation-duration: 9s; animation-delay: 5s; }
.snowflake:nth-child(7) { animation-duration: 13s; animation-delay: 6s; }
.snowflake:nth-child(8) { animation-duration: 7s; animation-delay: 7s; }
.snowflake:nth-child(9) { animation-duration: 14s; animation-delay: 8s; }
.snowflake:nth-child(10) { animation-duration: 10s; animation-delay: 9s; }

