/* ========================================
   FLAT DARK THEME
   Clean, sharp, no effects
   ======================================== */

:root {
    --neo-bg: #111318;
    --neo-surface: #1a1d24;
    --neo-surface-hover: #22252e;
    --neo-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    --neo-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
    --neo-inset: none;
    --neo-radius: 12px;
    --neo-radius-sm: 8px;
    --neo-radius-pill: 50px;
    --primary: #00AFF0;
    --primary-glow: rgba(0, 175, 240, 0.15);
    --primary-soft: rgba(0, 175, 240, 0.1);
    --text-primary: #e8ecf1;
    --text-secondary: #7d8590;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.14);
    --card-bg: #1a1d24;
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    background: var(--neo-bg) !important;
    color: var(--text-primary);
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--neo-bg) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
}
.nav-logo .logo-text {
    text-shadow: none;
}
.nav-link {
    transition: color 0.15s !important;
}
.nav-link:hover {
    color: var(--primary) !important;
}
.nav-cta {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    transition: opacity 0.15s;
    margin-left: 12px;
}
.nav-cta:hover {
    opacity: 0.9;
}

/* ========== CARDS ========== */
.model-card {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
    transition: border-color 0.2s, transform 0.2s !important;
    overflow: hidden;
}
.model-card:hover {
    border-color: var(--border-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--neo-shadow) !important;
}
.model-card .card-image {
    border-radius: var(--neo-radius) var(--neo-radius) 0 0 !important;
}
.model-card .card-body {
    padding: 14px 16px !important;
}
.card-cta, .card-cta.free {
    border-radius: 8px !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: none !important;
}
.card-cta:hover, .card-cta.free:hover {
    opacity: 0.9;
}
.card-badge {
    border-radius: 6px !important;
    box-shadow: none !important;
    font-weight: 600;
}
.badge-free {
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* ========== FILTER BUTTONS ========== */
.filter-btn {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--text-secondary) !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    transition: all 0.15s !important;
}
.filter-btn:hover {
    color: var(--text-primary) !important;
    border-color: var(--border-hover) !important;
    background: var(--neo-surface-hover) !important;
}
.filter-btn.active {
    background: var(--primary-soft) !important;
    border-color: rgba(0, 175, 240, 0.3) !important;
    color: var(--primary) !important;
}

/* ========== CATEGORY CARDS ========== */
.category-card {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
    transition: all 0.2s !important;
}
.category-card:hover {
    border-color: rgba(0, 175, 240, 0.25) !important;
    background: var(--neo-surface-hover) !important;
    transform: none !important;
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-onlyfans {
    border-radius: 8px !important;
    box-shadow: none !important;
    border: none !important;
    transition: opacity 0.15s !important;
}
.btn-primary:hover, .btn-onlyfans:hover {
    opacity: 0.9;
    transform: none !important;
}
.btn-secondary {
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
    background: var(--neo-surface) !important;
}
.btn-secondary:hover {
    border-color: var(--border-hover) !important;
    background: var(--neo-surface-hover) !important;
}

/* ========== SEARCH INPUTS ========== */
.search-input, .sidebar-select, input[type="text"], input[type="search"] {
    background: var(--neo-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    padding: 12px 16px !important;
}
/* Spazio a sinistra per l'icona 🔍 (il padding sopra lo azzererebbe) */
.search-bar .search-input {
    padding-left: 48px !important;
}
.sidebar-search .search-input {
    padding-left: 40px !important;
}
.search-input:focus, input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px var(--primary-soft) !important;
    outline: none !important;
}
.sidebar-select {
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* ========== SIDEBAR (explorer) ========== */
.explorer-sidebar {
    background: var(--neo-bg) !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: none !important;
}
.sidebar-item {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius-sm) !important;
    box-shadow: none !important;
    margin-bottom: 6px !important;
    transition: border-color 0.15s, background 0.15s !important;
}
.sidebar-item:hover {
    border-color: var(--border-hover) !important;
    background: var(--neo-surface-hover) !important;
}
.sidebar-item-img {
    border-radius: 50% !important;
    border: 2px solid var(--border) !important;
    box-shadow: none !important;
}
.filter-chip {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: var(--text-secondary) !important;
}
.filter-chip.active {
    background: var(--primary-soft) !important;
    border-color: rgba(0, 175, 240, 0.3) !important;
    color: var(--primary) !important;
}

/* ========== SECTIONS ========== */
.section-header h2 {
    text-shadow: none;
}
.featured-section, .categories-section, .all-models-section, .listing-section {
    background: var(--neo-bg) !important;
}

/* ========== MODAL ========== */
.modal {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
}
.modal-close {
    background: var(--neo-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

/* ========== STAT COUNTERS ========== */
.stat-box, .stat-item {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
}

/* ========== MODEL PAGE (modella.html) ========== */
.model-avatar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    border: 3px solid var(--neo-surface) !important;
}
.stat-card {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
}
.details-table {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
    overflow: hidden;
}
.detail-row {
    border-bottom: 1px solid var(--border) !important;
}
.detail-value .category-pill {
    background: var(--primary-soft) !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    color: var(--primary) !important;
}
.social-link {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius-sm) !important;
    box-shadow: none !important;
    transition: border-color 0.15s !important;
}
.social-link:hover {
    border-color: var(--primary) !important;
}
.sidebar-cta-card {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
}
.sidebar-related {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: none !important;
}
.related-item {
    border-bottom: 1px solid var(--border) !important;
}
.model-badge {
    box-shadow: none !important;
    border: none !important;
}
.breadcrumb {
    color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--neo-surface) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: none !important;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner .cookie-content {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ========== AGE GATE ========== */
.age-gate-content {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--neo-radius) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5) !important;
}

/* ========== MAP MARKERS ========== */
.map-popup {
    border-radius: var(--neo-radius-sm) !important;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: var(--neo-bg) !important;
}
.page-header h1 {
    text-shadow: none;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), #66d4ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ========== PRIMARY MARKER (Eva) ========== */
@keyframes primaryPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.7), 0 0 40px rgba(0, 175, 240, 0.3); }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--neo-bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== SEO TEXT on city pages ========== */
.seo-text {
    background: var(--neo-surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

/* ========== MOBILE RESPONSIVE ========== */
.mobile-see-all {
    display: none;
}

@media (max-width: 768px) {
    .sidebar-header {
        display: none !important;
    }

    .explorer {
        flex-direction: column !important;
        height: auto !important;
    }
    .explorer-map {
        width: 100% !important;
        height: 55vh !important;
        min-height: 280px !important;
        max-height: 400px !important;
        flex: none !important;
        order: -1 !important;
    }
    .explorer-map #italyMap {
        height: 100% !important;
        min-height: 280px !important;
    }
    .explorer-sidebar {
        width: 100% !important;
        min-width: unset !important;
        max-height: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border) !important;
        box-shadow: none !important;
    }

    .mobile-map-toggle {
        display: none !important;
    }

    .sidebar-item {
        margin: 4px 12px 8px !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
    }

    .sidebar-controls,
    .sidebar-search,
    .sidebar-filters,
    .sidebar-footer {
        display: none !important;
    }

    .mobile-see-all {
        display: block !important;
        text-align: center;
        padding: 14px 20px;
        margin: 8px 12px 16px;
        background: var(--primary);
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        border-radius: 8px;
        text-decoration: none;
        letter-spacing: 0.3px;
        transition: opacity 0.15s;
    }
    .mobile-see-all:hover {
        opacity: 0.9;
    }

    .map-legend-float {
        padding: 6px 14px !important;
        gap: 10px !important;
        bottom: 10px !important;
    }
    .legend-item-float {
        font-size: 0.7rem !important;
    }

    .card-badge:first-of-type {
        left: 6px !important;
        top: 6px !important;
    }
    .badge-free {
        right: 6px !important;
        top: 6px !important;
    }
    .card-badge, .badge-free {
        padding: 3px 6px !important;
        font-size: 0.55rem !important;
        letter-spacing: 0 !important;
    }

    .footer {
        padding: 40px 16px 24px !important;
    }

    .cookie-banner {
        padding: 12px !important;
    }
    .cookie-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    .cookie-actions {
        justify-content: center !important;
    }

    .nav-links {
        background: var(--neo-bg) !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }
    .nav-cta {
        display: block;
        text-align: center;
        margin: 10px 16px 0;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .filter-btn {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }

    .model-content {
        padding: 0 16px 40px !important;
    }
    .model-stats-grid {
        padding: 16px 16px 20px !important;
    }
    .stat-card {
        padding: 12px 6px !important;
    }

    .sidebar-footer {
        padding: 8px 12px !important;
    }
    .sidebar-stats {
        font-size: 0.72rem !important;
    }
}

@media (max-width: 480px) {
    .models-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 0 8px;
    }

    .model-card {
        border-radius: 10px !important;
    }
    .card-body {
        padding: 10px !important;
    }
    .card-cta {
        padding: 10px !important;
        font-size: 0.8rem !important;
    }

    .category-card {
        padding: 8px 14px !important;
        border-radius: 8px !important;
    }
    .category-name {
        font-size: 0.78rem !important;
    }

    .model-hero {
        padding: 20px 12px 16px !important;
    }
    .model-username {
        font-size: 1.2rem !important;
    }

    .page-header {
        padding: 80px 16px 32px !important;
    }
}

/* ========== HERO SPLASH ========== */
.hero-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background: var(--neo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.splash-seen .hero-splash {
    display: none;
}
.hero-splash-exit {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}
.hero-splash-content {
    max-width: 600px;
    padding: 0 24px;
    animation: splashFadeIn 0.6s ease-out;
}
@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}
.hero-splash-logo .logo-icon {
    font-size: 2.5rem;
}
.hero-splash-logo .logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
}
.hero-splash h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.15;
}
.hero-accent {
    background: linear-gradient(135deg, #00AFF0, #0090c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto 28px;
    line-height: 1.55;
}
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 32px;
}
.hero-stat {
    text-align: center;
}
.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
}
.hero-stat span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.hero-loader {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}
.hero-loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #00AFF0, #0090c8);
    border-radius: 3px;
    animation: loaderFill 2.5s ease-in-out forwards;
}
@keyframes loaderFill {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .hero-splash h1 {
        font-size: 1.6rem;
    }
    .hero-sub {
        font-size: 0.92rem;
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stat strong {
        font-size: 1.3rem;
    }
    .hero-loader {
        width: 160px;
    }
}
