/* ========================================
   VIDEO POKER GAME STYLES
   Neon Casino Theme - Jacks or Better
   ======================================== */

/* Base Page Styles */
.video-poker-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.video-poker-header {
    text-align: center;
    margin-bottom: 25px;
}

.video-poker-title {
    font-size: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.neon-text {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #f59e0b,
        0 0 30px #f59e0b,
        0 0 40px #f59e0b;
    letter-spacing: 3px;
}

.card-icon {
    font-size: 2.5rem;
    animation: suitPulse 2s ease-in-out infinite;
}

.card-icon:first-child {
    color: #1e293b;
    text-shadow: 0 0 10px rgba(30, 41, 59, 0.8);
}

.card-icon:last-child {
    color: #dc2626;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

@keyframes suitPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.subtitle {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 4px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Container Layout */
.video-poker-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

@media (max-width: 900px) {
    .video-poker-container {
        grid-template-columns: 1fr;
    }
}

/* Game Section */
.video-poker-game-section {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    padding: 25px;
    border: 3px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

/* Paytable */
.paytable {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.paytable-row:hover {
    background: rgba(30, 41, 59, 0.9);
}

.paytable-row.winner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    animation: winnerPulse 1s ease-in-out infinite;
}

@keyframes winnerPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.7);
    }
}

.hand-name {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
}

.payout {
    color: #fbbf24;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Cards Area */
.cards-area {
    padding: 30px 20px;
    background: linear-gradient(180deg, #065f46 0%, #047857 50%, #065f46 100%);
    border-radius: 15px;
    border: 6px solid #7c3aed;
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(124, 58, 237, 0.4);
    margin-bottom: 20px;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Card Slots */
.card-slot {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card-slot:hover {
    transform: translateY(-5px);
}

.card-slot.held {
    transform: translateY(-15px);
}

.card-slot.held .hold-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* Cards */
.card {
    width: 90px;
    height: 126px;
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    position: relative;
    transform-style: preserve-3d;
}

.card-back {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.card-face {
    background: #fff;
}

.card-face.red {
    color: #dc2626;
}

.card-face.black {
    color: #1e293b;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1;
}

.card-corner.top-left {
    align-self: flex-start;
}

.card-corner.bottom-right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.card-suit {
    font-size: 0.9rem;
}

.card-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
}

/* Hold Indicator */
.hold-indicator {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Deal Animation */
@keyframes dealCard {
    0% {
        transform: translateY(-50px) rotateY(90deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotateY(0);
        opacity: 1;
    }
}

/* Result Display */
.result-display {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    animation: resultPop 0.4s ease-out;
}

@keyframes resultPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-hand {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-hand.winner {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.result-hand.loser {
    color: #94a3b8;
}

.result-amount {
    font-size: 1.4rem;
}

.result-amount.winner {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Controls */
.video-poker-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 15px;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.balance-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.balance-amount {
    color: #22c55e;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

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

.bet-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.neon-select {
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.neon-select:hover {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.neon-select:focus {
    outline: none;
    border-color: #f59e0b;
}

.neon-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.deal-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.deal-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

.draw-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.draw-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

.neon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Game Status Panel */
.game-status-panel {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
}

.status-message {
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Stats Sidebar */
.video-poker-stats-sidebar {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    height: fit-content;
}

.stats-title {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
    text-align: center;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.stat-value {
    color: #fff;
    font-weight: 600;
}

.stats-actions {
    margin-bottom: 25px;
}

.stats-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border-radius: 10px;
    color: #f59e0b;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stats-link:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    transform: translateY(-2px);
}

/* Rules */
.game-rules {
    padding: 15px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
}

.game-rules h4 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1rem;
    text-align: center;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.rules-list li::before {
    content: '♦';
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-poker-title {
        font-size: 1.8rem;
    }

    .paytable {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 10px;
    }

    .paytable-row {
        padding: 6px 10px;
    }

    .hand-name {
        font-size: 0.75rem;
    }

    .payout {
        font-size: 0.8rem;
    }

    .cards-area {
        padding: 20px 10px;
    }

    .cards-container {
        gap: 8px;
    }

    .card {
        width: 65px;
        height: 91px;
        padding: 4px;
    }

    .card-center {
        font-size: 2rem;
    }

    .card-value {
        font-size: 0.9rem;
    }

    .card-suit {
        font-size: 0.7rem;
    }

    .video-poker-controls {
        flex-direction: column;
        gap: 15px;
    }

    .neon-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-poker-page {
        padding: 10px;
    }

    .paytable {
        grid-template-columns: 1fr;
    }

    .card {
        width: 55px;
        height: 77px;
        border-radius: 6px;
    }

    .card-center {
        font-size: 1.6rem;
    }

    .card-value {
        font-size: 0.8rem;
    }

    .hold-indicator {
        font-size: 0.65rem;
        padding: 3px 8px;
        bottom: -22px;
    }
}