/* ========================================
   SpinVibe Slot Game Styles
   ======================================== */

.slot-game-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: 1.5rem;
    border: 1px solid rgba(30, 41, 59, 0.5);
    box-shadow: 0 20px 60px rgba(30, 41, 59, 0.3);
}

/* Header */
.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-display {
    display: flex;
    flex-direction: column;
}

.credits-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.credits-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
}

.spin-cost {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Slot Machine */
.slot-machine {
    position: relative;
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid rgba(30, 41, 59, 0.6);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.reel-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.reel {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 2px solid rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.reel-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.symbol {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.2));
    transition: transform 0.3s ease;
}

/* Spin Animation */
.reel.spinning {
    border-color: var(--accent);
    box-shadow: inset 0 0 20px rgba(0, 212, 170, 0.2), 0 0 20px rgba(0, 212, 170, 0.2);
}

.reel.spinning .symbol {
    animation: symbol-pulse 0.15s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes symbol-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Win Line */
.win-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    pointer-events: none;
}

/* Controls */
.slot-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.spin-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    background: var(--accent);
    border: none;
    border-radius: 3rem;
    color: var(--bg-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.3);
    filter: brightness(1.1);
}

.spin-button:active:not(:disabled) {
    transform: translateY(0);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.spin-icon {
    font-size: 1.5rem;
}

/* Message */
.slot-message {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-message.normal {
    background: rgba(30, 41, 59, 0.2);
    color: var(--text-secondary);
    border: 1px solid rgba(30, 41, 59, 0.3);
}

.slot-message.win {
    background: rgba(0, 212, 170, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 170, 0.2);
    animation: win-pulse 0.5s ease-in-out;
}

@keyframes win-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Legend */
.slot-legend {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-legend h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.2);
    border-radius: 0.5rem;
    border: 1px solid rgba(30, 41, 59, 0.3);
}

.legend-symbols {
    font-size: 1.25rem;
}

.legend-payout {
    font-weight: 700;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
}

/* Win Animation */
.win-animation {
    animation: win-glow 1s ease-in-out;
}

@keyframes win-glow {
    0%, 100% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 0 rgba(0, 212, 170, 0);
    }
    25% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 170, 0.2);
    }
    50% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 170, 0.3);
    }
    75% {
        box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 170, 0.2);
    }
}

/* Theme Variations */
.theme-neon .reel {
    border-color: rgba(0, 212, 170, 0.3);
}

.theme-neon .slot-machine {
    border-color: rgba(0, 212, 170, 0.4);
}

.theme-gold .reel {
    border-color: rgba(0, 212, 170, 0.2);
}

.theme-gold .slot-machine {
    border-color: rgba(0, 212, 170, 0.3);
}

.theme-red .reel {
    border-color: rgba(239, 68, 68, 0.3);
}

.theme-red .slot-machine {
    border-color: rgba(239, 68, 68, 0.4);
}

.theme-blue .reel {
    border-color: rgba(59, 130, 246, 0.3);
}

.theme-blue .slot-machine {
    border-color: rgba(59, 130, 246, 0.4);
}

.theme-green .reel {
    border-color: rgba(34, 197, 94, 0.3);
}

.theme-green .slot-machine {
    border-color: rgba(34, 197, 94, 0.4);
}

/* Responsive */
@media (max-width: 640px) {
    .slot-game-container {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .reel {
        width: 80px;
        height: 80px;
    }
    
    .symbol {
        font-size: 2rem;
    }
    
    .spin-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    .slot-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reel.spinning .symbol {
        animation: none;
    }
    
    .slot-message.win {
        animation: none;
    }
    
    .win-animation {
        animation: none;
    }
}