/* ========================================
   Daily Pokemon - Modern Futuristic Theme
   Inspired by Rotom & Pokemon aesthetic
   ======================================== */

/* CSS Variables - Light Theme (Default) */
:root {
    /* Primary Colors - Royal Purple */
    --primary: #8B5CF6;
    --primary-dark: #5E17EB;
    --primary-light: #A78BFA;

    /* Secondary - Mid Violet */
    --secondary: #7C3AED;
    --secondary-dark: #6D28D9;
    --secondary-light: #A78BFA;

    /* Accent - Sunset Orange/Gold (for buttons & emphasis) */
    --accent: #FBBF24;
    --accent-dark: #F97316;
    --accent-light: #FCD34D;
    --accent-hover: #F59E0B;
    --gradient-accent: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);

    /* Neutrals - Deep Obsidian Purple theme */
    --dark: #0F0A1A;
    --dark-lighter: #1A1425;
    --dark-card: #FFFFFF;
    --gray-dark: #475569;
    --gray: #64748B;
    --gray-light: #B0BFCC;
    --light: #F1F5F9;
    --white: #FFFFFF;

    /* Body colors for light theme */
    --body-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --card-border: rgba(139, 92, 246, 0.15);
    --text-dark: #1E293B;
    --text-body: #475569;
    --text-muted: #5C6B7A;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5E17EB 0%, #7C3AED 50%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #5E17EB 0%, #7C3AED 100%);
    --gradient-dark: linear-gradient(180deg, #0F0A1A 0%, #1A1425 100%);
    --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
    --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1280px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
    --shadow-glow-primary: 0 0 30px rgba(139, 92, 246, 0.35);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --body-bg: #0F0A1A;
    --card-bg: #1A1425;
    --card-border: rgba(139, 92, 246, 0.25);
    --text-dark: #F1F5F9;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --light: #1E1A2E;
    --white: #FFFFFF;
    --gray-light: #94A3B8;

    --gradient-card: linear-gradient(145deg, #1A1425 0%, #0F0A1A 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
    background: var(--body-bg);
    color: var(--text-body);
}

[data-theme="dark"] .section-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--text-dark);
}

[data-theme="dark"] .video-synopsis,
[data-theme="dark"] .update-title,
[data-theme="dark"] .infographic-title,
[data-theme="dark"] .trending-title {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .navbar {
    background: linear-gradient(180deg, rgba(15, 10, 26, 0.98) 0%, rgba(26, 20, 37, 0.95) 100%);
}

[data-theme="dark"] .footer {
    background: linear-gradient(180deg, #1A1425 0%, #0F0A1A 100%);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--body-bg);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15, 10, 26, 0.95) 0%, rgba(26, 20, 37, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(15, 10, 26, 0.98) 0%, rgba(26, 20, 37, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-weight: 500;
    color: var(--gray-light);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    font-weight: 600;
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Navigation Search */
.nav-search {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 16px;
}

.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray-light);
    transition: var(--transition-fast);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

.search-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition-medium);
}

.nav-search.active .search-box {
    width: 300px;
    opacity: 1;
    right: 48px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: #0F0A1A;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-md);
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.search-result-meta {
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-top: 2px;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--gray-light);
}

.search-no-results svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Search highlight animation */
.search-highlight {
    animation: searchHighlight 2s ease-out;
}

@keyframes searchHighlight {
    0% {
        box-shadow: 0 0 0 4px var(--primary);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(139, 92, 246, 0.5);
    }
    100% {
        box-shadow: var(--shadow-sm);
        transform: scale(1);
    }
}

/* Global Search Results Dropdown */
.global-search-results {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    background: rgba(15, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1002;
}

.global-search-results.active {
    display: block;
}

.search-category {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.global-search-item:last-child {
    border-bottom: none;
}

.global-search-item:hover {
    background: rgba(139, 92, 246, 0.15);
}

.global-search-item img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.global-search-item .search-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.global-search-item .search-icon svg {
    width: 24px;
    height: 24px;
}

.global-search-item .search-icon.video-icon {
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    color: white;
}

.global-search-item .search-icon.insight-icon {
    background: var(--gradient-primary);
    color: white;
}

.global-search-item .search-icon.pokemon-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.global-search-info {
    flex: 1;
    min-width: 0;
}

.global-search-title {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-meta {
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-search-type {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
}

.search-view-all {
    display: block;
    padding: 14px 16px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.search-view-all:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-light);
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-light);
}

.search-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .nav-search {
        position: static;
    }

    .nav-search .search-box {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        width: auto;
        padding: 12px 16px;
        background: rgba(15, 10, 26, 0.98);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        transform: none;
    }

    .nav-search.active .search-box {
        right: 0;
        width: auto;
    }

    .global-search-results {
        position: fixed;
        top: 155px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 200px);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 24px 80px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

.hero-title {
    font-size: clamp(1.75rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search Bar */
.hero-search {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-icon {
    position: absolute;
    left: 20px;
    width: 22px;
    height: 22px;
    color: var(--gray-light);
    pointer-events: none;
    z-index: 1;
}

.hero-search input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-xl);
    color: var(--white);
    font-size: 1.1rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition-medium);
    backdrop-filter: blur(10px);
}

.hero-search input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), var(--shadow-glow);
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-search .search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(15, 10, 26, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    display: none;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.hero-search .search-results.active {
    display: block;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Stats Sentence Style */
.hero-stats-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.125rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

.hero-stats-sentence .stat-text {
    color: var(--gray-light);
}

.hero-stats-sentence .stat-highlight {
    color: var(--white);
    font-weight: 600;
}

.hero-stats-sentence .stat-number {
    display: inline;
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
}

/* ========================================
   Pokémon of the Day Section
   ======================================== */
.potd-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.potd-left {
    text-align: left;
}

.potd-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.potd-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.potd-name {
    color: var(--accent);
    text-transform: capitalize;
}

.potd-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.potd-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.potd-sprite-container {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}

.potd-sprite-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: potdPulse 3s ease-in-out infinite;
}

@keyframes potdPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.potd-sprite {
    width: 150px;
    height: 150px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    transition: transform 0.3s ease;
}

.potd-sprite:hover {
    transform: scale(1.1);
}

.potd-right {
    text-align: right;
}

.potd-species {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.potd-meta {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.potd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--gray-light);
}

.potd-type {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}

/* Pokémon type colors */
.type-normal { background: #A8A77A; }
.type-fire { background: #EE8130; }
.type-water { background: #6390F0; }
.type-electric { background: #F7D02C; color: #333; }
.type-grass { background: #7AC74C; }
.type-ice { background: #96D9D6; color: #333; }
.type-fighting { background: #C22E28; }
.type-poison { background: #A33EA1; }
.type-ground { background: #E2BF65; color: #333; }
.type-flying { background: #A98FF3; }
.type-psychic { background: #F95587; }
.type-bug { background: #A6B91A; }
.type-rock { background: #B6A136; }
.type-ghost { background: #735797; }
.type-dragon { background: #6F35FC; }
.type-dark { background: #705746; }
.type-steel { background: #B7B7CE; color: #333; }
.type-fairy { background: #D685AD; }

.potd-entry {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.6;
    font-style: italic;
    max-width: 300px;
    margin-left: auto;
}

/* ========================================
   Stats Mini Banner
   ======================================== */
.stats-banner {
    background: linear-gradient(180deg, rgba(26, 20, 37, 0.98) 0%, rgba(15, 10, 26, 0.95) 100%);
    padding: 24px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.stats-banner-content {
    display: block;
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-light);
}

.stats-banner-content .stat-text {
    color: var(--gray-light);
}

.stats-banner-content .stat-highlight {
    color: var(--white);
    font-weight: 600;
}

.stats-banner-content .stat-number {
    display: inline;
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
}

/* Responsive PotD */
@media (max-width: 900px) {
    .potd-section {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        padding: 24px;
    }

    .potd-left,
    .potd-right {
        text-align: center;
    }

    .potd-ctas {
        justify-content: center;
    }

    .potd-meta {
        justify-content: center;
    }

    .potd-entry {
        margin: 0 auto;
    }

    .potd-center {
        order: -1;
    }

    .potd-sprite-container {
        width: 150px;
        height: 150px;
    }

    .potd-sprite {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .stats-banner-content {
        font-size: 1rem;
    }

    .stats-banner-content .stat-number {
        font-size: 1.125rem;
    }

    .potd-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Sections Common Styles
   ======================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Latest Updates Feed (Unified)
   ======================================== */
.updates-section {
    background: var(--body-bg);
    padding: 60px 0;
}

.updates-section .section-header {
    margin-bottom: 30px;
}

.updates-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.update-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition-fast);
    text-decoration: none;
    display: block;
}

.update-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.update-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--light);
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.update-item:hover .update-image img {
    transform: scale(1.05);
}

.update-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.update-type-badge.video {
    background: linear-gradient(135deg, #5E17EB 0%, #8B5CF6 100%);
}

.update-type-badge.infographic {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.update-type-badge.news {
    background: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
}

.update-content {
    padding: 14px;
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.update-type-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.update-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.update-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.updates-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .updates-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .update-content {
        padding: 12px;
    }

    .update-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .updates-feed {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* ========================================
   PokeOS Integration Styling
   ======================================== */

/* PokeOS badge in feed */
.update-type-badge.pokeos {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
}

.update-item.update-pokeos {
    border-color: rgba(59, 130, 246, 0.3);
}

.update-item.update-pokeos:hover {
    border-color: rgba(59, 130, 246, 0.6);
}

.update-item.update-pokeos .update-type-label {
    color: #3B82F6;
}

/* PokeOS Headline Style (no image) */
.update-item.update-pokeos {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.04) 100%);
    border-left: 3px solid #3B82F6;
}

.update-item.update-pokeos .pokeos-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.update-item.update-pokeos .pokeos-icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.update-item.update-pokeos .pokeos-headline {
    flex: 1;
    min-width: 0;
}

.update-item.update-pokeos .pokeos-headline h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-item.update-pokeos .pokeos-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.update-item.update-pokeos .pokeos-meta .pokeos-source {
    color: #3B82F6;
    font-weight: 600;
}

.update-item.update-pokeos .pokeos-arrow {
    color: #3B82F6;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.update-item.update-pokeos:hover .pokeos-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.update-item.update-pokeos:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(96, 165, 250, 0.06) 100%);
}

/* PokeOS source badge on image - kept for backwards compatibility */
.pokeos-source-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PokeOS Article Overlay */
.pokeos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.pokeos-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #1a1425 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.pokeos-overlay-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.pokeos-overlay-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.pokeos-overlay-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pokeos-open-new {
    color: #60A5FA;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.pokeos-open-new:hover {
    color: #93C5FD;
    text-decoration: underline;
}

.pokeos-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.pokeos-close:hover {
    color: white;
}

.pokeos-iframe {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

.pokeos-overlay-footer {
    padding: 12px 20px;
    background: linear-gradient(135deg, #5E17EB 0%, #7C3AED 100%);
    display: flex;
    justify-content: center;
}

.pokeos-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pokeos-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Iframe blocked fallback message */
.pokeos-iframe-blocked {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--text-dark);
    text-align: center;
    padding: 40px;
}

.pokeos-iframe-blocked h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.pokeos-iframe-blocked p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pokeos-iframe-blocked .btn {
    background: #3B82F6;
    color: white;
}

/* ========================================
   News Section (Legacy - kept for compatibility)
   ======================================== */
.news-section {
    background: var(--body-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-body);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.news-link:hover {
    gap: 12px;
    color: var(--secondary-light);
}

/* ========================================
   Videos Section
   ======================================== */
.videos-section {
    background: var(--light);
}

/* Platform Filter */
.platform-filter,
.category-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--text-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.filter-btn.active {
    background: var(--gradient-accent);
    color: var(--dark);
    font-weight: 600;
    border-color: transparent;
}

.platform-icon {
    width: 18px;
    height: 18px;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Homepage Video Cards (New Format) */
.videos-grid.homepage-videos {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.video-card-home {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition-medium);
}

.video-card-home:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.video-card-home .video-card-cover {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: var(--dark);
}

.video-card-home .video-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card-home:hover .video-card-cover img {
    transform: scale(1.05);
}

.video-card-home .video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card-home:hover .video-card-play {
    opacity: 1;
}

.video-card-home .video-card-play svg {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-left: 3px;
}

.video-card-home .video-card-info {
    padding: 12px;
}

.video-card-home .video-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.video-card-platforms {
    display: flex;
    gap: 6px;
}

.platform-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.platform-dot.tiktok {
    background: #000;
}

.platform-dot.youtube {
    background: #FF0000;
}

.platform-dot.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.video-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-glow);
}

.video-embed {
    aspect-ratio: 9/16;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

.video-embed blockquote {
    margin: 0 !important;
}

.video-embed iframe {
    max-width: 100% !important;
}

.video-info {
    padding: 20px;
}

.video-platform {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.video-platform.tiktok {
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
}

.video-platform.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
}

.video-platform.youtube {
    background: #FF0000;
    color: var(--white);
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Placeholder Cards */
.video-placeholder,
.infographic-placeholder {
    border: 2px dashed var(--card-border);
    background: transparent;
}

.placeholder-content {
    aspect-ratio: 9/16;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    padding: 40px;
    text-align: center;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.videos-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   Insights Section
   ======================================== */
.infographics-section {
    background: var(--body-bg);
}

.infographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.infographic-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    cursor: pointer;
}

.infographic-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.4);
}

.infographic-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--light);
}

.infographic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.infographic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.infographic-card:hover .infographic-overlay {
    opacity: 1;
}

.view-btn {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: var(--transition-fast);
}

.view-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.view-btn svg {
    width: 24px;
    height: 24px;
}

.infographic-info {
    padding: 20px;
}

.infographic-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.infographic-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.infographic-placeholder .placeholder-content {
    aspect-ratio: 16/9;
}

/* ========================================
   Live Feed Section (X/Twitter)
   ======================================== */
.livefeed-section {
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.livefeed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.livefeed-container {
    max-width: 600px;
    margin: 0 auto;
}

.twitter-embed {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.twitter-embed .twitter-timeline {
    width: 100% !important;
}

/* BlueSky Feed Styles */
.bluesky-feed {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 0;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    max-height: 500px;
    overflow-y: auto;
}

.bluesky-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--card-border);
    border-top-color: #0085FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bluesky-post {
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    transition: background 0.2s ease;
}

.bluesky-post:last-child {
    border-bottom: none;
}

.bluesky-post:hover {
    background: rgba(0, 133, 255, 0.03);
}

.bluesky-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bluesky-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--light);
}

.bluesky-author {
    flex: 1;
}

.bluesky-displayname {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.bluesky-handle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bluesky-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bluesky-content {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.bluesky-content a {
    color: #0085FF;
    text-decoration: none;
}

.bluesky-content a:hover {
    text-decoration: underline;
}

.bluesky-images {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bluesky-images.single {
    grid-template-columns: 1fr;
}

.bluesky-images.multiple {
    grid-template-columns: repeat(2, 1fr);
}

.bluesky-images img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}

.bluesky-images img:hover {
    opacity: 0.9;
}

.bluesky-stats {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.bluesky-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bluesky-stat svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.bluesky-fallback {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.bluesky-fallback svg {
    color: #0085FF;
    margin-bottom: 16px;
}

.bluesky-fallback h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.bluesky-fallback p {
    margin-bottom: 16px;
}

/* BlueSky button styles */
.btn-bluesky {
    background: #0085FF;
    color: white !important;
    border: none;
}

.btn-bluesky:hover {
    background: #0066CC;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 133, 255, 0.3);
}

.btn-x {
    margin-left: 12px;
}

.btn-x:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.livefeed-cta {
    text-align: center;
    margin-top: 30px;
}

.livefeed-cta .btn {
    display: inline-flex;
    align-items: center;
}

.livefeed-cta .btn svg {
    flex-shrink: 0;
}

/* X logo styling in button */
.livefeed-cta .btn:hover {
    background: #000;
    border-color: #fff;
    color: #fff;
}

/* ========================================
   Follow Section
   ======================================== */
.follow-section {
    background: linear-gradient(180deg, rgba(15, 10, 26, 0.95) 0%, rgba(26, 20, 37, 0.98) 100%);
    padding: 120px 0;
    text-align: center;
}

.follow-content {
    max-width: 600px;
    margin: 0 auto;
}

.follow-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.follow-subtitle {
    font-size: 1.125rem;
    color: var(--gray-light);
    margin-bottom: 40px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 420px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: none;
    transition: var(--transition-medium);
    color: var(--dark);
}

.social-link svg {
    width: 32px;
    height: 32px;
    color: var(--dark);
}

.social-link span {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark);
}

.social-link.tiktok:hover {
    background: #000;
    border-color: #fff;
    transform: translateY(-5px);
    color: #fff;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    transform: translateY(-5px);
    color: #fff;
}

.social-link.youtube:hover {
    background: #FF0000;
    border-color: transparent;
    transform: translateY(-5px);
    color: #fff;
}

.social-link.twitter:hover {
    background: #000;
    border-color: #fff;
    color: #fff;
    transform: translateY(-5px);
}

.social-link.pinterest:hover {
    background: #E60023;
    border-color: transparent;
    transform: translateY(-5px);
    color: #fff;
}

.social-link.bluesky:hover {
    background: #0085FF;
    border-color: transparent;
    transform: translateY(-5px);
    color: #fff;
}

.social-link:hover svg,
.social-link:hover span {
    color: #fff;
}

/* ========================================
   Advertisement Slots
   ======================================== */
.ad-container {
    padding: 30px 0;
    background: var(--light);
}

.ad-slot {
    max-width: 100%;
    margin: 0 auto;
}

.ad-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    opacity: 0.6;
}

.ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Banner Ad (horizontal, between sections) */
.ad-banner .ad-slot {
    max-width: 728px;
}

.ad-banner .ad-content {
    min-height: 90px;
}

/* In-feed Ad (matches content cards) */
.ad-infeed {
    background: transparent;
    padding: 20px 0 40px;
}

.ad-infeed .ad-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    max-width: 800px;
    margin: 0 auto;
}

.ad-infeed .ad-content {
    min-height: 120px;
}

/* Footer Banner Ad */
.ad-footer-banner {
    background: var(--body-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.ad-footer-banner .ad-slot {
    max-width: 970px;
}

.ad-footer-banner .ad-content {
    min-height: 90px;
}

/* Hide ad label when real ads are loaded */
.ad-slot ins.adsbygoogle ~ .ad-placeholder {
    display: none;
}

/* Responsive ads */
@media (max-width: 768px) {
    .ad-container {
        padding: 20px 0;
    }

    .ad-banner .ad-slot,
    .ad-footer-banner .ad-slot {
        max-width: 320px;
    }

    .ad-banner .ad-content,
    .ad-footer-banner .ad-content {
        min-height: 100px;
    }

    .ad-infeed .ad-content {
        min-height: 100px;
    }
}

/* ========================================
   30th Anniversary Countdown
   ======================================== */
.anniversary-countdown {
    background: var(--gradient-accent);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.anniversary-countdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.countdown-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-label {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.countdown-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
}

.countdown-unit-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.countdown-separator {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    opacity: 0.5;
}

.countdown-date {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    opacity: 0.8;
}

@media (max-width: 600px) {
    .anniversary-countdown {
        padding: 40px 0;
    }

    .countdown-timer {
        gap: 8px;
    }

    .countdown-unit {
        padding: 12px 16px;
        min-width: 70px;
    }

    .countdown-separator {
        display: none;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, rgba(26, 20, 37, 0.95) 0%, rgba(15, 10, 26, 0.98) 100%);
    backdrop-filter: blur(20px);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--gray-light);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.partner-logo-link {
    display: inline-block;
}

.partner-logo {
    max-width: 120px;
    height: auto;
    opacity: 0.85;
    transition: var(--transition-fast);
}

.partner-logo:hover {
    opacity: 1;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--gray-light);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.footer-bottom .disclaimer {
    font-size: 0.8125rem;
    color: var(--gray);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-medium);
}

.lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
}

/* Lightbox Content Container */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 95vh;
    overflow-y: auto;
    padding: 20px;
}

.lightbox-content .lightbox-image {
    max-height: 60vh;
    margin-bottom: 20px;
}

/* Download Center */
.lightbox-download {
    background: rgba(15, 10, 26, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.lightbox-download h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.download-credit {
    text-align: center;
    color: var(--gray-light);
    font-size: 0.75rem;
    margin-top: 12px;
}

/* Related Content Rail */
.related-rail {
    background: rgba(15, 10, 26, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    width: 100%;
    max-width: 600px;
}

.related-rail h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.related-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.related-scroll::-webkit-scrollbar {
    height: 6px;
}

.related-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.related-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.related-item {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.related-item:hover {
    transform: translateY(-4px);
}

.related-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.related-item:hover img {
    border-color: var(--primary);
}

.related-item-title {
    font-size: 0.75rem;
    color: var(--gray-light);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-item-tag {
    font-size: 0.625rem;
    color: var(--primary);
    text-transform: uppercase;
}

.related-empty {
    color: var(--gray);
    font-size: 0.875rem;
    text-align: center;
    padding: 20px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0F0A1A !important;
        background-image: linear-gradient(180deg, #0F0A1A 0%, #1A1425 100%) !important;
        flex-direction: column;
        padding: 40px 24px;
        gap: 8px;
        transform: translateX(100%);
        transition: var(--transition-medium);
        border-left: 1px solid rgba(139, 92, 246, 0.2);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        padding: 16px 20px;
        font-size: 1.125rem;
    }

    .nav-cta {
        margin-top: 20px;
        text-align: center;
    }

    /* Mobile Search */
    .nav-search {
        position: fixed;
        top: 16px;
        right: 70px;
        margin-left: 0;
    }

    .nav-search.active .search-box {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 16px;
        background: linear-gradient(180deg, rgba(15, 10, 26, 0.98) 0%, rgba(26, 20, 37, 0.95) 100%);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }

    .nav-search.active .search-box input {
        width: 100%;
    }

    .search-results {
        position: fixed;
        top: 140px;
        left: 16px;
        right: 16px;
        max-height: calc(100vh - 160px);
    }

    /* Hero */
    .hero {
        padding: 100px 24px 60px;
    }

    .hero-search {
        max-width: 100%;
    }

    .hero-search input {
        font-size: 1rem;
        padding: 16px 20px 16px 50px;
    }

    .hero-search-icon {
        left: 16px;
        width: 20px;
        height: 20px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Videos Grid */
    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Insights */
    .infographics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Follow Section - Mobile */
    .follow-section {
        padding: 80px 0;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
        max-width: 320px;
        gap: 12px;
    }

    .social-link {
        padding: 16px 12px;
    }

    .social-link svg {
        width: 28px;
        height: 28px;
    }

    .social-link span {
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .platform-filter,
    .category-filter {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .infographics-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
        max-width: 280px;
        gap: 10px;
    }

    .social-link {
        padding: 14px 10px;
    }

    .social-link svg {
        width: 24px;
        height: 24px;
    }

    .social-link span {
        font-size: 0.75rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ========================================
   Animations & Effects
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Rotom Glow Effect */
.rotom-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: rotomFloat 6s ease-in-out infinite;
}

@keyframes rotomFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hide filtered items */
.video-card.hidden,
.infographic-card.hidden {
    display: none;
}

/* ========================================
   Legal Pages (Privacy, Cookies, etc.)
   ======================================== */
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
    background: var(--body-bg);
}

.legal-header {
    background: var(--gradient-dark);
    padding: 60px 0;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.legal-header p {
    color: var(--gray-light);
    font-size: 1rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.legal-content p {
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 16px 0 24px 24px;
    list-style: disc;
}

.legal-content ul li {
    color: var(--text-body);
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* Cookie Management Page Specific */
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
}

.cookie-btn-primary {
    background: var(--gradient-primary);
    color: var(--dark);
}

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

.cookie-btn-secondary {
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.cookie-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.cookie-btn-danger {
    background: #EF4444;
    color: var(--white);
}

.cookie-btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cookie-status {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.cookie-status h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-status-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.cookie-list {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 0.875rem;
    max-height: 200px;
    overflow-y: auto;
}

.cookie-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

.cookie-list-item:last-child {
    border-bottom: none;
}

.cookie-name {
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-value {
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-message {
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    display: none;
}

.status-message.success {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    display: block;
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #DC2626;
    display: block;
}

/* Storage Info Cards */
.storage-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.storage-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.storage-card-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.storage-card h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.storage-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ========================================
   Heart/Like Button Styles
   ======================================== */
.heart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-family: inherit;
    border-radius: var(--radius-sm);
}

.heart-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.heart-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
    stroke: currentColor;
    fill: none;
}

.heart-btn.liked {
    color: #ef4444;
}

.heart-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.heart-btn.animating svg {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-count {
    font-weight: 600;
    min-width: 12px;
}

/* Heart in update feed items */
.update-content {
    position: relative;
}

.update-item .heart-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.update-item .heart-btn svg {
    width: 14px;
    height: 14px;
}

.update-item .heart-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Video card home heart */
.video-card-home {
    position: relative;
}

.video-card-home .heart-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.video-card-home .heart-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ef4444;
}

.video-card-home .heart-btn.liked {
    color: #ef4444;
}

/* ========================================
   Trending Section
   ======================================== */
.trending-section {
    background: linear-gradient(180deg, var(--light) 0%, var(--body-bg) 100%);
    padding: 60px 0;
}

.trending-section .section-header {
    margin-bottom: 30px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.trending-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition-fast);
    text-decoration: none;
    display: block;
    position: relative;
}

.trending-item:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.trending-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.trending-item .trending-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--light);
}

.trending-item .trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-item:hover .trending-image img {
    transform: scale(1.05);
}

.trending-info {
    padding: 12px;
}

.trending-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.trending-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.trending-likes {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 600;
}

.trending-likes svg {
    width: 14px;
    height: 14px;
    fill: #ef4444;
}

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

@media (max-width: 768px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

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

    .trending-info {
        padding: 10px;
    }

    .trending-title {
        font-size: 0.8rem;
    }
}

/* ========================================
   PocketDex Search Suggestions
   ======================================== */

.suggestions-section {
    margin: 32px 0;
    text-align: center;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.suggestion-chip {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.suggestion-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: var(--gradient-accent);
    color: var(--dark);
}

@media (max-width: 768px) {
    .suggestions-grid {
        gap: 8px;
    }

    .suggestion-chip {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   Skeleton Loaders
   ======================================== */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-image {
    aspect-ratio: 1/1;
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.05) 25%,
        rgba(139, 92, 246, 0.1) 50%,
        rgba(139, 92, 246, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    margin: 12px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0d8ddb;
    transform: translateY(-2px);
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.facebook:hover {
    background: #365899;
    transform: translateY(-2px);
}

.share-btn.reddit {
    background: #FF4500;
}

.share-btn.reddit:hover {
    background: #e03d00;
    transform: translateY(-2px);
}

.share-btn.copy-link {
    background: var(--gray);
}

.share-btn.copy-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.share-btn.copy-link.copied {
    background: #22c55e;
}

/* Recently Viewed Section */
.recently-viewed {
    padding: 40px 0;
    background: var(--light);
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.recently-viewed-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recently-viewed-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.recently-viewed-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.recently-viewed-info {
    padding: 10px;
}

.recently-viewed-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recently-viewed-type {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    /* Add padding to body so content isn't hidden behind bottom nav */
    body {
        padding-bottom: 70px;
    }

    .footer {
        padding-bottom: 80px;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--gray-light);
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active {
    color: var(--primary-light);
}

.mobile-nav-item.active svg {
    stroke: var(--primary-light);
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 90px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #fff;
    padding: 20px 24px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: var(--gray-light);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cookie-btn-settings {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--gray-light);
    padding: 10px 16px;
}

.cookie-btn-reject:hover {
    color: #fff;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-dark);
}

.cookie-modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid var(--card-border);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-category-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cookie-category-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-light);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}
