/* ===========================================
   Layout: Header, Nav, Content, Grids
   =========================================== */

/* ── Header ──────────────────────────────── */
.app-header {
    background: var(--gradient-header);
    border-bottom: none;
    padding: var(--sp-4) var(--sp-8);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--f1-red) 0%, var(--f1-red) 30%, rgba(225, 6, 0, 0.4) 60%, transparent 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.header-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary) !important;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.header-title .accent {
    color: var(--f1-red) !important;
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
}

.header-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: var(--sp-1);
    font-family: var(--font-mono);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

/* ── Navigation Bar ──────────────────────── */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-3) var(--sp-8);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(21, 24, 33, 0.95) 100%);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}

.nav-filter-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.nav-filter-item label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted) !important;
    white-space: nowrap;
}

/* ── Content Area ────────────────────────── */
.content-area {
    padding: var(--sp-6);
    background: var(--bg-root);
    min-height: 100vh;
}

/* ── Section Titles ──────────────────────── */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    margin-bottom: var(--sp-5);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.section-title .title-accent {
    width: 4px;
    height: 1.15rem;
    background: var(--f1-red);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* ── Four-Column Grid ────────────────────── */
.four-col-grid {
    display: flex;
    flex-wrap: wrap;
}

.four-col {
    flex: 1 1 25%;
    min-width: 0;
}

/* ── Team Detail Grid ────────────────────── */
.team-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
}

.team-left-col {
    flex: 0 0 320px;
    min-width: 280px;
}

.team-right-col {
    flex: 1;
    min-width: 0;
}

/* ── Scrollable Tables ───────────────────── */
.scrollable-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
