/* Slot Game Styles - Elegant Casino Theme */

.emoji {
    display: inline-block;
}

.slot-machine-section .btn {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    padding: 14px 32px;
    border: 2px solid #FFD700;
    background: transparent;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.slot-machine-section .btn:hover {
    background: #FFD700;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* ===== Slot Machine Section ===== */
.slot-machine-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.slot-machine-header {
    text-align: center;
    margin-bottom: 30px;
}

.slot-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Stats Display */
.slot-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-box {
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #000000;
    border: 2px solid #FFD700;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.3),
        inset 0 0 10px rgba(255, 215, 0, 0.1);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s;
}

.stat-box:hover::before {
    left: 100%;
}

.stat-box .stat-label {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    margin-bottom: 5px;
    color: #FFD700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-box .stat-value {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-box .win-value {
    color: #FFD700 !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5);
    animation: gold-glow 2s ease-in-out infinite;
}

@keyframes gold-glow {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 30px rgba(255, 215, 0, 0.7);
    }
}

/* Message Display */
.message-display {
    font-family: 'Georgia', serif;
    background: #000000;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 20px;
    box-shadow: 
        inset 0 0 20px rgba(255, 215, 0, 0.1),
        0 0 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    font-weight: 600;
}

/* Slot Container */
.slot-container {
    background: #000000;
    border: 3px solid #FFD700;
    border-radius: 0;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
    position: relative;
}

.slot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    pointer-events: none;
}

.reels-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.reel-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reel-cell {
    background: #000000;
    border: 2px solid #FFD700;
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.reel-cell::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.reel-cell:hover {
    border-color: #FFA500;
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5);
}

.reel-cell:hover::before {
    opacity: 1;
}

.reel-cell.spinning {
    animation: spin-blur 0.1s linear infinite;
    border-color: #FFA500;
    box-shadow: 
        0 0 20px rgba(255, 165, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3);
}

.reel-cell.winning {
    animation: winning-pulse 0.5s ease infinite;
    border-color: #FFD700;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 50px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
    background: linear-gradient(145deg, #1a1a00, #000000);
}

@keyframes spin-blur {
    0% { transform: translateY(-5px); opacity: 0.7; }
    50% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(-5px); opacity: 0.7; }
}

@keyframes winning-pulse {
    0%, 100% { 
        transform: scale(1);
        border-color: #FFD700;
    }
    50% { 
        transform: scale(1.05);
        border-color: #FFA500;
    }
}

.paylines-indicator {
    font-family: 'Georgia', serif;
    text-align: center;
    font-size: 14px;
    color: #FFD700;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Slot Controls */
.slot-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-control {
    padding: 15px 10px;
    font-size: 13px;
    font-family: 'Georgia', serif;
    font-weight: 700;
    background: #000000;
    border: 2px solid #FFD700;
    color: #FFD700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-control:hover {
    background: #FFD700;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    border-color: #FFA500;
}

.btn-spin-main {
    padding: 18px 36px;
    font-size: 18px;
    font-family: 'Georgia', serif;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    color: #000000;
    border: 3px solid #FFD700;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: none;
    animation: spin-btn-gradient 3s ease infinite;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin-btn-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-spin-main:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700, #FFA500);
    background-size: 200% 200%;
    border-color: #FFA500;
    box-shadow: 
        0 0 40px rgba(255, 215, 0, 0.8),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
    color: #000000;
    animation: spin-btn-gradient 2s ease infinite;
    transform: translateY(-2px);
}

.btn-spin-main:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
    background: #333333;
    border-color: #666666;
    color: #999999;
}

.btn-auto {
    padding: 15px 10px;
    font-size: 12px;
    font-family: 'Georgia', serif;
    font-weight: 700;
    background: #000000;
    border: 2px solid #FFD700;
    color: #FFD700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-auto:hover {
    background: #FFD700;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    border-color: #FFA500;
}

.btn-auto.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    border-color: #FFA500;
    font-weight: 900;
}

/* Secondary Controls */
.secondary-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-secondary-action {
    padding: 12px 24px;
    font-size: 12px;
    font-family: 'Georgia', serif;
    font-weight: 700;
    background: #000000;
    border: 2px solid #FFD700;
    color: #FFD700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-secondary-action:hover {
    border-color: #FFA500;
    color: #FFA500;
    background: #1a1a1a;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Session Stats */
.session-stats {
    background: #000000;
    border: 3px solid #FFD700;
    border-radius: 0;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 215, 0, 0.05);
    position: relative;
}

.session-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    pointer-events: none;
}

.session-title {
    font-family: 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.session-item .session-label {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.session-item .session-value {
    font-family: 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.session-item:nth-child(1) .session-value { color: #FFD700; }
.session-item:nth-child(2) .session-value { color: #FFA500; }
.session-item:nth-child(3) .session-value { color: #FFD700; }

.achievement-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 28px;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.achievement-stars .star.earned,
.achievement-stars .trophy.earned {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    animation: achievement-glow 2s ease-in-out infinite;
}

@keyframes achievement-glow {
    0%, 100% { 
        filter: grayscale(0%) drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: grayscale(0%) drop-shadow(0 0 15px rgba(255, 215, 0, 1));
        transform: scale(1.1);
    }
}

/* Game Disclaimer */
.game-disclaimer {
    text-align: center;
    padding: 20px;
}

.game-disclaimer p {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #999999;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #000000;
    border: 3px solid #FFD700;
    border-radius: 0;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.5),
        0 0 100px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.05);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #FFA500;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    transform: scale(1.2);
}

.modal-title {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #FFD700;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.paytable-item {
    background: #000000;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.paytable-item:hover {
    border-color: #FFA500;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    background: #1a1a1a;
}

.paytable-symbol {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
}

.paytable-mult {
    font-family: 'Georgia', serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.paytable-note {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #FFD700;
    letter-spacing: 0.5px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .slot-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-controls {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-controls .btn-spin-main {
        grid-column: span 2;
    }

    .reels-wrapper {
        gap: 8px;
    }

    .reel-cell {
        font-size: 28px;
    }

    .session-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .paytable-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slot-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .reel-cell {
        font-size: 24px;
    }

    .slot-title {
        font-size: 20px;
    }
}
