/*  ═══════════════════════════════════════════════════════════════
    🎰 ULTRA PREMIUM GAME CARDS - MONTE CARLO ELITE EDITION
    Inspired by: Casino de Monte-Carlo, Bellagio Las Vegas, Marina Bay Sands
    ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   📦 GAME MENU CONTAINER
   ═══════════════════════════════════════ */
#game-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 4rem 2rem;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0A0E1A 0%, #0F1729 50%, #0A0E1A 100%);
    position: relative;
    overflow: hidden;
}

#game-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 175, 55, 0.02) 2px, rgba(212, 175, 55, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(212, 175, 55, 0.02) 2px, rgba(212, 175, 55, 0.02) 4px);
    pointer-events: none;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════
   🎲 GAMES GRID LAYOUT
   ═══════════════════════════════════════ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1600px;
    width: 100%;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════
   💎 PREMIUM GAME CARD DESIGN
   ═══════════════════════════════════════ */
.game-card {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 31, 58, 0.95), rgba(15, 20, 40, 0.98));
    border-radius: 28px;
    padding: 3rem 2.5rem;
    min-height: 280px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(212, 175, 55, 0.15);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
}

/* Golden Shine Overlay */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
}

.game-card:hover::before {
    left: 100%;
}

/* Premium Border Glow */
.game-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.6) 0%,
        rgba(139, 0, 0, 0.4) 25%,
        rgba(80, 200, 120, 0.3) 50%,
        rgba(139, 0, 0, 0.4) 75%,
        rgba(212, 175, 55, 0.6) 100%
    );
    border-radius: 28px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(10px);
}

.game-card:hover::after {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        filter: blur(10px) hue-rotate(0deg);
    }
    100% {
        filter: blur(10px) hue-rotate(360deg);
    }
}

/* Hover Effect */
.game-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 15px 35px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Active/Click Effect */
.game-card:active {
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s ease;
}

/* ═══════════════════════════════════════
   🎯 GAME ICON STYLING
   ═══════════════════════════════════════ */
.game-icon {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.game-card:hover .game-icon {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 12px 24px rgba(212, 175, 55, 0.5));
    animation: none;
}

/* ═══════════════════════════════════════
   📝 GAME TITLE STYLING
   ═══════════════════════════════════════ */
.game-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        #FFD700 0%,
        #D4AF37 30%,
        #F7E7CE 50%,
        #D4AF37 70%,
        #CD7F32 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    letter-spacing: 1px;
    text-shadow:
        0 2px 10px rgba(212, 175, 55, 0.3),
        0 4px 20px rgba(212, 175, 55, 0.2);
    margin: 0;
    transition: all 0.4s ease;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.game-card:hover .game-title {
    transform: scale(1.05);
    text-shadow:
        0 4px 15px rgba(212, 175, 55, 0.5),
        0 8px 30px rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════════════════
   🏷️ GAME BADGE (for Premium/Special Games)
   ═══════════════════════════════════════ */
.game-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(139, 0, 0, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.game-card:hover .game-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(139, 0, 0, 0.3));
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow:
        0 6px 18px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   🎨 SPECIAL CARD VARIANTS
   ═══════════════════════════════════════ */

/* Premium Card (Horse Racing, etc.) */
.game-card.premium {
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.3), rgba(26, 31, 58, 0.95));
    border-color: rgba(139, 0, 0, 0.4);
}

.game-card.premium:hover {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 15px 35px rgba(139, 0, 0, 0.5),
        0 0 40px rgba(139, 0, 0, 0.3);
}

.game-card.premium .game-badge {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.4), rgba(212, 175, 55, 0.2));
    border-color: rgba(139, 0, 0, 0.6);
    color: #FF6B6B;
}

/* Greyhound Racing (Teal Theme) */
.game-card.greyhound {
    background: linear-gradient(145deg, rgba(0, 128, 128, 0.2), rgba(26, 31, 58, 0.95));
    border-color: rgba(80, 200, 120, 0.3);
}

.game-card.greyhound:hover {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 15px 35px rgba(80, 200, 120, 0.4),
        0 0 40px rgba(80, 200, 120, 0.2);
}

.game-card.greyhound .game-badge {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.2), rgba(0, 128, 128, 0.2));
    border-color: rgba(80, 200, 120, 0.4);
    color: #50C878;
}

/* Turkish Lotto (Gold/Red Theme) */
.game-card.turkish-lotto {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(26, 31, 58, 0.95));
    border-color: rgba(212, 175, 55, 0.3);
}

.game-card.turkish-lotto:hover {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 15px 35px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
}

.game-card.turkish-lotto .game-badge {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(227, 10, 23, 0.2));
    border-color: rgba(212, 175, 55, 0.5);
    color: #FFD700;
}

/* ═══════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 1.5rem;
    }

    .game-card {
        padding: 2.5rem 2rem;
        min-height: 250px;
    }

    .game-icon {
        font-size: 4rem;
    }

    .game-title {
        font-size: 1.75rem;
    }

    .game-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #game-menu {
        padding: 2rem 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .game-card {
        padding: 2rem 1.5rem;
        min-height: 220px;
        border-radius: 20px;
    }

    .game-icon {
        font-size: 3.5rem;
    }

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

    .game-badge {
        font-size: 0.75rem;
        padding: 0.45rem 1rem;
        letter-spacing: 1px;
    }

    .game-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .game-card {
        padding: 1.75rem 1.25rem;
        min-height: 200px;
        gap: 1rem;
    }

    .game-icon {
        font-size: 3rem;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .game-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
    }
}

/* ═══════════════════════════════════════
   ✨ PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .game-card,
    .game-icon,
    .game-title,
    .game-badge {
        animation: none;
        transition: none;
    }

    .game-card:hover {
        transform: none;
    }
}

/* GPU Acceleration */
.game-card {
    will-change: transform;
    transform: translateZ(0);
}

.game-icon,
.game-title {
    will-change: transform;
}
