/**
 * Blackjack Styles
 * El Zulo Casino
 */

/* Container */
.blackjack-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    min-height: 500px;
}

/* Betting Screen */
.bj-betting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
}

.bj-bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bj-bet-controls label {
    font-weight: 600;
    color: var(--text-secondary);
}

.bj-bet-input {
    width: 120px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-align: center;
}

.bj-bet-input:focus {
    outline: none;
    border-color: var(--accent-1);
}

.bj-quick-bets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.bj-quick-bets button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bj-quick-bets button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-1);
}

.bj-deal-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: none;
    border-radius: 50px;
    color: var(--bg-primary);
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bj-deal-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.4);
}

/* Game Screen */
.bj-game {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bj-dealer, .bj-hand {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
}

.bj-dealer {
    border-bottom: 2px solid var(--glass-border);
}

.bj-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bj-hand-bet {
    background: var(--accent-4);
    color: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: auto;
}

.bj-cards {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Cards */
.bj-card {
    width: 60px;
    height: 84px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: cardDeal 0.3s ease-out;
}

@keyframes cardDeal {
    from {
        transform: translateY(-50px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(0);
        opacity: 1;
    }
}

.bj-card-red {
    color: #e53935;
}

.bj-card-black {
    color: #212121;
}

.bj-card-hidden {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
}

.bj-card-rank {
    font-size: 1.25rem;
}

.bj-card-suit {
    font-size: 1.5rem;
}

/* Player Area */
.bj-player-area {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bj-hand {
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.bj-hand-current {
    border: 2px solid var(--accent-1);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.bj-hand-bust {
    opacity: 0.6;
    border-color: var(--accent-3);
}

.bj-hand-blackjack {
    border-color: var(--accent-4);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

.bj-hand-status {
    margin-top: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Actions */
.bj-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
}

.bj-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bj-hit {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.bj-stand {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
}

.bj-double {
    background: linear-gradient(135deg, var(--accent-4), #f57c00);
    color: var(--bg-primary);
}

.bj-split {
    background: linear-gradient(135deg, var(--accent-2), #6a1b9a);
    color: white;
}

.bj-surrender {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.bj-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Results */
.bj-result, .bj-final-result {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.bj-win {
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
}

.bj-lose {
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid var(--accent-3);
    color: var(--accent-3);
}

.bj-push {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.bj-result-text, .bj-result-big {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2rem;
}

.bj-dealer-bj, .bj-insurance-won {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.bj-new-game {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: none;
    border-radius: 50px;
    color: var(--bg-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bj-new-game:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .bj-card {
        width: 50px;
        height: 70px;
        font-size: 1.2rem;
    }

    .bj-card-rank {
        font-size: 1rem;
    }

    .bj-card-suit {
        font-size: 1.2rem;
    }

    .bj-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .bj-actions {
        gap: 0.5rem;
    }
}
