/* css/pages/play.css */

/* ==========================================================
   ZONE CENTRALE : GRILLE DES CADENCES (Taille exacte de l'ancien échiquier)
   ========================================================== */
.time-controls-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    gap: 10px; /* On remet exactement le même comportement que .board-area */
    /* Padding retiré ici pour éviter de creuser l'écart avec les côtés ! */
}

.quick-pairing-section {
    /* --- REPRISE EXACTE DES DIMENSIONS DE TON ANCIEN ECHIQUIER --- */
    height: calc(100vh - var(--header-height, 70px) - 90px);
    width: calc(100vh - var(--header-height, 70px) - 90px);
    max-height: 740px;
    max-width: 740px;
    aspect-ratio: 1 / 1;
    flex-shrink: 1;
    box-sizing: border-box;
    /* ------------------------------------------------------------- */

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem; /* Reste à l'intérieur grâce au box-sizing */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;
}

.section-title {
    color: var(--text-main);
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1.5rem 0;
    text-align: center;
    flex-shrink: 0;
}

.time-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    flex: 1;
}

.time-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
    height: 100%;
}

.time-btn:hover {
    transform: translateY(-3px);
}

.time-btn:hover .time-val {
    color: #fff;
}

.time-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s;
}

.time-type {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.time-btn.bullet:hover { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2); }
.time-btn.blitz:hover { border-color: #38bdf8; background: rgba(56, 189, 248, 0.1); box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2); }
.time-btn.rapid:hover { border-color: #22c55e; background: rgba(34, 197, 94, 0.1); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2); }

/* ==========================================================
   MENU NOUVELLE PARTIE (PlayMenuPanel - À DROITE)
   ========================================================== */
.play-menu-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.panel-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    flex: 1;
    width: 100%;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 100%;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: #38bdf8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.menu-btn svg {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    color: #cbd5e1;
    transition: color 0.2s;
}

.text-group {
    display: flex;
    flex-direction: column;
}

.menu-btn .label {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.menu-btn .sub {
    font-size: 0.75rem;
    color: #94a3b8;
}

.btn-online:hover svg { color: #f59e0b; }
.btn-online:hover { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

.btn-friend:hover svg { color: #22c55e; }
.btn-friend:hover { border-color: #22c55e; background: rgba(34, 197, 94, 0.1); }

.btn-bot:hover svg { color: #a855f7; }
.btn-bot:hover { border-color: #a855f7; background: rgba(168, 85, 247, 0.1); }

.btn-local:hover svg { color: #38bdf8; }

/* ==========================================================
   PANNEAU DE GAUCHE (Vide pour l'instant)
   ========================================================== */
.empty-left-panel {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dim);
    font-style: italic;
    padding: 20px;
    text-align: center;
}