/*
* Quantum Pulse - Game Stylesheet
* Base color: #505005
* Design: Futuristic slot game with quantum technology theme
*/

/* ---------- Game Intro Section ---------- */
.game-intro {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.9), rgba(48, 48, 3, 0.8));
    padding: 10rem 0 5rem;
    text-align: center;
}

.game-intro__title {
    font-size: 3rem;
    color: var(--qp-light-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(191, 191, 64, 0.5);
    letter-spacing: 2px;
}

.game-intro__description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--qp-text-color);
    line-height: 1.8;
}

/* ---------- Slot Game Section ---------- */
.slot-game {
    background-color: rgba(30, 30, 3, 0.95);
    padding: 3rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.quantum-particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(191, 191, 64, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.quantum-particles-bg::before,
.quantum-particles-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
            radial-gradient(circle at 20% 30%, rgba(191, 191, 64, 0.1) 0%, transparent 8%),
            radial-gradient(circle at 80% 70%, rgba(191, 191, 64, 0.1) 0%, transparent 8%),
            radial-gradient(circle at 40% 80%, rgba(191, 191, 64, 0.1) 0%, transparent 6%),
            radial-gradient(circle at 60% 20%, rgba(191, 191, 64, 0.1) 0%, transparent 6%),
            radial-gradient(circle at 90% 40%, rgba(191, 191, 64, 0.1) 0%, transparent 7%),
            radial-gradient(circle at 10% 60%, rgba(191, 191, 64, 0.1) 0%, transparent 7%);
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.5;
    animation: floatParticles 150s linear infinite;
    pointer-events: none;
}

.quantum-particles-bg::after {
    background-size: 200px 200px;
    opacity: 0.3;
    animation-direction: reverse;
    animation-duration: 100s;
}

@keyframes floatParticles {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1000px 1000px;
    }
}

/* ---------- Slot Machine ---------- */
.slot-machine {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(48, 48, 3, 0.8), rgba(80, 80, 5, 0.6));
    border: 2px solid var(--qp-accent-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow:
            0 0 20px rgba(0, 0, 0, 0.5),
            0 0 40px rgba(191, 191, 64, 0.2);
    z-index: 1;
}

/* --- Slot Machine Header --- */
.slot-machine__header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(191, 191, 64, 0.3);
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid var(--qp-accent-color);
    border-radius: 8px;
}

.balance-label {
    font-size: 1.2rem;
    color: var(--qp-secondary-text);
}

.balance-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--qp-light-color);
}

/* --- Slot Machine Reels --- */
.slot-machine__reels {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    background: rgba(18, 18, 18, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.reel {
    position: relative;
    width: 100px;
    height: 300px;
    margin: 0 5px;
    overflow: hidden;
    background: rgba(30, 30, 3, 0.7);
    border: 1px solid var(--qp-dark-color);
    border-radius: 5px;
}

.symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    background: rgba(80, 80, 5, 0.1);
    border-bottom: 1px solid rgba(191, 191, 64, 0.2);
    transition: transform 0.2s ease;
}

.symbol:last-child {
    border-bottom: none;
}

.symbol img {
    max-width: 70%;
    max-height: 70%;
    transition: all 0.3s ease;
}

/* Symbol hover effect */
.symbol:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Symbol when part of winning combination */
.symbol.winning img {
    animation: pulseWin 1.5s ease infinite;
}

@keyframes pulseWin {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.3) drop-shadow(0 0 5px rgba(191, 191, 64, 0.8));
    }
}

/* Win lines */
.win-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.win-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--qp-light-color), transparent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

.win-line-1 {
    top: calc(50px + 1.5rem);
}

.win-line-2 {
    top: calc(150px + 1.5rem);
}

.win-line-3 {
    top: calc(250px + 1.5rem);
}

.win-line.active {
    animation: winLineActivate 1.5s ease forwards;
}

@keyframes winLineActivate {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    20% {
        opacity: 1;
        transform: scaleX(1);
    }
    80% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

/* Result message */
.result-message {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    min-height: 2em;
    color: var(--qp-secondary-text);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.result-message.win {
    color: var(--qp-light-color);
    animation: pulseTextShadow 2s ease infinite;
}

.result-message.lose {
    color: #e77;
}

@keyframes pulseTextShadow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(191, 191, 64, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(191, 191, 64, 0.8);
    }
}

/* --- Slot Machine Controls --- */
.slot-machine__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bet-btn {
    background: rgba(18, 18, 18, 0.7);
    color: var(--qp-text-color);
    border: 1px solid var(--qp-accent-color);
    border-radius: 5px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-btn:hover {
    background: var(--qp-dark-color);
    color: var(--qp-light-color);
    transform: scale(1.05);
}

.bet-btn:active {
    transform: scale(0.95);
}

.bet-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(18, 18, 18, 0.7);
    border: 1px solid var(--qp-accent-color);
    border-radius: 5px;
    min-width: 180px;
    justify-content: center;
}

.bet-label {
    font-size: 1.1rem;
    color: var(--qp-secondary-text);
}

.bet-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--qp-light-color);
}

.spin-btn {
    position: relative;
    background: linear-gradient(135deg, var(--qp-dark-color), var(--qp-base-color));
    color: var(--qp-text-color);
    border: 2px solid var(--qp-accent-color);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.spin-btn:hover {
    background: linear-gradient(135deg, var(--qp-base-color), var(--qp-accent-color));
    transform: translateY(-3px);
    box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(191, 191, 64, 0.3);
}

.spin-btn:active {
    transform: translateY(-1px);
}

.spin-btn:disabled {
    background: rgba(80, 80, 5, 0.4);
    border-color: rgba(191, 191, 64, 0.4);
    color: rgba(245, 245, 245, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(191, 191, 64, 0.5) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.spin-btn:hover .btn-glow {
    opacity: 1;
    animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ---------- Spinning Animation ---------- */
.reel.spinning .symbol {
    animation: scrollSymbols 0.2s linear infinite;
}

@keyframes scrollSymbols {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

/* ---------- Disclaimer Section ---------- */
.disclaimer-section {
    background-color: rgba(48, 48, 3, 0.3);
    border-top: 1px solid var(--qp-accent-color);
    border-bottom: 1px solid var(--qp-accent-color);
    padding: 3rem 0;
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-title {
    color: var(--qp-light-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.disclaimer-text {
    color: var(--qp-secondary-text);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 992px) {
    .slot-machine__reels {
        padding: 1rem;
    }

    .reel {
        width: 80px;
        height: 240px;
    }

    .symbol {
        height: 80px;
    }

    .win-line-1 {
        top: calc(40px + 1rem);
    }

    .win-line-2 {
        top: calc(120px + 1rem);
    }

    .win-line-3 {
        top: calc(200px + 1rem);
    }
}

@media (max-width: 768px) {
    .game-intro__title {
        font-size: 2.5rem;
    }

    .game-intro__description {
        font-size: 1.1rem;
    }

    .slot-machine {
        padding: 1.5rem;
    }

    .slot-machine__reels {
        padding: 0.8rem;
    }

    .reel {
        width: 60px;
        height: 180px;
        margin: 0 3px;
    }

    .symbol {
        height: 60px;
    }

    .win-line-1 {
        top: calc(30px + 0.8rem);
    }

    .win-line-2 {
        top: calc(90px + 0.8rem);
    }

    .win-line-3 {
        top: calc(150px + 0.8rem);
    }

    .balance-display, .bet-display {
        padding: 0.5rem 0.75rem;
    }

    .balance-label, .bet-label {
        font-size: 1rem;
    }

    .balance-value, .bet-value {
        font-size: 1.1rem;
    }

    .result-message {
        font-size: 1.2rem;
    }

    .spin-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .game-intro {
        padding: 8rem 0 4rem;
    }

    .game-intro__title {
        font-size: 2rem;
    }

    .game-intro__description {
        font-size: 1rem;
    }

    .slot-machine {
        padding: 1rem;
    }

    .slot-machine__reels {
        padding: 0.5rem;
    }

    .reel {
        width: 50px;
        height: 150px;
        margin: 0 2px;
    }

    .symbol {
        height: 50px;
    }

    .win-line-1 {
        top: calc(25px + 0.5rem);
    }

    .win-line-2 {
        top: calc(75px + 0.5rem);
    }

    .win-line-3 {
        top: calc(125px + 0.5rem);
    }

    .bet-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .result-message {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

