/* Fantasy XXX AI Directory - SEO Optimized Styles - Gold / Dark Luxury Palette */
:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --accent: #f4d03f;
    --bg-dark: #0a0a1a;
    --bg-card: #151525;
    --bg-elevated: #1e1e35;
    --text-primary: #ffffff;
    --text-secondary: #c0a96a;
    --text-muted: #8a7a4a;
    --border: #3a2f1a;
    --gradient-primary: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #b8941f 100%);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.35);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header & Navigation */
.header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
    min-height: 400px; /* Reserve space to prevent CLS */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 800px; /* Reserve space to prevent CLS */
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    min-height: 600px;
}

@media (max-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}

.model-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.model-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.model-card:hover .model-image {
    transform: scale(1.05);
}

/* Video hover container */
.video-hover-container {
    position: relative;
    overflow: hidden;
}

.video-hover-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.video-hover-container:hover video {
    opacity: 1;
}

.video-hover-container .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s;
}

.video-hover-container:hover .play-overlay {
    opacity: 0;
}

/* Video Lightbox Gallery */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.video-lightbox video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-thumbnail-clickable {
    cursor: pointer;
    position: relative;
}

.video-thumbnail-clickable::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    pointer-events: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff2fb3, #8b5cf6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(255, 47, 179, 0.3);
}

.model-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.model-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.model-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.model-age,
.model-style {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.model-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

.model-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Model Detail Page */
.model-detail {
    padding-top: 6rem;
}

.model-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .model-hero {
        grid-template-columns: 1fr;
    }
}

.model-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.model-details {
    padding: 1rem 0;
}

.model-detail-name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.model-attributes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.attribute {
    background: var(--bg-elevated);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.attribute-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
}

.attribute-value {
    color: var(--text-primary);
    font-weight: 600;
}

.model-bio {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.model-bio p {
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

/* SEO Content Sections */
.seo-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.seo-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.seo-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.seo-section ul {
    list-style: none;
    padding-left: 0;
}

.seo-section li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.seo-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.breadcrumbs .separator {
    color: var(--text-muted);
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Related Models */
.related-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Age Badge Footer */
.age-badge-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff2fb3, #8b5cf6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(255, 47, 179, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .main-content {
        padding: 1rem;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Print styles for SEO */
@media print {
    .header,
    .age-badge-footer,
    .footer {
        display: none;
    }

    .model-card {
        break-inside: avoid;
        min-height: 100px;
        contain-intrinsic-size: 100px;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Schema markup visibility */
.schema-markup {
    display: none;
}

/* === Bulletproof responsive nav for companions === */

/* Hamburger button - hidden on desktop */
.header .menu-btn {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    position: relative !important;
}
.header .menu-btn svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    stroke: #ffffff !important;
}
.header .menu-btn-close {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.15s !important;
}
.header .menu-btn-open .menu-btn-close {
    opacity: 1 !important;
}
.header .menu-btn-open > svg:not(.menu-btn-close) {
    opacity: 0 !important;
}

/* Desktop: nav single-row, hamburger hidden */
@media (min-width: 1025px) {
    .header {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 14px 24px !important;
        gap: 16px !important;
    }
    .header-content {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    .header .menu-btn {
        display: none !important;
    }
    .header .nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 14px !important;
        margin-left: auto !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        margin-top: 0 !important;
        width: auto !important;
        flex-basis: auto !important;
    }
    .header .nav a {
        color: rgba(255,255,255,0.85) !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        padding: 6px 10px !important;
        border: none !important;
        width: auto !important;
        display: inline-block !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        font-family: Arial, Helvetica, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Liberation Sans", system-ui, sans-serif !important;
        transition: color 0.2s !important;
    }
    .header .nav a:hover {
        color: #e8336d !important;
    }
    .header .nav a.nav-active {
        color: #e8336d !important;
        font-weight: 600 !important;
    }
    .header .logo {
        color: #ffffff !important;
        font-family: Arial, Helvetica, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Liberation Sans", system-ui, sans-serif !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
    }
    .header .logo-text {
        font-family: Arial, Helvetica, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Liberation Sans", system-ui, sans-serif !important;
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    .header .logo-icon img {
        display: block !important;
    }
}

/* Tablet + mobile: hamburger visible, nav becomes drawer */
@media (max-width: 1024px) {
    .header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 12px 16px !important;
        gap: 10px !important;
    }
    .header-content {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        width: 100% !important;
    }
    .header .menu-btn {
        display: flex !important;
    }
    .header .nav {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        flex-basis: 100% !important;
        gap: 0 !important;
        margin: 12px 0 0 0 !important;
        padding: 12px 0 0 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
    }
    .header .nav.nav-open {
        display: flex !important;
    }
    .header .nav a {
        color: rgba(255,255,255,0.85) !important;
        text-decoration: none !important;
        padding: 12px 0 !important;
        white-space: normal !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        width: 100% !important;
        display: block !important;
        font-family: Arial, Helvetica, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Liberation Sans", system-ui, sans-serif !important;
    }
    .header .nav a:last-child {
        border-bottom: none !important;
    }
}
