/**
 * Stumbler Club - Custom Styles
 * Vibrant Neon-Pop Design System
 * 
 * Color Palette:
 * - Electric Purple: #A855F7
 * - Cyber Teal: #06B6D4
 * - Dark Navy: #0F172A
 * - Deep Navy: #1E293B
 * - Hot Pink: #EC4899
 * - Neon Lime: #84CC16
 * - Soft White: #F8FAFC
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --electric-purple: #A855F7;
    --cyber-teal: #06B6D4;
    --dark-navy: #0F172A;
    --deep-navy: #1E293B;
    --hot-pink: #EC4899;
    --neon-lime: #84CC16;
    --soft-white: #F8FAFC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--electric-purple), var(--cyber-teal));
    --gradient-secondary: linear-gradient(135deg, var(--hot-pink), var(--electric-purple));
    --gradient-accent: linear-gradient(135deg, var(--cyber-teal), var(--neon-lime));
    
    /* Shadows */
    --shadow-neon-purple: 0 0 40px rgba(168, 85, 247, 0.3);
    --shadow-neon-teal: 0 0 40px rgba(6, 182, 212, 0.3);
    --shadow-neon-pink: 0 0 40px rgba(236, 72, 153, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-navy);
    color: var(--soft-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-navy);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--electric-purple), var(--cyber-teal));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--hot-pink), var(--electric-purple));
}

/* Selection */
::selection {
    background-color: var(--electric-purple);
    color: white;
}

/* ========================================
   Typography
   ======================================== */
.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

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

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

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

/* ========================================
   Navigation Styles
   ======================================== */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94A3B8;
    transition: color var(--transition-normal);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--soft-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--soft-white);
}

/* Mobile Navigation */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #94A3B8;
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary-lg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary-lg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.btn-primary-lg:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--soft-white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--electric-purple);
    background-color: rgba(168, 85, 247, 0.1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94A3B8;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-ghost:hover {
    color: var(--soft-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Vote Button */
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.vote-btn:hover {
    color: var(--electric-purple);
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--electric-purple);
}

.vote-btn.voted {
    color: var(--electric-purple);
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--electric-purple);
}

/* ========================================
   Card Styles
   ======================================== */
.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.discovery-card {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.discovery-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-neon-purple);
    transform: translateY(-4px);
}

.discovery-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.discovery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.mission-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all var(--transition-normal);
}

.mission-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ========================================
   Bento Grid Layout
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.bento-item {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Bento Size Variants */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 420px;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 200px;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }
    
    .bento-medium {
        grid-column: span 2;
        min-height: 200px;
    }
    
    .bento-small {
        grid-column: span 1;
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 250px;
    }
    
    .bento-large {
        min-height: 320px;
    }
}

/* Bento Grid Cards (Legacy) */
.bento-card {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .bento-card-lg {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ========================================
   Form Styles
   ======================================== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--soft-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    outline: none;
    transition: all var(--transition-normal);
}

.form-input::placeholder {
    color: #64748B;
}

.form-input:focus {
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--soft-white);
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--soft-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: all var(--transition-normal);
}

.form-textarea:focus {
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Radio Card */
.category-radio-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.category-radio-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.category-radio-card.selected {
    border-color: var(--electric-purple);
    background: rgba(168, 85, 247, 0.1);
}

.category-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ========================================
   Filter & Tag Styles
   ======================================== */
.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover {
    color: var(--soft-white);
    background: rgba(255, 255, 255, 0.1);
}

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

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all var(--transition-fast);
}

.tag-purple {
    color: var(--electric-purple);
    background: rgba(168, 85, 247, 0.15);
}

.tag-teal {
    color: var(--cyber-teal);
    background: rgba(6, 182, 212, 0.15);
}

.tag-pink {
    color: var(--hot-pink);
    background: rgba(236, 72, 153, 0.15);
}

.tag-lime {
    color: var(--neon-lime);
    background: rgba(132, 204, 22, 0.15);
}

/* ========================================
   Badge Styles
   ======================================== */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyber-teal);
    background: rgba(6, 182, 212, 0.15);
    border-radius: 9999px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hot-pink);
    background: rgba(236, 72, 153, 0.15);
    border-radius: 9999px;
}

/* ========================================
   Leaderboard Styles
   ======================================== */
.podium-card {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-card.gold {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

.podium-card.silver {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 0 40px rgba(148, 163, 184, 0.1);
}

.podium-card.bronze {
    border-color: rgba(217, 119, 6, 0.3);
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.1);
}

/* ========================================
   Animation Keyframes
   ======================================== */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes pulse-slower {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.08);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes counter-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Animation Utilities */
.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-pulse-slower {
    animation: pulse-slower 6s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

.animate-fade-in-up {
    animation: fade-in-up 0.5s ease forwards;
}

/* Hover Animations */
.hover-lift {
    transition: transform var(--transition-normal);
}

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

.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--shadow-neon-purple);
}

/* ========================================
   Stats Counter
   ======================================== */
.stat-counter {
    position: relative;
    overflow: hidden;
}

.stat-counter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

.stat-counter.visible::after {
    transform: scaleX(1);
}

/* ========================================
   Loading States
   ======================================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--electric-purple);
    border-radius: 50%;
    animation: spin-slow 1s linear infinite;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    .glass-card {
        border-radius: 1rem;
    }
    
    .discovery-card {
        border-radius: 0.75rem;
    }
    
    .btn-primary-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ========================================
   Focus States (Accessibility)
   ======================================== */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.filter-btn:focus-visible {
    outline: 2px solid var(--electric-purple);
    outline-offset: 2px;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: none;
    border-color: var(--electric-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--electric-purple);
    color: white;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    transition: top var(--transition-normal);
}

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

/* ========================================
   Dark Mode Adjustments
   ======================================== */
@media (prefers-color-scheme: dark) {
    img {
        filter: brightness(0.95);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .glass-card {
        background: white;
        border: 1px solid #e5e7eb;
    }
    
    body {
        background: white;
        color: black;
    }
    
    nav,
    footer {
        display: none;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Loading Skeleton
   ======================================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-text-sm {
    height: 0.75rem;
    width: 60%;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: 1rem;
}

.skeleton-image {
    height: 150px;
    border-radius: 0.75rem;
}

/* ========================================
   Dark/Light Mode
   ======================================== */
:root {
    color-scheme: dark light;
}

[data-theme="light"] {
    --dark-navy: #F8FAFC;
    --deep-navy: #E2E8F0;
    --soft-white: #0F172A;
}

[data-theme="light"] body {
    background-color: #F8FAFC;
    color: #0F172A;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-500 {
    color: #64748B !important;
}

[data-theme="light"] nav {
    background: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] .bg-dark-navy {
    background-color: #F8FAFC;
}

[data-theme="light"] .bg-deep-navy {
    background-color: #E2E8F0;
}

.theme-toggle {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    cursor: pointer;
    transition: background var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

[data-theme="light"] .theme-toggle::after {
    transform: translateX(1.25rem);
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--deep-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

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

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

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all var(--transition-normal);
    z-index: 100;
    box-shadow: var(--shadow-neon-purple);
}

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

.scroll-to-top:hover {
    transform: translateY(-4px);
}

/* ========================================
   Share Buttons
   ======================================== */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--soft-white);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
}

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

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

.share-btn.linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
}

.share-btn.copy:hover {
    background: var(--electric-purple);
    border-color: var(--electric-purple);
}

/* ========================================
   Search Modal
   ======================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 1rem;
    transform: translateY(-20px) scale(0.95);
    transition: all var(--transition-normal);
}

.search-modal.active .search-container {
    transform: translateY(0) scale(1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--deep-navy);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 1rem;
    padding: 0 1.25rem;
    box-shadow: var(--shadow-neon-purple);
}

.search-input-wrapper:focus-within {
    border-color: var(--electric-purple);
}

.search-input-wrapper svg {
    width: 1.25rem;
    height: 1.25rem;
    color: rgba(248, 250, 252, 0.5);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    color: var(--soft-white);
}

.search-input::placeholder {
    color: rgba(248, 250, 252, 0.4);
}

.search-kbd {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.6);
    font-family: 'Inter', monospace;
}

.search-results {
    margin-top: 0.75rem;
    background: var(--deep-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

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

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

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

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(168, 85, 247, 0.1);
}

.search-result-item img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-info p {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.5);
}

.search-hint {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.4);
}

.search-hint span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-hint kbd {
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    font-family: inherit;
}

/* ========================================
   Newsletter Modal
   ======================================== */
.newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.newsletter-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    background: var(--deep-navy);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-neon-purple);
}

.newsletter-modal.active .newsletter-content {
    transform: translateY(0) scale(1);
}

.newsletter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 0.5rem;
    color: rgba(248, 250, 252, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--soft-white);
}

.newsletter-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.newsletter-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.newsletter-content p {
    color: rgba(248, 250, 252, 0.6);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--soft-white);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--electric-purple);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-purple);
}

.newsletter-privacy {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.4);
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0));
    }
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: rgba(248, 250, 252, 0.5);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-radius: 0.5rem;
}

.mobile-bottom-link svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-bottom-link:hover,
.mobile-bottom-link.active {
    color: var(--electric-purple);
}

.mobile-bottom-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.25rem;
    background: var(--electric-purple);
    border-radius: 50%;
}

.mobile-stumble-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-top: -1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
    transition: all var(--transition-normal);
}

.mobile-stumble-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

.mobile-stumble-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-stumble-btn:active {
    transform: scale(0.95);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

@media (max-width: 767px) {
    .toast-container {
        bottom: calc(6rem + env(safe-area-inset-bottom, 0));
        right: 1rem;
        left: 1rem;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--deep-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(132, 204, 22, 0.3);
}

.toast.success .toast-icon {
    color: var(--neon-lime);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.error .toast-icon {
    color: #EF4444;
}

.toast.info {
    border-color: rgba(6, 182, 212, 0.3);
}

.toast.info .toast-icon {
    color: var(--cyber-teal);
}

.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

.toast-close {
    flex-shrink: 0;
    padding: 0.25rem;
    background: none;
    border: none;
    color: rgba(248, 250, 252, 0.5);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--soft-white);
}

/* ========================================
   Skeleton Loading States
   ======================================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 12rem;
    border-radius: 0.75rem;
}

.skeleton-text {
    height: 1rem;
    border-radius: 0.25rem;
}

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

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

.skeleton-text.long {
    width: 100%;
}

.skeleton-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

/* ========================================
   Lazy Load Image Blur
   ======================================== */
.lazy-image {
    position: relative;
    overflow: hidden;
}

.lazy-image img {
    transition: opacity var(--transition-slow), filter var(--transition-slow);
}

.lazy-image img.loading {
    opacity: 0.6;
    filter: blur(10px);
}

.lazy-image img.loaded {
    opacity: 1;
    filter: blur(0);
}

.lazy-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--deep-navy), var(--dark-navy));
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazy-placeholder svg {
    width: 2rem;
    height: 2rem;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

/* ========================================
   Trending Section
   ======================================== */
.trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #EF4444, #F97316);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trending-badge svg {
    width: 0.75rem;
    height: 0.75rem;
}

.stats-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
}

.stats-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stats-label {
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.5);
    margin-top: 0.25rem;
}

/* ========================================
   Micro-interactions & Animations
   ======================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounce-in 0.6s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.5s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Magnetic hover effect */
.magnetic {
    transition: transform var(--transition-fast);
}

/* Glow effect on hover */
.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

/* Scale on click */
.click-scale {
    transition: transform var(--transition-fast);
}

.click-scale:active {
    transform: scale(0.95);
}

/* Parallax layer classes */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.parallax-slow {
    --parallax-speed: 0.3;
}

.parallax-medium {
    --parallax-speed: 0.5;
}

.parallax-fast {
    --parallax-speed: 0.7;
}

/* Collection/Save button */
.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(248, 250, 252, 0.7);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.save-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--electric-purple);
    color: var(--electric-purple);
}

.save-btn.saved {
    background: var(--electric-purple);
    border-color: var(--electric-purple);
    color: white;
}

.save-btn.saved svg {
    fill: currentColor;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ========================================
   Enhanced Print Styles
   ======================================== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    nav,
    footer,
    .cookie-banner,
    .scroll-to-top,
    .share-buttons,
    .theme-toggle,
    button:not(.btn-print) {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    .glass-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    @page {
        margin: 2cm;
    }
}
