/* Global Index Styles */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Tournament Info Bar */
.tournament-info-bar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    backdrop-filter: blur(5px);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.level-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
}

/* Poker Table Visualization */
.poker-table-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for the table */
    margin: 0 auto;
    aspect-ratio: 2/1; /* Maintain aspect ratio */
    background: radial-gradient(ellipse at center, #35654d 0%, #1e3c2f 100%);
    border-radius: 200px; /* Oval shape */
    border: 15px solid #2c2c2c; /* Rail */
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.8),
        0 20px 50px rgba(0,0,0,0.5);
    margin-bottom: 60px; /* Space for seats at bottom */
    margin-top: 40px; /* Space for seats at top */
}

.table-felt-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.table-id {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.3);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #ddd;
}

.seat {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #222;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    z-index: 10;
    transition: transform 0.3s ease;
}

.seat.active {
    background: #333;
    border-color: #ffd700;
}

.seat.empty {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.1);
    opacity: 0.5;
}

.seat.eliminated {
    background: #1a1a1a;
    border-color: #ff4444;
    opacity: 0.7;
}

.seat-avatar {
    width: 30px;
    height: 30px;
    background: #444;
    border-radius: 50%;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #888;
}

.seat.active .seat-avatar {
    background: #ffd700;
    color: #000;
}

.seat-name {
    font-size: 0.7rem;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-weight: 600;
}

.seat-num {
    position: absolute;
    top: -10px;
    background: #000;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 5px;
}

/* Positioning Seats */
/* Seat 1: Bottom Right */
.seat-pos-1 { top: 85%; left: 70%; }
/* Seat 2: Bottom Center */
.seat-pos-2 { top: 90%; left: 50%; transform: translateX(-50%); }
/* Seat 3: Bottom Left */
.seat-pos-3 { top: 85%; left: 30%; }
/* Seat 4: Left Bottom */
.seat-pos-4 { top: 60%; left: 5%; }
/* Seat 5: Left Top */
.seat-pos-5 { top: 25%; left: 10%; }
/* Seat 6: Top Center (slightly left) */
.seat-pos-6 { top: 5%; left: 35%; }
/* Seat 7: Top Center (slightly right) */
.seat-pos-7 { top: 5%; left: 65%; }
/* Seat 8: Right Top */
.seat-pos-8 { top: 25%; left: 90%; }
/* Seat 9: Right Bottom */
.seat-pos-9 { top: 60%; left: 95%; transform: translateX(-100%); }

/* Extra Seats for Overcrowded Tables */
/* Seat 10: Right Middle */
.seat-pos-10 { top: 42%; left: 92%; }
/* Seat 11: Left Middle */
.seat-pos-11 { top: 42%; left: 8%; }
/* Seat 12: Top Center Absolute */
.seat-pos-12 { top: 0%; left: 50%; transform: translateX(-50%); }


/* Adjustments for mobile */
@media (max-width: 768px) {
    .poker-table-container {
        transform: none;
        width: 75%; /* Mais estreito para caber os assentos laterais */
        aspect-ratio: 0.65; /* Formato oval vertical */
        margin: 20px auto;
        border-radius: 150px;
    }
    
    /* Mobile Positioning - Vertical Oval */
    /* Clockwise starting from Top Right */
    
    /* Top */
    .seat-pos-1 { top: 5%; left: 70%; }
    .seat-pos-2 { top: 5%; left: 30%; }
    
    /* Right Side */
    .seat-pos-3 { top: 20%; left: 95%; transform: translateX(-100%); }
    .seat-pos-4 { top: 40%; left: 95%; transform: translateX(-100%); }
    .seat-pos-5 { top: 60%; left: 95%; transform: translateX(-100%); }
    .seat-pos-6 { top: 80%; left: 70%; } /* Bottom Right */
    
    /* Bottom */
    .seat-pos-7 { top: 80%; left: 30%; } /* Bottom Left */
    
    /* Left Side */
    .seat-pos-8 { top: 60%; left: 5%; transform: none; }
    .seat-pos-9 { top: 40%; left: 5%; transform: none; }

    /* Extra Seats Mobile */
    .seat-pos-10 { top: 20%; left: 5%; transform: none; }
    .seat-pos-11 { top: 0%; left: 50%; transform: translateX(-50%); }
    .seat-pos-12 { top: 90%; left: 50%; transform: translateX(-50%); }
}
