/* ==============================================
   drivers.css – Driver registry page
   ============================================== */

/* ── Hide default page furniture ── */
body.drivers-page .banner { display: none; }
body.drivers-page .page-container { max-width: 100%; padding: 0; }
body.drivers-page .page-container > h1 { display: none; }

/* ── Page header ── */
.dl-header {
    background: linear-gradient(180deg, #1a1a1a, #141414);
    border-bottom: 1px solid rgba(0,191,255,0.15);
    padding: 28px 40px;
    display: flex; align-items: flex-end;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.dl-breadcrumb {
    font-size: 0.62rem; letter-spacing: 2px;
    text-transform: uppercase; color: #444; margin-bottom: 8px;
}
.dl-title {
    font-family: 'Audiowide', sans-serif; font-size: 1.7rem;
    color: #fff; text-transform: uppercase; letter-spacing: 2px;
}
.dl-title span { color: #00bfff; }
.dl-count {
    font-size: 0.72rem; color: #555;
    letter-spacing: 1px; text-transform: uppercase; padding-bottom: 4px;
}

/* ── Body ── */
.dl-wrap { max-width: 100%; margin: 0 auto; padding: 32px 40px 80px; }

/* ── Card ── */
.dl-card {
    background: linear-gradient(180deg, #1e1e1e, #191919);
    border: 1px solid rgba(0,191,255,0.1);
    border-radius: 12px; overflow: hidden; min-width: 0;
}

/* ── Table scroll wrapper ── */
.dl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }

/* ── Table ── */
.dl-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.dl-table thead tr {
    background: rgba(0,191,255,0.05);
    border-bottom: 1px solid rgba(0,191,255,0.15);
}
.dl-table th {
    padding: 13px 18px;
    font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase;
    color: #555; font-weight: 700; text-align: left; white-space: nowrap;
}
.dl-table th.center { text-align: center; }

/* ── Sort arrows ── */
.dl-sort {
    display: inline-flex; flex-direction: column;
    gap: 1px; margin-left: 6px; vertical-align: middle;
}
.dl-sort a {
    color: #333; font-size: 0.55rem; line-height: 1;
    text-decoration: none; transition: color 0.15s;
}
.dl-sort a:hover { color: #00bfff; }

/* ── Rows ── */
.dl-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.dl-table tbody tr:last-child { border-bottom: none; }
.dl-table tbody tr:hover { background: rgba(0,191,255,0.03); }
.dl-table td { padding: 13px 18px; font-size: 0.85rem; color: #aaa; }
.dl-table td.center { text-align: center; }

/* ── Position badge ── */
.dl-pos {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 6px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem; font-weight: 700; color: #666;
}
.dl-pos.p1 { background: rgba(255,215,0,0.1);   border-color: rgba(255,215,0,0.3);   color: #ffd700; }
.dl-pos.p2 { background: rgba(192,192,192,0.1); border-color: rgba(192,192,192,0.3); color: #c0c0c0; }
.dl-pos.p3 { background: rgba(205,127,50,0.1);  border-color: rgba(205,127,50,0.3);  color: #cd7f32; }

/* ── Driver name link ── */
.dl-name {
    color: #fff; font-weight: 700;
    text-decoration: none; transition: color 0.15s;
}
.dl-name:hover { color: #00bfff; }

/* ── External link buttons ── */
.dl-ext {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #666; font-size: 0.72rem; text-decoration: none;
    white-space: nowrap; transition: all 0.15s;
}
.dl-ext:hover { border-color: rgba(0,191,255,0.4); color: #00bfff; }
.dl-na { color: #333; }

/* ── Rating pill ── */
.dl-rating {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    background: rgba(0,191,255,0.06); border: 1px solid rgba(0,191,255,0.15);
    font-size: 0.78rem; color: #00bfff; font-weight: 700;
}

/* ── Pagination ── */
.dl-pagination {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}
.dl-page-btn {
    padding: 7px 16px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #666; font-size: 0.78rem; text-decoration: none;
    font-family: 'Lato', sans-serif; transition: all 0.15s;
    cursor: pointer;
}
.dl-page-btn:hover { border-color: rgba(0,191,255,0.4); color: #00bfff; }
.dl-page-btn.disabled {
    opacity: 0.3; pointer-events: none; cursor: default;
}
.dl-page-info {
    font-size: 0.72rem; color: #444; letter-spacing: 1px; text-transform: uppercase;
}
.dl-page-current {
    font-family: 'Audiowide', sans-serif;
    color: #00bfff; font-size: 0.85rem;
}

/* ── Responsive ── */
@media (min-width: 901px) {
    .dl-header { min-width: 1300px; }
    .dl-wrap   { min-width: 1300px; }
}

@media (max-width: 900px) {
    .dl-header { padding: 20px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .dl-title { font-size: 1.2rem; }
    .dl-wrap { padding: 20px 12px 60px; }
    .dl-table th, .dl-table td { padding: 10px 12px; }
    .dl-pagination { gap: 8px; padding: 16px 12px; }
    .dl-page-btn { padding: 7px 12px; font-size: 0.72rem; }
}