/* Games Page Styles */

.games-header {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.games-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.games-header > .container > p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.credits-display {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    margin: 20px 0;
    border: 2px solid var(--primary-color);
}

.credits-label {
    font-size: 16px;
    color: var(--text-gray);
    margin-right: 10px;
}

.credits-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.games-disclaimer {
    margin-top: 20px;
    color: var(--warning);
    font-size: 16px;
}

.games-lobby {
    padding: 60px 0;
}

.game-category {
    margin-bottom: 60px;
}

.game-category h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.game-thumbnail {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 20px;
}

.game-icon {
    font-size: 80px;
}

.game-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.game-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.btn-play {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-play:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.game-modal-content {
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid var(--primary-color);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.close-modal:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Game Reminder */
.game-reminder {
    background: rgba(239, 68, 68, 0.1);
    padding: 60px 0;
    border-top: 2px solid var(--warning);
    border-bottom: 2px solid var(--warning);
}

.game-reminder h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--warning);
    text-align: center;
}

.reminder-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
}

.reminder-content p {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.reminder-content ul {
    list-style: none;
    padding-left: 0;
}

.reminder-content ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
    font-size: 16px;
}

.reminder-content ul li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

.reminder-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Actual Game Styles */
.game-interface {
    padding: 20px;
}

.game-interface h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: var(--primary-color);
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.game-display {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-reels {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.slot-reel {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    width: 120px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

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

.bet-controls label {
    font-size: 18px;
}

.bet-controls input {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 10px;
    border-radius: 8px;
    font-size: 16px;
    width: 120px;
    text-align: center;
}

.game-message {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.win-message {
    color: var(--success);
}

.lose-message {
    color: var(--text-gray);
}

.poker-cards {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.poker-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    width: 100px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.poker-card.held {
    border-color: var(--warning);
    transform: translateY(-10px);
}

.poker-card.held::after {
    content: 'HELD';
    position: absolute;
    top: 5px;
    font-size: 12px;
    color: var(--warning);
    font-weight: bold;
}

.poker-card .card-value {
    font-size: 24px;
    color: #000;
    font-weight: bold;
}

.poker-card .card-suit {
    font-size: 36px;
}

.poker-card.red {
    color: #ef4444;
}

.poker-card.black {
    color: #000;
}

.roulette-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    background: conic-gradient(
        from 0deg,
        #ef4444 0deg 18deg,
        #000 18deg 36deg,
        #ef4444 36deg 54deg,
        #000 54deg 72deg,
        #ef4444 72deg 90deg,
        #000 90deg 108deg,
        #ef4444 108deg 126deg,
        #000 126deg 144deg,
        #ef4444 144deg 162deg,
        #000 162deg 180deg,
        #ef4444 180deg 198deg,
        #000 198deg 216deg,
        #ef4444 216deg 234deg,
        #000 234deg 252deg,
        #ef4444 252deg 270deg,
        #000 270deg 288deg,
        #ef4444 288deg 306deg,
        #000 306deg 324deg,
        #ef4444 324deg 342deg,
        #000 342deg 360deg
    );
    position: relative;
    margin: 0 auto;
}

.roulette-ball {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.roulette-betting {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.roulette-bet {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.roulette-bet:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.roulette-bet.selected {
    background: var(--primary-color);
    border-color: var(--warning);
}

.blackjack-table {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blackjack-hand {
    text-align: center;
}

.blackjack-hand h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.blackjack-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .slot-reels {
        flex-direction: column;
    }

    .game-modal-content {
        width: 95%;
        padding: 20px;
    }
}
