/* static/css/stats_unique_locations.css
   Optik der Statistik-/Ranking-Seiten: dunkelblaue Tabelle, weisse Schrift. */

.stats-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 60px;
    font-family: Verdana, sans-serif;
}

.stats-header {
    background-color: #112839;
    border-radius: 10px 10px 0 0;
    padding: 18px 20px 14px;
    margin-bottom: 0;
}

.stats-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.stats-subtitle {
    margin: 0;
    font-size: 12px;
    color: #7d8a97;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.stats-table-wrap {
    background-color: #112839;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(17, 40, 57, 0.18);
    overflow: hidden;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #ffffff;
}

.stats-table thead th {
    background-color: #0c1d2b;
    color: #ffffff;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 12px;
    padding: 14px 16px;
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-table thead th.col-rank,
.stats-table thead th.col-code,
.stats-table thead th.col-name {
    text-align: left;
}

.stats-table thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.stats-table thead th.sortable:hover { background-color: #16324a; }

.stats-table thead th.sortable::after {
    content: '\2195';
    margin-left: 6px;
    opacity: 0.4;
    font-size: 11px;
}

.stats-table thead th.sort-asc::after { content: '\2191'; opacity: 1; }
.stats-table thead th.sort-desc::after { content: '\2193'; opacity: 1; }

.stats-table tbody td {
    padding: 11px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stats-table tbody td.col-rank {
    text-align: left;
    color: rgba(255, 255, 255, 0.45);
    width: 56px;
}

.stats-table tbody td.col-code {
    text-align: left;
    font-variant-numeric: normal;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    width: 80px;
}

.stats-table tbody td.col-name {
    text-align: left;
    font-variant-numeric: normal;
}

.stats-table tbody tr:hover td { background-color: rgba(255, 255, 255, 0.06); }

.stats-user-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.stats-user-link:hover {
    color: #7fb5e6;
    text-decoration: underline;
}

/* Verlinkte Zahl (Photos/Airlines -> Suche by Airport) */
.stats-num-link {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.stats-sub {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    margin-top: 2px;
}

.stats-empty {
    text-align: center;
    color: #7d8a97;
    padding: 40px 0;
}

@media (max-width: 700px) {
    .stats-table { font-size: 13px; }
    .stats-table thead th,
    .stats-table tbody td { padding: 10px 10px; }
    .stats-title { font-size: 22px; }
}
