/* El Zulo Casino - Slots Professional Styles */
/* Stake/Rainbet Style Animations */

/* Slot Machine Container */
.slot-machine {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Slot Header */
.slot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.slot-title {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slot-title-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.slot-rtp {
    background: var(--bg-input);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.slot-rtp span {
    color: var(--accent-success);
    font-weight: 600;
}

/* Reels Container */
.slot-reels-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    margin-bottom: 24px;
}

.slot-reels-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

/* Win Lines Overlay */
.slot-winlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.winline {
    position: absolute;
    height: 4px;
    background: var(--gradient-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.winline.active {
    opacity: 1;
    animation: winlinePulse 0.5s ease-in-out infinite alternate;
}

@keyframes winlinePulse {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    to { box-shadow: 0 0 40px rgba(255, 215, 0, 1); }
}

/* Reels */
.slot-reels {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.slot-reel {
    width: 120px;
    height: 360px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.8) 100%);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}

.slot-reel::before,
.slot-reel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40%;
    z-index: 5;
    pointer-events: none;
}

.slot-reel::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.slot-reel::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* Reel Strip */
.reel-strip {
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease-out;
}

.reel-strip.spinning {
    transition: none;
}

.reel-strip.stopping {
    transition: transform 0.8s cubic-bezier(0.17, 0.67, 0.12, 1.2);
}

/* Symbols */
.slot-symbol {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    flex-shrink: 0;
}

.slot-symbol.winning {
    animation: symbolWin 0.5s ease-in-out infinite;
}

.slot-symbol.winning::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 3px solid var(--accent-warning);
    border-radius: var(--border-radius-sm);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.5);
    animation: symbolGlow 0.5s ease-in-out infinite alternate;
}

@keyframes symbolWin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes symbolGlow {
    from { box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.5); }
    to { box-shadow: inset 0 0 50px rgba(255, 215, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.8); }
}

/* Symbol Icons */
.symbol-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.symbol-icon.wild {
    background: var(--gradient-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.symbol-icon.scatter {
    background: var(--gradient-secondary);
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.5);
}

.symbol-icon.bonus {
    background: var(--gradient-success);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Center Line Indicator */
.slot-center-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 124px;
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius-sm);
    pointer-events: none;
    z-index: 6;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Slot Info Bar */
.slot-info-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    margin-top: 16px;
}

.slot-info-item {
    text-align: center;
}

.slot-info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.slot-info-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.slot-info-value.win {
    color: var(--accent-success);
}

.slot-info-value.multiplier {
    color: var(--accent-warning);
}

/* Slot Controls */
.slot-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.slot-bet-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bet-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-control-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.bet-btn {
    width: 40px;
    height: 44px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.bet-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.bet-input {
    width: 100px;
    height: 44px;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none;
}

.bet-shortcuts {
    display: flex;
    gap: 8px;
}

.bet-shortcut {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.bet-shortcut:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Spin Button */
.spin-button-container {
    position: relative;
}

.spin-button {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

.spin-button::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: var(--bg-card);
    z-index: 0;
}

.spin-button span {
    position: relative;
    z-index: 1;
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.6);
}

.spin-button:active:not(:disabled) {
    transform: scale(0.95);
}

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

.spin-button.spinning {
    animation: spinButtonPulse 0.5s ease-in-out infinite;
}

@keyframes spinButtonPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.8); }
}

/* Auto Spin Controls */
.auto-spin-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auto-spin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.auto-spin-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.auto-spin-toggle.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.auto-spin-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.auto-spin-btn {
    width: 32px;
    height: 32px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    transition: all var(--transition-fast);
}

.auto-spin-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.auto-spin-btn.active {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: var(--text-primary);
}

/* Paytable */
.slot-paytable {
    margin-top: 32px;
    background: var(--bg-input);
    border-radius: var(--border-radius);
    padding: 24px;
}

.paytable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    cursor: pointer;
}

.paytable-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paytable-toggle {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.paytable-toggle.open {
    transform: rotate(180deg);
}

.paytable-content {
    display: none;
}

.paytable-content.open {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.paytable-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
}

.paytable-symbols {
    display: flex;
    gap: 4px;
}

.paytable-symbol {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.paytable-payout {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-success);
}

/* Big Win Animation */
.big-win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.big-win-overlay.active {
    opacity: 1;
    visibility: visible;
}

.big-win-content {
    text-align: center;
    animation: bigWinPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.big-win-title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: bigWinShine 2s linear infinite;
}

.big-win-title.mega {
    font-size: 64px;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bigWinShine 1s linear infinite;
}

@keyframes bigWinShine {
    to { background-position: 200% center; }
}

.big-win-amount {
    font-size: 72px;
    font-weight: 900;
    color: var(--accent-success);
    text-shadow: 0 0 50px rgba(0, 255, 136, 0.8);
    animation: bigWinPulse 0.5s ease-in-out infinite alternate;
}

@keyframes bigWinPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

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

/* Coin Rain Animation */
.coin-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.coin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border-radius: 50%;
    animation: coinFall linear forwards;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.coin::before {
    content: '$';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 900;
    color: var(--bg-primary);
}

@keyframes coinFall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Free Spins Banner */
.free-spins-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--gradient-secondary);
    padding: 40px 80px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    z-index: 1001;
    box-shadow: 0 0 100px rgba(123, 44, 191, 0.8);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.free-spins-banner.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.free-spins-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.free-spins-count {
    font-size: 72px;
    font-weight: 900;
    color: var(--accent-warning);
    text-shadow: 0 0 30px rgba(255, 208, 0, 0.8);
}

.free-spins-subtitle {
    font-size: 24px;
    color: var(--text-primary);
    margin-top: 8px;
}

/* Slot Selection Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.slot-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.slot-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.slot-card-image {
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.slot-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.slot-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.slot-card-badge.hot {
    background: var(--gradient-danger);
}

.slot-card-badge.new {
    background: var(--gradient-success);
    color: var(--bg-primary);
}

.slot-card-badge.popular {
    background: var(--gradient-gold);
    color: var(--bg-primary);
}

.slot-card-content {
    padding: 16px;
}

.slot-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.slot-card-provider {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.slot-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.slot-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.slot-card-stat i {
    color: var(--accent-primary);
}

/* Responsive Slots */
@media (max-width: 768px) {
    .slot-machine {
        padding: 16px;
    }

    .slot-reels {
        gap: 4px;
    }

    .slot-reel {
        width: 80px;
        height: 240px;
    }

    .slot-symbol {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .symbol-icon {
        width: 50px;
        height: 50px;
    }

    .slot-center-line {
        height: 84px;
    }

    .slot-controls {
        flex-direction: column;
        gap: 16px;
    }

    .spin-button {
        width: 100px;
        height: 100px;
        font-size: 14px;
    }

    .slot-bet-controls {
        width: 100%;
        justify-content: center;
    }

    .auto-spin-controls {
        flex-direction: row;
        justify-content: center;
    }

    .big-win-title {
        font-size: 32px;
    }

    .big-win-amount {
        font-size: 48px;
    }
}

/* Additional Professional Animations */

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes winPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.big-win-multiplier {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-warning);
    margin-top: 16px;
    text-shadow: 0 0 20px rgba(255, 208, 0, 0.6);
}

.big-win-title.huge {
    font-size: 56px;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bigWinShine 1.5s linear infinite;
}

.big-win-title.big {
    font-size: 52px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bigWinShine 2s linear infinite;
}

/* Win notification improvements */
.win-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-success);
    border-radius: 20px;
    padding: 30px 50px;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.4);
}

.win-notification.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.win-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-success);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.win-amount {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.win-multiplier {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-warning);
    margin-top: 8px;
}

/* Glowing button effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Pulse effect for live badges */
.nav-badge[style*="LIVE"], .nav-badge.live {
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}
