/* stats.css -- the public /stats/ page (issue #210). Dark to match the rest
   of the site, which has no separate light theme to switch out of. */

.stats-error {
    text-align: center;
    color: #ccc;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
}

.stats-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 0 0 32px;
}

.stats-tile {
    background: #000;
    border: 2px solid #ff6600;
    border-radius: 8px;
    padding: 16px 24px;
    min-width: 140px;
    text-align: center;
}

.stats-tile-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ff6600;
}

.stats-tile-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.stats-card {
    background: #000;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 24px;
}

.stats-card h3 {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 8px;
}

.stats-card p {
    margin: 4px 0;
}

.stats-puzzle-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* Last-30-days bar chart: one column per day, height proportional to that
   day's share of the busiest day in the window. Plain divs, no canvas or
   chart library -- the site has no build step to pull one in through. */
.stats-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100px;
    margin: 12px 0 4px;
}

.stats-bar {
    flex: 1 1 auto;
    background: #ff6600;
    border-radius: 2px 2px 0 0;
    min-height: 2px;
}

.stats-bars-caption {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 12px;
}

.stats-countries {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stats-countries li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #222;
}

.stats-countries li:last-child {
    border-bottom: none;
}

.stats-country-name {
    color: #ccc;
}

.stats-country-value {
    color: #999;
}

.stats-footnote {
    text-align: center;
    color: #777;
    font-size: 13px;
    max-width: 480px;
    margin: 32px auto 0;
}

.stats-footnote a {
    color: #ff6600;
}
