/* assets/css/analytics.css — balance / stats dashboard */

.page-analytics {
    min-height: 100vh;
    background: #0a1628;
    color: #d8e8f8;
}

.analytics-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.analytics-header {
    margin-bottom: 24px;
}

.analytics-header h1 {
    margin: 0 0 8px;
    color: #ffe8a0;
    font-size: 1.75rem;
}

.analytics-sub {
    margin: 0 0 16px;
    color: #8aa8c8;
    line-height: 1.5;
    max-width: 640px;
}

.analytics-back {
    display: inline-block;
    text-decoration: none;
}

.analytics-empty {
    text-align: center;
    padding: 32px 24px;
}

.analytics-empty h2 {
    margin: 0 0 10px;
    color: #ffe8a0;
}

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.analytics-kpi {
    background: rgba(6, 18, 32, 0.9);
    border: 1px solid #2a4060;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
}

.analytics-kpi__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffe8a0;
    line-height: 1.2;
}

.analytics-kpi__label {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8aa8c8;
    line-height: 1.3;
}

.analytics-section {
    margin-bottom: 20px;
    padding: 20px;
}

.analytics-section h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: #ffe8a0;
}

.analytics-note {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: #8aa8c8;
}

.analytics-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-bar-list li {
    display: grid;
    grid-template-columns: 90px 1fr 36px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.analytics-bar-label {
    color: #a8c4e0;
}

.analytics-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    overflow: hidden;
}

.analytics-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #3a7ab8, #5ec8ff);
    border-radius: 5px;
    min-width: 2px;
}

.analytics-bar-count {
    text-align: right;
    color: #ffe8a0;
    font-weight: 600;
}

.analytics-table-wrap {
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.analytics-table th,
.analytics-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #2a4060;
}

.analytics-table th {
    color: #8aa8c8;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.analytics-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.analytics-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.08);
    color: #a8c4e0;
}

.analytics-type--treasure { color: #ffe8a0; }
.analytics-type--danger { color: #ff8a80; }
.analytics-type--voyage { color: #7ec8ff; }
.analytics-type--raid { color: #ffab91; }
.analytics-type--defence { color: #a5d6a7; }

.analytics-top-cards {
    font-size: 0.8rem;
    color: #a8c4e0;
    max-width: 220px;
}

.analytics-updated {
    text-align: center;
    font-size: 0.78rem;
    color: #6a88a8;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .analytics-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .analytics-bar-list li {
        grid-template-columns: 72px 1fr 28px;
        font-size: 0.82rem;
    }
}
