/* ============================================
   AI ADULT TOP LISTS — Premium Dark Theme CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111128;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(100, 140, 255, 0.4);
    --text-primary: #f0f0ff;
    --text-secondary: #8888aa;
    --text-muted: #555570;
    --accent-1: #4f6cff;
    /* Royal Blue */
    --accent-2: #7c3aed;
    /* Violet */
    --accent-3: #06b6d4;
    /* Cyan */
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --accent-gradient-2: linear-gradient(135deg, var(--accent-2), #ec4899);
    --glow-blue: 0 0 40px rgba(79, 108, 255, 0.2);
    --glow-violet: 0 0 40px rgba(124, 58, 237, 0.2);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Animated Background Orbs ── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-1);
    top: -200px;
    left: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -150px;
    right: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(80px, 60px);
    }

    66% {
        transform: translate(-40px, 80px);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(-60px, -40px);
    }

    66% {
        transform: translate(50px, -70px);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Navigation ── */
.main-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 2px;
    width: 100%;
    justify-content: center;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        width: auto;
        gap: 0.25rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(79, 108, 255, 0.1);
    border-color: var(--accent-1);
    box-shadow: 0 0 15px rgba(79, 108, 255, 0.15);
}

.nav-icon {
    font-size: 1rem;
}

/* ── Hero ── */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Tab Content ── */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Sites Grid ── */
.sites-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ── Site Card ── */
.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.site-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (min-width: 768px) {
    .site-card {
        flex-direction: row;
    }
}

.site-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--glow-blue);
    transform: translateY(-4px);
}

.site-card.visible:hover {
    transform: translateY(-4px);
}

/* Featured Card */
.site-card.featured {
    border-color: rgba(79, 108, 255, 0.3);
    background: rgba(79, 108, 255, 0.03);
}

.site-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 2;
}

.site-card.featured:hover {
    border-color: rgba(79, 108, 255, 0.5);
    box-shadow: 0 0 50px rgba(79, 108, 255, 0.15);
}

/* Card Rank Badge */
.card-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(79, 108, 255, 0.4);
}

/* Editor's Choice Badge */
.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@media (min-width: 768px) {
    .card-badge {
        top: 1rem;
        right: auto;
        left: 1rem;
        top: 4rem;
    }
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .card-image-wrapper {
        width: 340px;
        height: auto;
        min-height: 300px;
    }
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.site-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

@media (min-width: 768px) {
    .card-image-overlay {
        height: 100%;
        left: auto;
        right: 0;
        top: 0;
        width: 40%;
        background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
        opacity: 0.5;
    }
}

/* Card Body */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

@media (min-width: 768px) {
    .card-body {
        padding: 2rem 2.5rem;
    }
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Rating */
.card-rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Card Description */
.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    background: rgba(79, 108, 255, 0.1);
    color: #93a8ff;
    border: 1px solid rgba(79, 108, 255, 0.15);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(79, 108, 255, 0.2);
    border-color: rgba(79, 108, 255, 0.3);
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 108, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(79, 108, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-1);
}

/* ── SEO Article ── */
.seo-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.seo-article h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.seo-article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.seo-article h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-3);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.seo-article p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-article strong {
    color: var(--text-primary);
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Hamburger Toggle ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0 0.5rem;
        gap: 0.25rem;
    }

    .main-nav.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Full-width buttons on mobile */
    .card-actions {
        flex-direction: column;
    }

    .card-actions .btn {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ── Responsive Fine-Tuning ── */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-desc {
        font-size: 0.88rem;
    }

    .seo-article {
        padding: 1.25rem;
    }

    .seo-article h2 {
        font-size: 1.3rem;
    }

    .seo-article h3 {
        font-size: 1.1rem;
    }

    .seo-article p {
        font-size: 0.88rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.55rem;
    }
}

/* ── Selection Color ── */
::selection {
    background: rgba(79, 108, 255, 0.3);
    color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}