/* =====================================================
   header.css — Minimální aplikační hlavička
   Cíl: max výška ~46px, aby mapa dostala co nejvíce prostoru
   ===================================================== */

.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 14px;
    height: 56px;
    min-height: 56px;
    background: #f8fafc;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
    flex-shrink: 0;
    z-index: 100;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Název trasy / hry */
.header-route {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: block;
    text-align: center;
    line-height: 1.3;
}

/* Klikatelný info segment (trasa + tým) */
.header-info-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 4px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: 210px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
    transition: box-shadow .15s, border-color .15s, background .15s;
}

.header-info-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .10);
}

.header-info-btn:active {
    background: #e2e8f0;
    box-shadow: none;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

/* Odznáček s názvem týmu */
.header-team {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    line-height: 1.3;
}

.header-team::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* Toggle tlačítko panelu */
#togglePanelBtn {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    flex-shrink: 0;
    transition: background .15s;
    padding: 0;
    line-height: 1;
}

#togglePanelBtn:hover {
    background: #cbd5e1;
    color: #1e293b;
}