/* ═══════════════════════════════════════════════════════════════════════════
   🎮 CRAZYGAMES ENHANCED THEME - VIBRANT EDITION
   Neon Glow Effects | Smooth Animations | Vibrant Color Scheme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   🎨 CSS VARIABLES - VIBRANT COLOR PALETTE
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Primary Neon Colors */
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --neon-green: #10b981;
    --neon-yellow: #fbbf24;
    --neon-orange: #f97316;
    --neon-red: #ef4444;
    
    /* Gradient Combinations */
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-fire: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
    --gradient-rainbow: linear-gradient(90deg, #ef4444, #f97316, #fbbf24, #10b981, #06b6d4, #3b82f6, #a855f7, #ec4899);
    
    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-sidebar: #0d0d14;
    
    /* Glow Colors */
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.3), 0 0 60px rgba(168, 85, 247, 0.1);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
    
    /* Animation Timing */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ✨ KEYFRAME ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.5),
                    0 0 10px rgba(168, 85, 247, 0.3),
                    0 0 20px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.8),
                    0 0 25px rgba(168, 85, 247, 0.5),
                    0 0 50px rgba(168, 85, 247, 0.3);
    }
}

/* Rainbow Border Animation */
@keyframes rainbowBorder {
    0% { border-color: #ef4444; }
    14% { border-color: #f97316; }
    28% { border-color: #fbbf24; }
    42% { border-color: #10b981; }
    57% { border-color: #06b6d4; }
    71% { border-color: #3b82f6; }
    85% { border-color: #a855f7; }
    100% { border-color: #ec4899; }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Gradient Flow */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scale Bounce */
@keyframes scaleBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Neon Flicker */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 20px var(--neon-purple),
                     0 0 40px var(--neon-purple),
                     0 0 80px var(--neon-purple);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Rotate Glow */
@keyframes rotateGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Scale */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Star Twinkle */
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Particle Float */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   🌈 ENHANCED BODY & BACKGROUND
   ───────────────────────────────────────────────────────────────────────────── */
body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at top left, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(236, 72, 153, 0.3), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(6, 182, 212, 0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(16, 185, 129, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(251, 191, 36, 0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(168, 85, 247, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleFloat 20s ease-in-out infinite;
    z-index: 0;
    opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   🎯 HEADER ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
#header {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(18, 18, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.1),
                0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* Logo Glow Effect */
a.logo {
    position: relative;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

a.logo:hover {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
    transform: scale(1.02);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🔍 SEARCH BAR ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
#Search-InArea,
#Search-InArea-tablet,
#Search-InArea-desktop {
    background: rgba(55, 57, 82, 0.5);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

#Search-InArea:focus,
#Search-InArea-tablet:focus,
#Search-InArea-desktop:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2),
                0 0 20px rgba(168, 85, 247, 0.3);
    background: rgba(55, 57, 82, 0.8);
}

/* Search Container Glow */
.relative.w-\[460px\],
.relative.w-1\/2 {
    position: relative;
}

.relative.w-\[460px\]::before,
.relative.w-1\/2::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.relative.w-\[460px\]:focus-within::before,
.relative.w-1\/2:focus-within::before {
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   📱 SIDEBAR ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
#sidebar-menu {
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--bg-dark) 100%);
    border-right: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

/* Sidebar Links Animation */
#sidebar a {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

#sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform var(--transition-smooth);
}

#sidebar a:hover::before {
    transform: scaleY(1);
}

#sidebar a:hover {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
    color: var(--neon-purple) !important;
}

#sidebar a:hover img {
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
    transform: scale(1.1);
}

#sidebar a img {
    transition: var(--transition-bounce);
}

/* Active Sidebar Item */
#sidebar a.border-violet-500 {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2) 0%, transparent 100%);
    border-left-color: transparent;
    position: relative;
}

#sidebar a.border-violet-500::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(1);
    box-shadow: 0 0 10px var(--neon-purple);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🎮 GAME CARDS - ENHANCED WITH GLOW & ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
.new-games-list,
.home-games-list > a,
.play-games-page-game-list > a,
.category-games-list > a {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Game Card Hover Effect */
.new-games-list:hover,
.home-games-list > a:hover,
.play-games-page-game-list > a:hover,
.category-games-list > a:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

/* Glow Border on Hover */
.new-games-list::before,
.home-games-list > a::before,
.play-games-page-game-list > a::before,
.category-games-list > a::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    filter: blur(8px);
}

.new-games-list:hover::before,
.home-games-list > a:hover::before,
.play-games-page-game-list > a:hover::before,
.category-games-list > a:hover::before {
    opacity: 1;
    animation: gradientFlow 3s ease infinite;
    background-size: 200% 200%;
}

/* Inner Glow Effect */
.new-games-list::after,
.home-games-list > a::after,
.play-games-page-game-list > a::after,
.category-games-list > a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    pointer-events: none;
    z-index: 5;
}

.new-games-list:hover::after,
.home-games-list > a:hover::after,
.play-games-page-game-list > a:hover::after,
.category-games-list > a:hover::after {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.2);
}

/* Game Image Zoom */
.new-games-list img,
.home-games-list > a img,
.play-games-page-game-list > a img,
.category-games-list > a img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.new-games-list:hover img,
.home-games-list > a:hover img,
.play-games-page-game-list > a:hover img,
.category-games-list > a:hover img {
    transform: scale(1.1);
}

/* Game Name Label Enhancement */
.new-games-list > div,
.home-games-list > a > div {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
}

.new-games-list:hover > div,
.home-games-list > a:hover > div {
    background: linear-gradient(0deg, rgba(168, 85, 247, 0.9) 0%, rgba(168, 85, 247, 0.3) 50%, transparent 100%);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ▶️ PLAY BUTTON - VIBRANT NEON STYLE
   ───────────────────────────────────────────────────────────────────────────── */
.play-now-button {
    background: var(--gradient-primary) !important;
    background-size: 200% 200% !important;
    animation: gradientFlow 3s ease infinite;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4),
                0 0 30px rgba(168, 85, 247, 0.2);
}

.play-now-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.6),
                0 0 50px rgba(168, 85, 247, 0.4),
                0 0 100px rgba(236, 72, 153, 0.2);
}

.play-now-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.play-now-button:active {
    transform: scale(0.98);
}

/* ─────────────────────────────────────────────────────────────────────────────
   📦 CONTENT CARDS & PANELS
   ───────────────────────────────────────────────────────────────────────────── */
.bg-\[\#1a1b28\],
.game-bottom-style,
.relategames {
    background: linear-gradient(145deg, rgba(26, 27, 40, 0.9) 0%, rgba(18, 18, 26, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.bg-\[\#1a1b28\]:hover,
.game-bottom-style:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(168, 85, 247, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🏷️ TAGS & CATEGORIES - NEON PILLS
   ───────────────────────────────────────────────────────────────────────────── */
.game-tags a,
.tags-list a,
.home-tags a {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--neon-purple);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.game-tags a:hover,
.tags-list a:hover,
.home-tags a:hover {
    background: var(--neon-purple);
    color: white;
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5),
                0 0 40px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

/* Alternate Tag Colors */
.game-tags a:nth-child(3n+1) { 
    border-color: rgba(236, 72, 153, 0.3); 
    color: var(--neon-pink);
}
.game-tags a:nth-child(3n+1):hover { 
    background: var(--neon-pink); 
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.game-tags a:nth-child(3n+2) { 
    border-color: rgba(6, 182, 212, 0.3); 
    color: var(--neon-cyan);
}
.game-tags a:nth-child(3n+2):hover { 
    background: var(--neon-cyan); 
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   📂 CATEGORY CARDS - ENHANCED
   ───────────────────────────────────────────────────────────────────────────── */
.categories-page-container a,
.home-categories li a {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.categories-page-container a::before,
.home-categories li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.categories-page-container a:hover::before,
.home-categories li a:hover::before {
    opacity: 1;
}

.categories-page-container a:hover,
.home-categories li a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

/* Category Image Glow */
.category-section-top img {
    border: 3px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    transition: var(--transition-smooth);
}

.category-section-top img:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ⭐ FEATURED & NEW BADGES - ANIMATED
   ───────────────────────────────────────────────────────────────────────────── */
.featured-badge,
.new-badge,
[class*="featured"],
[class*="new-icon"] {
    animation: glowPulse 2s ease-in-out infinite;
}

/* New Game Icon */
.new_icon,
img[src*="new_icon"] {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
    animation: float 3s ease-in-out infinite;
}

/* Featured Icon */
.featured_icon,
img[src*="featured_icon"] {
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
    animation: float 3s ease-in-out infinite 0.5s;
}

/* ─────────────────────────────────────────────────────────────────────────────
   🔘 BUTTONS - UNIVERSAL ENHANCEMENT
   ───────────────────────────────────────────────────────────────────────────── */
button,
.btn,
.menu-btn,
.show-more-games-button {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

button::after,
.btn::after,
.menu-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after,
.btn:active::after,
.menu-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Show More Button */
.show-more-games-button {
    background: linear-gradient(135deg, #373952 0%, #2d2e3b 100%);
    border: 2px solid rgba(168, 85, 247, 0.3);
}

.show-more-games-button:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

/* Exit Button */
#exit-button {
    background: var(--gradient-fire) !important;
    border: none;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

#exit-button:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────────────────────────
   📜 SCROLLBAR - NEON STYLE
   ───────────────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    box-shadow: 0 0 10px var(--neon-purple);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🦶 FOOTER ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
#footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050508 100%);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    position: relative;
}

#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-rainbow);
    background-size: 200% 100%;
    animation: gradientFlow 5s linear infinite;
}

.footer-description a {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    transition: var(--transition-smooth);
}

.footer-description a:hover {
    color: var(--neon-pink) !important;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   ⬆️ BACK TO TOP BUTTON
   ───────────────────────────────────────────────────────────────────────────── */
#BackTop {
    background: var(--gradient-primary) !important;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transition: all var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

#BackTop:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🎪 GAME PLAY PAGE - TOP SECTION
   ───────────────────────────────────────────────────────────────────────────── */
#top-section {
    position: relative;
}

#top-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(236, 72, 153, 0.1) 100%
    );
    pointer-events: none;
    z-index: 35;
}

/* Game Thumbnail Glow */
#top-section img.w-48 {
    border: 3px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4),
                0 0 80px rgba(168, 85, 247, 0.2);
    animation: glowPulse 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   📊 LOADING STATES & ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
#loader_container,
.gamemonetize-loader {
    background: var(--bg-dark);
}

#preloader_box {
    border-color: transparent;
    border-top-color: var(--neon-purple);
    border-right-color: var(--neon-pink);
    filter: drop-shadow(0 0 10px var(--neon-purple));
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   🔗 LINK ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
a.text-violet-500,
a.font-bold.text-violet-500 {
    position: relative;
    transition: var(--transition-smooth);
}

a.text-violet-500::after,
a.font-bold.text-violet-500::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-smooth);
}

a.text-violet-500:hover::after,
a.font-bold.text-violet-500:hover::after {
    width: 100%;
}

a.text-violet-500:hover,
a.font-bold.text-violet-500:hover {
    color: var(--neon-pink) !important;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🎭 PAGE LOAD ANIMATIONS
   ───────────────────────────────────────────────────────────────────────────── */
.content,
.home-games-list,
.category-games-list,
.play-games-page-game-list {
    animation: fadeInScale 0.6s ease-out;
}

/* Staggered Animation for Game Cards */
.home-games-list > a:nth-child(1) { animation-delay: 0.05s; }
.home-games-list > a:nth-child(2) { animation-delay: 0.1s; }
.home-games-list > a:nth-child(3) { animation-delay: 0.15s; }
.home-games-list > a:nth-child(4) { animation-delay: 0.2s; }
.home-games-list > a:nth-child(5) { animation-delay: 0.25s; }
.home-games-list > a:nth-child(6) { animation-delay: 0.3s; }
.home-games-list > a:nth-child(7) { animation-delay: 0.35s; }
.home-games-list > a:nth-child(8) { animation-delay: 0.4s; }

.home-games-list > a {
    animation: slideInUp 0.5s ease-out both;
}

/* Sidebar Items Animation */
#sidebar a {
    animation: slideInLeft 0.4s ease-out both;
}

#sidebar a:nth-child(1) { animation-delay: 0.05s; }
#sidebar a:nth-child(2) { animation-delay: 0.1s; }
#sidebar a:nth-child(3) { animation-delay: 0.15s; }
#sidebar a:nth-child(4) { animation-delay: 0.2s; }
#sidebar a:nth-child(5) { animation-delay: 0.25s; }
#sidebar a:nth-child(6) { animation-delay: 0.3s; }
#sidebar a:nth-child(7) { animation-delay: 0.35s; }
#sidebar a:nth-child(8) { animation-delay: 0.4s; }

/* ─────────────────────────────────────────────────────────────────────────────
   ✨ SPECIAL EFFECTS - NEON TEXT
   ───────────────────────────────────────────────────────────────────────────── */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--neon-purple),
        0 0 40px var(--neon-purple),
        0 0 80px var(--neon-purple);
    animation: neonFlicker 3s infinite alternate;
}

/* Game Title Glow */
h1.text-4xl,
.text-2xl.font-extrabold {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   🌟 RELATED GAMES WIDGET
   ───────────────────────────────────────────────────────────────────────────── */
.relategames li a {
    transition: all var(--transition-smooth);
}

.relategames li a:hover {
    transform: translateY(-5px);
}

.relategames li img {
    border: 2px solid rgba(168, 85, 247, 0.2);
    transition: all var(--transition-smooth);
}

.relategames li a:hover img {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* ─────────────────────────────────────────────────────────────────────────────
   📱 MOBILE ENHANCEMENTS
   ───────────────────────────────────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    /* Reduce animation intensity on mobile for performance */
    body::before {
        animation-duration: 30s;
    }
    
    .home-games-list > a,
    .new-games-list {
        animation: fadeInScale 0.3s ease-out both;
    }
    
    /* Touch-friendly glow */
    .new-games-list:active,
    .home-games-list > a:active {
        transform: scale(0.98);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   🎨 REDUCED MOTION SUPPORT
   ───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   🔮 UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────────────── */
.glow-purple { box-shadow: var(--glow-purple); }
.glow-pink { box-shadow: var(--glow-pink); }
.glow-cyan { box-shadow: var(--glow-cyan); }
.glow-green { box-shadow: var(--glow-green); }

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

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: glowPulse 2s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 2s infinite; }
.animate-gradient { 
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite; 
}
