/* Texas Hold'em Game Styles */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Player info panels */
.player-panel {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.player-panel.active {
    border: 2px solid #20c997;
    box-shadow: 0 0 15px rgba(32, 201, 151, 0.5);
}

.player-panel.folded {
    opacity: 0.5;
}

.player-panel .name {
    font-weight: bold;
    margin-bottom: 5px;
}

.player-panel .chips {
    color: #ffc107;
}

.player-panel .bet {
    color: #20c997;
    font-size: 0.8rem;
}

/* Action buttons */
.poker-actions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.poker-btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.poker-btn:hover {
    transform: translateY(-2px);
}

.poker-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.poker-btn.fold {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

.poker-btn.check {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #fff;
}

.poker-btn.call {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
}

.poker-btn.raise {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: #1a1a2e;
}

.poker-btn.all-in {
    background: linear-gradient(135deg, #e94560, #c73e54);
    color: #fff;
}

/* Raise slider */
.raise-controls {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 10px;
    z-index: 100;
}

.raise-controls label {
    color: #fff;
    font-weight: bold;
}

.raise-controls input[type="range"] {
    width: 200px;
    accent-color: #6f42c1;
}

.raise-controls .raise-amount {
    color: #ffc107;
    font-weight: bold;
    min-width: 60px;
}

/* Pot display */
.pot-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -120px);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 20px;
    color: #fff;
    font-size: 1.2rem;
    z-index: 50;
}

.pot-display span {
    color: #ffc107;
    font-weight: bold;
}

/* Community cards area */
.community-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
}

/* Winner announcement */
.winner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 30px 50px;
    border-radius: 16px;
    text-align: center;
    z-index: 200;
    animation: pop-in 0.3s ease;
}

@keyframes pop-in {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.winner-overlay h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.winner-overlay .hand-name {
    color: #20c997;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.winner-overlay .winnings {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Game setup modal */
.setup-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(22, 33, 62, 0.98);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(111, 66, 193, 0.5);
    text-align: center;
    z-index: 200;
    min-width: 300px;
}

.setup-modal h3 {
    color: #fff;
    margin-bottom: 20px;
}

.setup-modal .option-group {
    margin-bottom: 20px;
}

.setup-modal label {
    color: #ccc;
    display: block;
    margin-bottom: 8px;
}

.setup-modal select,
.setup-modal input {
    width: 100%;
    padding: 10px;
    border: 2px solid #6f42c1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.setup-modal .start-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #20c997, #17a881);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setup-modal .start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.5);
}

/* Dealer button */
.dealer-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #fff, #ddd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: #1a1a2e;
    border: 2px solid #ffc107;
    z-index: 60;
}

/* Blind indicators */
.blind-indicator {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.blind-indicator.sb {
    background: #17a2b8;
    color: #fff;
}

.blind-indicator.bb {
    background: #ffc107;
    color: #1a1a2e;
}

/* Hidden class */
.hidden {
    display: none !important;
}
