﻿:root {
    /* LIGHT THEME VARIABLES */
    --bg-gradient-start: #ffffff;
    --bg-gradient-mid: #f5f7fb;
    --bg-gradient-end: #eef2ff;
    --text-primary: #111827;
    --muted: #6b7280;
    --primary: #2563eb;
    --secondary: #7c3aed;
    --card-surface: rgba(255, 255, 255, 0.92);
    --border: rgba(17, 24, 39, 0.12);
}

/* ========== GLOBAL ========== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.10) 0%, transparent 55%), radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 55%), radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 55%);
        animation: moveBackground 18s ease-in-out infinite;
        z-index: 0;
    }

@keyframes moveBackground {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(45px, 25px);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

    a:hover {
        color: var(--secondary);
    }

.page-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}

/* ========== NAVBAR ========== */

.navbar.neon-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    padding: 1.1rem 0;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.18);
    letter-spacing: 0.5px;
}

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.navbar-link {
    font-weight: 600;
    color: #374151;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    position: relative;
    display: inline-block;
}

    .navbar-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .navbar-link:hover {
        color: var(--primary);
        background: rgba(37, 99, 235, 0.08);
    }

        .navbar-link:hover::before {
            width: 80%;
        }

.navbar-actions .btn {
    border-radius: 12px;
    font-weight: 700;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.6rem;
}

/* ========== BUTTONLAR ========== */

.btn {
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(17, 24, 39, 0.06);
        transform: translate(-50%, -50%);
        transition: width 0.5s, height 0.5s;
    }

    .btn:hover::before {
        width: 280px;
        height: 280px;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.btn-outline {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    border: 2px solid rgba(37, 99, 235, 0.45);
}

.btn.btn-xs {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 10px;
}

/* ========== HERO (hazırda istifadə olunmur, amma qalsın) ========== */

.hero-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-radius: 22px;
    padding: 2.6rem 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #111827 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1rem;
}

/* ========== AXTARIŞ BLOKU ========== */

.search-shell {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.search-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.category-narrow {
    flex: 0.7;
    min-width: 150px;
}

.search-visible::placeholder {
    color: #9ca3af;
}

.search-visible {
    color: var(--text-primary);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.14);
    border-radius: 12px;
    color: #111827;
}

    .form-control::placeholder {
        color: #9ca3af;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(37, 99, 235, 0.55);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
        background: #ffffff;
    }

/* ========== POPULYAR KATEQORİYALAR ========== */

.category-section {
    margin-top: 1.8rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
}

.category-wrapper {
    position: relative;
}

.category-grid {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.6) rgba(17, 24, 39, 0.06);
}

    .category-grid::-webkit-scrollbar {
        height: 8px;
    }

    .category-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border-radius: 10px;
    }

.category-card {
    min-width: 140px;
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .category-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 20px 45px rgba(17, 24, 39, 0.10);
    }

    .category-card.active {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.10) 0%, rgba(124, 58, 237, 0.10) 100%);
        border-color: rgba(37, 99, 235, 0.35);
    }

.category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.category-name {
    font-weight: 700;
    font-size: 0.8rem;
    color: #111827;
}

.category-count {
    font-size: 0.7rem;
    color: var(--muted);
}

/* ========== ONLAYN MAĞAZA SAĞ TƏRƏFDƏ ========== */

.category-store-section {
    margin-top: 0.8rem;
}

.store-sidebar {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
    font-size: 0.82rem;
}

.store-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.store-mini-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.4rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.10);
    font-size: 0.92rem;
}

    .store-mini-item:last-child {
        border-bottom: none;
    }

.store-thumb {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.gradient-a {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.gradient-b {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

.gradient-c {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
}

/* store sidebar içində text-white-50 istifadə etmisən, light üçün düzəldirik */
.store-sidebar .text-white-50,
.store-sidebar .small.text-white-50 {
    color: var(--muted) !important;
}

/* ========== VIP ELANLAR ========== */

.vip-section {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem 1rem;
    background: rgba(255, 251, 235, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.10);
}

.vip-grid {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.6) transparent;
}

    .vip-grid::-webkit-scrollbar {
        height: 6px;
    }

    .vip-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #f59e0b, #fbbf24);
        border-radius: 999px;
    }

.vip-card {
    position: relative;
    min-width: 210px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.96));
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 0.55rem 0.6rem 0.65rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .vip-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
        border-color: rgba(245, 158, 11, 0.75);
    }

.vip-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 0.12rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #3b2c00;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.vip-image-wrapper {
    position: relative;
    padding-top: 58%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(37, 99, 235, 0.06);
    margin-bottom: 0.45rem;
}

.vip-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vip-body {
    font-size: 0.83rem;
    color: #111827;
}

.vip-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(245, 158, 11, 0.95);
    opacity: 0.95;
}

.vip-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0.15rem 0 0.12rem;
    color: #111827;
}

.vip-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem;
}

.vip-price {
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-city {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ========== MƏHSUL KARTLARI (SƏNİN “NORMAL” STİLİN + STANDART HÜNDÜRLÜK) ========== */

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.3rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.product-card {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(17, 24, 39, 0.10);
    position: relative;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-10px) scale(1.01);
        box-shadow: 0 25px 65px rgba(17, 24, 39, 0.14);
        border-color: rgba(37, 99, 235, 0.35);
    }

    .product-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
        opacity: 0;
        transition: opacity 0.35s ease;
    }

    .product-card:hover::before {
        opacity: 1;
    }

.product-image-wrapper {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.04);
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-content {
    position: relative;
    padding: 1.2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 800;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.4rem 0;
    color: var(--text-primary);
}

.product-description {
    color: var(--muted);
    font-size: 0.9rem;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(17, 24, 39, 0.10);
    margin-top: auto; /* kartın altına yapışsın */
}

.product-price {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-soft {
    background: rgba(37, 99, 235, 0.10);
    color: var(--primary);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
}

/* ========== ADVANCED FILTER PANEL ========== */

.advanced-filter-panel {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
}

.filter-section {
    background: rgba(249, 250, 251, 0.95);
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 14px;
    padding: 1.1rem;
}

/* ========== FOOTER ========== */

.modern-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--border);
    padding: 1.6rem 1.2rem;
    color: var(--text-primary);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* footer içində text-white-50 istifadə olunubsa */
.modern-footer .text-white-50,
.modern-footer .small.text-white-50 {
    color: var(--muted) !important;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .page-shell {
        padding: 1.5rem 1rem 2rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-collapse.show .navbar-menu {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.96);
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 0.8rem;
        border: 1px solid var(--border);
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .vip-card {
        min-width: 190px;
    }

    .marketplace-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Onlayn mağaza sağ tərəf */
.category-store-section {
    margin-top: 0.8rem;
}

.store-sidebar {
    background: var(--card-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.6rem 0.7rem; /* AZALDILDI */
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.08);
    font-size: 0.8rem; /* AZALDILDI */
}

/* əlavə class – hündürlüyü məcburi etmir */
.store-compact {
    height: auto;
}

.store-mini-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem; /* AZALDILDI */
}

.store-mini-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* AZALDILDI */
    padding: 0.35rem 0.3rem; /* AZALDILDI */
    border-bottom: 1px solid rgba(17, 24, 39, 0.10);
    font-size: 0.8rem;
}

    .store-mini-item:last-child {
        border-bottom: none;
    }

.store-thumb {
    width: 32px; /* AZALDILDI */
    height: 32px; /* AZALDILDI */
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}

/* ================= MOBİL DİZAYN (<= 768px) ================= */
@media (max-width: 768px) {

    /* Ümumi */
    body {
        font-size: 0.95rem;
    }

    .page-shell {
        padding: 1.2rem 0.8rem 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    /* NAVBAR */
    .navbar.neon-navbar {
        padding: 0.7rem 0;
    }

    .navbar-container {
        padding: 0 0.9rem;
        gap: 0.7rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .navbar-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        width: 100%;
        margin-top: 0.6rem;
    }

    .navbar-collapse.show {
        background: rgba(255, 255, 255, 0.96);
        border-radius: 12px;
        padding: 0.7rem 0.9rem;
        margin-top: 0.4rem;
        box-shadow: 0 12px 30px rgba(17, 24, 39, 0.10);
        border: 1px solid var(--border);
    }

    .navbar-actions {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-start;
    }

        .navbar-actions .btn {
            flex: 1;
            text-align: center;
        }

    /* AXTARIŞ BLOKU */
    .search-shell {
        padding: 1.0rem 0.9rem;
        border-radius: 16px;
    }

    .search-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .search-field,
    .category-narrow {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    /* POPULYAR KATEQORİYALAR + ONLAYN MAĞAZA */
    .category-store-section .row {
        flex-direction: column;
    }

    .category-section {
        margin-top: 1.2rem;
    }

    .category-grid {
        padding-bottom: 0.6rem;
    }

    .category-card {
        min-width: 130px;
        padding: 0.55rem;
    }

    .store-sidebar {
        margin-top: 0.8rem;
        padding: 0.7rem 0.8rem;
    }

    .store-mini-item {
        padding: 0.3rem 0.25rem;
        gap: 0.45rem;
        font-size: 0.78rem;
    }

    .store-thumb {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    /* VIP ELANLAR */
    .vip-section {
        margin-top: 1.0rem;
        padding: 0.8rem 0.8rem 0.9rem;
    }

    .vip-grid {
        padding-bottom: 0.4rem;
    }

    .vip-card {
        min-width: 190px;
    }

    /* NORMAL PRODUCT KARTLARI */
    .marketplace-grid {
        grid-template-columns: 1fr; /* kartlar tək sütun */
        gap: 1rem;
        margin-top: 1rem;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-content {
        padding: 0.9rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
        min-height: auto;
    }

    .product-price {
        font-size: 1.3rem;
    }

    /* Alert, badge və s. */
    .badge-soft {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Yeni elan formu üçün daha tünd mətn rəngləri */
.create-listing-form .form-control,
.create-listing-form .form-select,
.create-listing-form textarea.form-control {
    background-color: #ffffff; /* ağ fon */
    color: #111827; /* tünd mətn */
    border-color: rgba(148, 163, 184, .7);
}

    /* Placeholder (boş olanda görünən yazı) */
    .create-listing-form .form-control::placeholder,
    .create-listing-form textarea.form-control::placeholder {
        color: #9ca3af;
        opacity: 1;
    }

/* Label və switch yazıları da tünd olsun */
.create-listing-form .form-label,
.create-listing-form .form-check-label {
    color: #111827;
}

/* Şəhər / select option-lardakı mətnlər */
.create-listing-form .form-select option {
    color: #111827;
}

/* Autofill olanda da ağ fon + tünd yazı qalsın (Chrome üçün) */
.create-listing-form input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #111827 !important;
}
