/* ═══════════════════════════════════════════════════════════════
   🎰 PREMIUM 3D SLOT MACHINE - Real Vegas Style
   Inspired by: Wynn Las Vegas, Bellagio, MGM Grand
   Features: 3D reels, realistic symbols, professional animations
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   🎰 SLOT MACHINE FRAME - Vegas Cabinet Style
   ═══════════════════════════════════════════════════════════════ */

.slot-machine {
    max-width: 900px;
    margin: 0 auto;
    perspective: 2000px;
}

.slot-cabinet {
    background: linear-gradient(135deg, #1a0e0e 0%, #3d1a1a 50%, #1a0e0e 100%);
    border-radius: 40px;
    padding: 3rem;
    border: 8px solid var(--gold-imperial);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(212, 175, 55, 0.1),
        0 0 100px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.slot-cabinet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.05) 50%,
            transparent 100%
        );
    animation: cabinetShine 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cabinetShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════════
   🎰 SLOT MACHINE HEADER - Title & Jackpot Display
   ═══════════════════════════════════════════════════════════════ */

.slot-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(205, 127, 50, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.slot-title-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-imperial), var(--gold-champagne), var(--gold-imperial));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: jackpotGlow 2s ease-in-out infinite;
}

@keyframes jackpotGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.slot-subtitle-text {
    font-size: 1.2rem;
    color: var(--gold-champagne);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   🎰 REELS CONTAINER - 3D Perspective Display
   ═══════════════════════════════════════════════════════════════ */

.slot-display {
    background: linear-gradient(180deg, #000 0%, #1a1a1a 10%, #0a0a0a 90%, #000 100%);
    padding: 4rem 3rem;
    border-radius: 30px;
    border: 6px solid var(--gold-bronze);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.9),
        inset 0 0 80px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(212, 175, 55, 0.1);
    position: relative;
    margin-bottom: 2rem;
}

/* Premium inner frame */
.slot-display::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid rgba(212, 175, 55, 0.4);
    border-radius: 25px;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Spotlight effect */
.slot-display::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.reels-container {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   🎰 INDIVIDUAL REEL - 3D Rotating Drum
   ═══════════════════════════════════════════════════════════════ */

.reel {
    width: 160px;
    height: 200px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(240, 240, 240, 0.95) 50%,
        rgba(220, 220, 220, 0.93) 100%
    );
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.7),
        inset 0 0 30px rgba(255, 255, 255, 0.4),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--gold-imperial);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    position: relative;
    overflow: hidden;
}

/* Top highlight */
.reel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.6) 0%,
        transparent 100%
    );
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

/* Bottom shadow */
.reel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    border-radius: 0 0 20px 20px;
    pointer-events: none;
}

/* Spinning animation */
.reel.spinning {
    animation: reelSpin3D 0.08s linear infinite;
}

@keyframes reelSpin3D {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}

.reel.stopping {
    animation: reelBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes reelBounce {
    0% { transform: rotateX(0deg) scale(1); }
    30% { transform: rotateX(15deg) scale(0.95); }
    60% { transform: rotateX(-10deg) scale(1.02); }
    80% { transform: rotateX(5deg) scale(0.98); }
    100% { transform: rotateX(0deg) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   🎰 SLOT SYMBOLS - Professional Vegas Icons
   ═══════════════════════════════════════════════════════════════ */

.symbol-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.symbol-icon {
    font-size: 6rem;
    line-height: 1;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: symbolFloat 2s ease-in-out infinite;
}

@keyframes symbolFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Win state for reels */
.reel.win {
    animation: reelWinPulse 0.8s ease-in-out 3;
    border-color: #ffd700;
    box-shadow:
        0 0 60px rgba(255, 215, 0, 0.8),
        inset 0 0 40px rgba(255, 215, 0, 0.3);
}

@keyframes reelWinPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* ═══════════════════════════════════════════════════════════════
   🎰 PAYLINES & WIN INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.payline-indicator {
    position: absolute;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.8) 20%,
        rgba(255, 215, 0, 0.8) 80%,
        transparent 100%
    );
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.reels-container.win .payline-indicator {
    opacity: 1;
    animation: paylinePulse 0.8s ease-in-out infinite;
}

@keyframes paylinePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   🎰 SLOT CONTROLS - Betting & Spin
   ═══════════════════════════════════════════════════════════════ */

.betting-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.chip-selector {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(205, 127, 50, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.chip {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 5px solid;
    font-weight: 900;
    font-family: var(--font-display);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.chip::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border: 3px dashed currentColor;
    opacity: 0.6;
}

.chip-10 {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #0D47A1;
    color: #fff;
}

.chip-50 {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border-color: #1B5E20;
    color: #fff;
}

.chip-100 {
    background: linear-gradient(135deg, #000, #333);
    border-color: var(--gold-imperial);
    color: var(--gold-imperial);
}

.chip-500 {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border-color: #4A148C;
    color: #fff;
}

.chip:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.chip.selected {
    transform: scale(1.15);
    box-shadow:
        0 0 40px currentColor,
        inset 0 0 30px rgba(255, 255, 255, 0.4);
    animation: chipPulse 1.5s ease-in-out infinite;
}

@keyframes chipPulse {
    0%, 100% { box-shadow: 0 0 40px currentColor; }
    50% { box-shadow: 0 0 60px currentColor; }
}

.chip-value {
    font-size: 1.3rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════
   🎰 SPIN BUTTON - Vegas Style Lever/Button
   ═══════════════════════════════════════════════════════════════ */

.btn-play {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-velvet), var(--red-ruby));
    border: 8px solid var(--gold-imperial);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 15px 40px rgba(224, 17, 95, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow:
        0 20px 60px rgba(224, 17, 95, 0.8),
        inset 0 0 60px rgba(255, 255, 255, 0.3),
        0 0 80px rgba(224, 17, 95, 0.5);
    border-color: #ffd700;
}

.btn-play:active {
    transform: scale(0.95);
}

.btn-play.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-play i {
    font-size: 2.5rem;
    position: relative;
    z-index: 10;
}

.btn-play span {
    position: relative;
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════
   🎰 RESULT DISPLAY & WIN MESSAGES
   ═══════════════════════════════════════════════════════════════ */

.slot-result {
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.result-display {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.result-display.win {
    color: var(--green-emerald);
    text-shadow:
        0 0 30px var(--green-emerald),
        0 0 60px var(--green-emerald);
    background: linear-gradient(135deg,
        rgba(16, 185, 129, 0.2),
        rgba(5, 150, 105, 0.1)
    );
    border: 3px solid var(--green-emerald);
    animation: resultWinPulse 0.6s ease-in-out 5;
}

.result-display.big-win {
    font-size: 3.5rem;
    animation: bigWinExplosion 1s ease-out;
}

@keyframes resultWinPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.5);
    }
}

@keyframes bigWinExplosion {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.result-display.lose {
    color: rgba(224, 17, 95, 0.8);
}

/* ═══════════════════════════════════════════════════════════════
   🎰 STATISTICS CARDS
   ═══════════════════════════════════════════════════════════════ */

.slot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(205, 127, 50, 0.08));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: var(--gold-imperial);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gold-champagne);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold-imperial);
    font-family: var(--font-display);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   🎰 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .slot-cabinet {
        padding: 2rem 1.5rem;
    }

    .slot-title-text {
        font-size: 2rem;
    }

    .reels-container {
        gap: 1.5rem;
    }

    .reel {
        width: 100px;
        height: 140px;
        font-size: 4rem;
    }

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

    .chip {
        width: 70px;
        height: 70px;
    }

    .chip-value {
        font-size: 1.1rem;
    }

    .btn-play {
        width: 140px;
        height: 140px;
        font-size: 1.2rem;
    }

    .btn-play i {
        font-size: 2rem;
    }

    .result-display {
        font-size: 1.8rem;
        padding: 1rem 2rem;
    }

    .slot-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .slot-display {
        padding: 2rem 1rem;
    }

    .reels-container {
        gap: 0.8rem;
    }

    .reel {
        width: 80px;
        height: 110px;
        font-size: 3rem;
    }

    .chip {
        width: 60px;
        height: 60px;
    }

    .chip-value {
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   🎰 JACKPOT CELEBRATION EFFECTS
   ═══════════════════════════════════════════════════════════════ */

@keyframes jackpotCelebration {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.2) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.slot-machine.jackpot {
    animation: jackpotCelebration 0.8s ease-in-out 5;
}

.slot-machine.jackpot .slot-cabinet {
    box-shadow:
        0 0 100px rgba(255, 215, 0, 0.8),
        inset 0 0 80px rgba(255, 215, 0, 0.2);
}
