/* ===== DIABLO HOLDEM GLOBAL ===== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: url("/static/img/poker-room.webp") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

/* Dark casino overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: -1;
}

/* ===== HEADER ===== */

.header {
    text-align: center;
    font-size: 42px;
    padding: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ff3c3c;
}

/* ===== MAIN LOBBY CONTAINER ===== */

.lobby-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px;
}

/* ===== GAME GRID ===== */

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 260px);
    gap: 20px;
}

.game-card {
    background: rgba(20,20,20,0.95);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #ff3c3c;
    box-shadow: 0 0 15px rgba(255,0,0,0.4);
}

.game-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.game-desc {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== LIVE PLAYER PANEL ===== */

.live-panel {
    width: 280px;
    background: rgba(15,15,15,0.95);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.live-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff3c3c;
}

.player-item {
    padding: 8px;
    margin-bottom: 6px;
    background: rgba(40,40,40,0.7);
    border-radius: 6px;
}

/* ===== LOGIN PANEL ===== */

.login-box {
    width: 320px;
    margin: 120px auto;
    padding: 30px;
    background: rgba(15,15,15,0.95);
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
}

input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    background: #111;
    border: 1px solid #333;
    color: white;
}

button {
    padding: 10px 20px;
    background: #ff3c3c;
    border: none;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: #ff0000;
}
/* ===== POKER TABLE LAYOUT ===== */

.table-title {
    text-align: center;
    margin-top: 20px;
}

.poker-table {
    position: relative;
    width: 800px;
    height: 420px;
    margin: 40px auto;
    background: radial-gradient(circle, #14532d 0%, #0b3a1f 70%);
    border-radius: 300px;
    border: 6px solid #222;
}

/* ===== SEATS ===== */

.seat {
    position: absolute;
    width: 120px;
    text-align: center;

    /* IMPORTANT — anchor blind chips */
    transform: translate(-50%, -50%);
}

.seat-name {
    background: rgba(0,0,0,0.7);
    padding: 6px;
    border-radius: 6px;
}

/*   BLIND CHIP ANCHOR (AUTO LAYOUT SAFE) */
.seat {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* container that floats chips near name box */
.blind-container {
    position: absolute;
    top: -12px;
    right: -18px;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.dealer {
    color: gold;
    font-weight: bold;
    margin-left: 6px;
}

/* ===== ACTIVE PLAYER HIGHLIGHT ===== */

.active-turn .seat-name {
    border: 2px solid gold;
    box-shadow: 0 0 10px gold;
}

/* ===== HOLDEM MODE BUTTONS ===== */

.holdem-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.holdem-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.mode-btn {
    display: block;
    background: #111;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
}

.mode-btn:hover {
    background: #222;
}

.mode-btn.tournament {
    border: 1px solid gold;
}

/* ===== CASINO DEALER PLATE ===== */

.table-dealer {
    position: absolute;
    top: 96%;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);

    background: radial-gradient(circle at 30% 30%, #2a2a2a, #111);
    color: gold;

    padding: 10px 22px;
    border-radius: 30px;

    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;

    border: 2px solid gold;
    box-shadow:
        0 0 12px rgba(255,215,0,0.4),
        inset 0 0 8px rgba(255,215,0,0.3);

    pointer-events: none;   /* dealer never blocks clicks */
}

/* ===== Action Bar ===== */
.action-bar {
    position: absolute;
    bottom: 60px;
    width: 100%;
    text-align: center;
}

.action-bar button {
    background:#111;
    color:#ffd700;
    border:2px solid #ffd700;
    padding:10px 18px;
    margin:6px;
    border-radius:8px;
    font-weight:bold;
    cursor:pointer;
}

.action-bar button:hover {
    background:#ffd700;
    color:#000;
}

/* ===== Dealer Chip ===== */
.dealer-chip {
    position: absolute;
    background: gold;
    color: black;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    z-index: 1000;
    pointer-events: none;
}

/* FLOATING BLIND CHIPS (REAL POSITIONING) */

/* Anchor container */
.blind-container {
    position: absolute;
    top: -10px;
    right: -16px;
    display: flex;
    gap: 4px;
    pointer-events: none;
}

/* Chip base */
.blind-chip {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow:
        0 0 6px rgba(0,0,0,0.8),
        inset 0 0 4px rgba(255,255,255,0.4);
    transform: translate(0,0);
}

/* Small Blind — gold */
.sb-chip {
    background: radial-gradient(circle at 30% 30%, #fff7a0, gold 60%, #a07a00);
    border: 2px solid white;
}

/* Big Blind — red */
.bb-chip {
    background: radial-gradient(circle at 30% 30%, #ff9a9a, red 60%, #7a0000);
    border: 2px solid white;
}
