/* ============================================
   GAME CATEGORY THEMES
   Different visual styles for each game category
   Mobile-optimized with minimal animations
   ============================================ */

/* ============================================
   CSS VARIABLES FOR THEMES
   ============================================ */
:root {
    /* Slots - Neon Vegas */
    --slots-neon-pink: #ff2d95;
    --slots-neon-blue: #00d4ff;
    --slots-gold: #ffd700;
    --slots-purple: #1a0a2e;
    --slots-dark: #0d0515;

    /* Casino - Green Felt */
    --casino-green: #1a472a;
    --casino-felt: #234d32;
    --casino-gold: #d4af37;
    --casino-red: #c41e3a;
    --casino-dark: #0f2818;

    /* Arcade - Retro */
    --arcade-cyan: #00ffff;
    --arcade-magenta: #ff00ff;
    --arcade-yellow: #ffff00;
    --arcade-blue: #0a1628;
    --arcade-dark: #050d1a;

    /* Special - Cosmic Portal */
    --special-indigo: #1a0a30;
    --special-purple: #6b21a8;
    --special-gold: #ffd700;
    --special-cyan: #00ffcc;
    --special-pink: #ff66ff;
    --special-dark: #0a0515;
}

/* ============================================
   1. SLOTS - NEON VEGAS THEME
   Electric pink + gold + neon blue
   ============================================ */

.category-slots {
    position: relative;
}

/* Section header glow */
.category-slots .carousel-section-header {
    position: relative;
}

.category-slots .carousel-section-title h3 {
    background: linear-gradient(90deg, var(--slots-neon-pink), var(--slots-gold), var(--slots-neon-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slots-shimmer 3s linear infinite;
}

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

.category-slots .carousel-section-icon {
    filter: drop-shadow(0 0 8px var(--slots-neon-pink));
}

/* Slots card styling */
.category-slots .carousel-game-card {
    background: linear-gradient(145deg, var(--slots-purple) 0%, var(--slots-dark) 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--slots-neon-pink), var(--slots-neon-blue)) 1;
    position: relative;
    overflow: hidden;
}

/* Neon glow border effect */
.category-slots .carousel-game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--slots-neon-pink), var(--slots-neon-blue), var(--slots-gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    filter: blur(8px);
}

/* Card image overlay with neon tint */
.category-slots .carousel-card-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(26, 10, 46, 0.3) 50%,
        rgba(13, 5, 21, 0.9) 100%
    );
}

/* Rarity bar neon glow */
.category-slots .carousel-rarity-bar {
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* Play hint styling */
.category-slots .carousel-play-hint {
    color: var(--slots-neon-pink);
    text-shadow: 0 0 8px var(--slots-neon-pink);
}

/* Hover effect - pulse glow */
@media (hover: hover) {
    .category-slots .carousel-game-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow:
            0 0 20px rgba(255, 45, 149, 0.4),
            0 0 40px rgba(0, 212, 255, 0.2);
    }

    .category-slots .carousel-game-card:hover::before {
        opacity: 1;
        animation: slots-border-pulse 1.5s ease-in-out infinite;
    }
}

@keyframes slots-border-pulse {
    0%, 100% { opacity: 0.6; filter: blur(8px); }
    50% { opacity: 1; filter: blur(12px); }
}

/* ============================================
   2. CASINO - GREEN FELT THEME
   Classic casino green + gold accents
   ============================================ */

.category-casino {
    position: relative;
}

/* Section header gold accent */
.category-casino .carousel-section-title h3 {
    color: var(--casino-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-casino .carousel-section-icon {
    filter: drop-shadow(0 0 6px var(--casino-gold));
}

/* Casino card - felt texture effect */
.category-casino .carousel-game-card {
    background:
        /* Subtle felt texture pattern */
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(145deg, var(--casino-felt) 0%, var(--casino-dark) 100%);
    background-size: 8px 8px, 12px 12px, 100% 100%;
    border: 2px solid var(--casino-gold);
    position: relative;
}

/* Gold corner accents */
.category-casino .carousel-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--casino-gold);
    border-left: 3px solid var(--casino-gold);
    border-radius: 12px 0 0 0;
    z-index: 2;
}

.category-casino .carousel-game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid var(--casino-gold);
    border-right: 3px solid var(--casino-gold);
    border-radius: 0 0 12px 0;
    z-index: 2;
}

/* Card overlay with elegant dark gradient */
.category-casino .carousel-card-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(15, 40, 24, 0.4) 60%,
        rgba(15, 40, 24, 0.95) 100%
    );
}

/* Rarity bar - gold glow */
.category-casino .carousel-rarity-bar {
    box-shadow: 0 0 8px var(--casino-gold);
}

/* Card title gold accent */
.category-casino .carousel-card-title {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Play hint */
.category-casino .carousel-play-hint {
    color: var(--casino-gold);
}

/* Hover effect - elegant lift */
@media (hover: hover) {
    .category-casino .carousel-game-card:hover {
        transform: translateY(-6px);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(212, 175, 55, 0.3);
        border-color: #f0d060;
    }
}

/* ============================================
   3. ARCADE - RETRO THEME
   80s pixel art vibes with scanlines
   ============================================ */

.category-other {
    position: relative;
}

/* Section header retro colors */
.category-other .carousel-section-title h3 {
    color: var(--arcade-cyan);
    text-shadow:
        2px 2px 0 var(--arcade-magenta),
        -1px -1px 0 var(--arcade-yellow);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.category-other .carousel-section-icon {
    filter: drop-shadow(0 0 8px var(--arcade-cyan));
}

/* Arcade card - CRT monitor style */
.category-other .carousel-game-card {
    background: linear-gradient(145deg, var(--arcade-blue) 0%, var(--arcade-dark) 100%);
    border: 3px solid var(--arcade-cyan);
    position: relative;
    overflow: hidden;
}

/* Pixel corner effect */
.category-other .carousel-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Scanlines effect */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 3;
}

/* Pixel border corners */
.category-other .carousel-game-card::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    pointer-events: none;
    z-index: 2;
}

/* Card overlay with CRT glow */
.category-other .carousel-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 255, 255, 0.05) 0%,
        transparent 30%,
        rgba(5, 13, 26, 0.8) 100%
    );
}

/* Rarity bar pixel style */
.category-other .carousel-rarity-bar {
    height: 4px;
    box-shadow:
        0 0 6px var(--arcade-cyan),
        0 2px 0 var(--arcade-magenta);
}

/* Card title retro font */
.category-other .carousel-card-title {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Play hint arcade style */
.category-other .carousel-play-hint {
    color: var(--arcade-yellow);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover effect - glitch/flicker */
@media (hover: hover) {
    .category-other .carousel-game-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 0 20px rgba(0, 255, 255, 0.5),
            0 0 40px rgba(255, 0, 255, 0.2),
            inset 0 0 30px rgba(0, 255, 255, 0.1);
        border-color: var(--arcade-yellow);
        animation: arcade-glitch 0.3s ease;
    }
}

@keyframes arcade-glitch {
    0%, 100% { transform: translateY(-4px) translateX(0); }
    25% { transform: translateY(-4px) translateX(-2px); }
    75% { transform: translateY(-4px) translateX(2px); }
}

/* ============================================
   4. SPECIAL - GOLDEN MYSTICAL THEME
   Elegant gold + purple with clean outline
   ============================================ */

.category-special {
    position: relative;
}

/* Section header - golden text */
.category-special .carousel-section-title h3 {
    color: var(--special-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-special .carousel-section-icon {
    filter: drop-shadow(0 0 8px var(--special-gold));
}

/* Special card - clean golden outline */
.category-special .carousel-game-card {
    background: linear-gradient(145deg, var(--special-indigo) 0%, var(--special-dark) 100%);
    border: 2px solid var(--special-gold);
    position: relative;
    overflow: hidden;
}

/* Golden corner accents (like casino style) */
.category-special .carousel-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-top: 3px solid var(--special-purple);
    border-left: 3px solid var(--special-purple);
    border-radius: 12px 0 0 0;
    z-index: 2;
}

.category-special .carousel-game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    border-bottom: 3px solid var(--special-purple);
    border-right: 3px solid var(--special-purple);
    border-radius: 0 0 12px 0;
    z-index: 2;
}

/* Card overlay */
.category-special .carousel-card-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(26, 10, 48, 0.4) 60%,
        rgba(10, 5, 21, 0.95) 100%
    );
}

/* Rarity bar glow */
.category-special .carousel-rarity-bar {
    box-shadow: 0 0 8px var(--special-gold);
}

/* Card title */
.category-special .carousel-card-title {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Play hint */
.category-special .carousel-play-hint {
    color: var(--special-gold);
}

/* Hover effect - elegant lift */
@media (hover: hover) {
    .category-special .carousel-game-card:hover {
        transform: translateY(-6px);
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 215, 0, 0.3);
        border-color: var(--special-pink);
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   Reduce effects on mobile for performance
   ============================================ */

@media (max-width: 768px) {
    /* Slots - simplified glow */
    .category-slots .carousel-game-card::before {
        filter: blur(4px);
        opacity: 0.4;
    }

    /* Disable shimmer animation on mobile */
    .category-slots .carousel-section-title h3 {
        animation: none;
        background-position: 0% center;
    }

    /* Casino - lighter shadows */
    .category-casino .carousel-game-card {
        background-size: 16px 16px, 20px 20px, 100% 100%;
    }

    /* Arcade - simpler scanlines */
    .category-other .carousel-game-card::before {
        background:
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 4px,
                rgba(0, 255, 255, 0.02) 4px,
                rgba(0, 255, 255, 0.02) 8px
            );
    }

}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (pointer: coarse) {
    /* Disable hover animations on touch */
    .category-slots .carousel-game-card:hover::before,
    .category-casino .carousel-game-card:hover,
    .category-other .carousel-game-card:hover,
    .category-special .carousel-game-card:hover {
        animation: none;
    }

    /* Keep basic transform for tap feedback */
    .category-slots .carousel-game-card:active,
    .category-casino .carousel-game-card:active,
    .category-other .carousel-game-card:active,
    .category-special .carousel-game-card:active {
        transform: scale(0.98);
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .category-slots .carousel-section-title h3,
    .category-slots .carousel-game-card:hover::before {
        animation: none !important;
    }

    .category-other .carousel-game-card:hover {
        animation: none !important;
    }

}
