/* Hero & Grid Improvements */

/* 1. Strict Grid System */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}

/* 2. New Hero Design - Casino Table Theme */
.hero.casino-theme {
    background: radial-gradient(circle at center, #1a472a 0%, #0d2b18 60%, #000 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Space for fixed header */
    padding-bottom: 60px;
    height: auto;
    min-height: 85vh;
}

/* Spotlight Effect */
.hero.casino-theme::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: spotlightRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes spotlightRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mega Hand Visual (Hero Centerpiece) */
.mega-hand-container {
    position: relative;
    width: 300px;
    height: 250px;
    margin: 0 auto;
    perspective: 1000px;
}

.mega-card {
    width: 140px;
    height: 200px;
    background: white;
    border-radius: 10px;
    position: absolute;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 24px;
    border: 2px solid #ddd;
    transition: transform 0.5s;
    bottom: 0;
}

.mega-card.red { color: #d00; }
.mega-card.black { color: #000; }

.mega-card::before {
    content: attr(data-rank);
    font-size: 1.2em;
}

.mega-card .suit-center {
    font-size: 3em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mega-card::after {
    content: attr(data-rank);
    transform: rotate(180deg);
}

/* Fan Animation */
.mega-card:nth-child(1) { left: 0; transform: rotate(-15deg) translateY(20px); z-index: 1; }
.mega-card:nth-child(2) { left: 80px; transform: rotate(0deg) translateY(-20px); z-index: 2; box-shadow: 0 0 20px gold; }
.mega-card:nth-child(3) { left: 160px; transform: rotate(15deg) translateY(20px); z-index: 1; }

.mega-hand-container:hover .mega-card:nth-child(1) { transform: rotate(-25deg) translate(-20px, 40px); }
.mega-hand-container:hover .mega-card:nth-child(3) { transform: rotate(25deg) translate(20px, 40px); }

/* Jackpot Counter */
.hero-jackpot {
    background: rgba(0,0,0,0.6);
    border: 1px solid gold;
    border-radius: 50px;
    padding: 10px 30px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.jackpot-label {
    color: gold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 2px;
}

.jackpot-amount {
    font-family: 'Russo One', sans-serif;
    color: white;
    font-size: 1.8em;
    text-shadow: 0 0 10px gold;
}

/* Floating Coins Shower */
.coin-shower {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(gold, orange);
    border-radius: 50%;
    border: 2px dashed #ffeb3b;
    animation: rain 3s linear infinite;
    top: -50px;
    z-index: 0;
}

@keyframes rain {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
