/* ═══════════════════════════════════════════════════════════════
   🌟 ULTRA PREMIUM GAME MENU - RESPONSIVE DESIGN
   Wynn Las Vegas + Venetian Macau + Monte Carlo Inspired
   ═══════════════════════════════════════════════════════════════ */

/* Main Menu Container */
#game-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 100px 2rem 2rem !important;
    background: linear-gradient(180deg,
        rgba(16, 20, 39, 0.98) 0%,
        rgba(12, 15, 28, 1) 50%,
        rgba(8, 10, 20, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Animated background effects */
#game-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 188, 156, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* Menu Content Wrapper */
#game-menu > div {
    width: 100%;
    max-width: 1600px;
    position: relative;
    z-index: 1;
}

/* Premium Header Section */
.menu-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease-out;
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 25%, #FFD700 50%, #FFED4E 75%, #FFD700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.menu-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: rgba(212, 175, 55, 0.9);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Grid System - Responsive */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Game Card Base Styles */
.game-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(205, 127, 50, 0.1) 50%,
        rgba(212, 175, 55, 0.08) 100%
    );
    border: 3px solid rgba(205, 127, 50, 0.4);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 0 60px rgba(212, 175, 55, 0.05);
}

/* Card Glow Effect */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
}

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

/* Card Hover States */
.game-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow:
        0 20px 60px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.3),
        0 0 100px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.25) 0%,
        rgba(205, 127, 50, 0.15) 50%,
        rgba(212, 175, 55, 0.12) 100%
    );
}

/* Premium Card - Featured Games */
.game-card.premium {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.3) 0%,
        rgba(205, 127, 50, 0.2) 50%,
        rgba(212, 175, 55, 0.15) 100%
    );
    border: 4px solid #FFD700;
    box-shadow:
        0 15px 50px rgba(255, 215, 0, 0.4),
        inset 0 2px 0 rgba(255, 215, 0, 0.2),
        0 0 80px rgba(255, 215, 0, 0.15);
}

.game-card.premium:hover {
    border-color: #FFF;
    transform: translateY(-12px) scale(1.05);
    box-shadow:
        0 25px 80px rgba(255, 215, 0, 0.6),
        inset 0 2px 0 rgba(255, 215, 0, 0.4),
        0 0 120px rgba(255, 215, 0, 0.3);
}

/* Greyhound Card - Teal Theme */
.game-card.greyhound {
    background: linear-gradient(135deg,
        rgba(26, 188, 156, 0.3) 0%,
        rgba(22, 160, 133, 0.2) 50%,
        rgba(26, 188, 156, 0.15) 100%
    );
    border: 4px solid #1ABC9C;
    color: #1ABC9C;
    box-shadow:
        0 15px 50px rgba(26, 188, 156, 0.4),
        inset 0 2px 0 rgba(26, 188, 156, 0.2),
        0 0 80px rgba(26, 188, 156, 0.15);
}

.game-card.greyhound:hover {
    border-color: #48C9B0;
    box-shadow:
        0 25px 80px rgba(26, 188, 156, 0.6),
        inset 0 2px 0 rgba(26, 188, 156, 0.4),
        0 0 120px rgba(26, 188, 156, 0.3);
}

/* Card Icon */
.game-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.4));
    transition: all 0.4s ease;
    display: inline-block;
}

.game-card:hover .game-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.6));
}

/* Card Title */
.game-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-card:hover .game-title {
    color: #FFF;
    text-shadow: 0 4px 16px rgba(255, 215, 0, 0.8);
}

/* Card Subtitle/Badge */
.game-badge {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    opacity: 0.85;
    margin-top: 0.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-badge {
    opacity: 1;
}

/* Responsive Breakpoints */

/* Tablet - 768px */
@media (max-width: 768px) {
    #game-menu {
        padding: 100px 1rem 3rem !important;
    }

    .menu-header {
        margin-bottom: 3rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .game-card {
        padding: 2rem 1.2rem;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    #game-menu {
        padding: 90px 0.75rem 2rem !important;
    }

    .menu-header {
        margin-bottom: 2rem;
    }

    .menu-title {
        letter-spacing: 1px;
    }

    .menu-subtitle {
        letter-spacing: 2px;
        font-size: 0.85rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .game-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .game-icon {
        margin-bottom: 0.75rem;
    }

    .game-title {
        margin-bottom: 0.3rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }

    .game-card {
        padding: 3rem 2rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    #game-menu {
        background: white !important;
    }

    .game-card {
        page-break-inside: avoid;
        border: 2px solid #333;
    }
}
