/* =====================================================================
   GoreWin — Sayaç şeridi (anasayfa)
   Rakamlar /app veritabanından canlı gelir; 60 sn'de bir tazelenir.
   ===================================================================== */

.stats {
    position: relative;
    padding: 0 0 clamp(40px, 5vw, 72px);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-align: center;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 14%;
    width: 1px; height: 72%;
    background: var(--line);
}

.stat__ico {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-text);
    font-size: 17px;
}

.stat__num {
    font-family: var(--font-head);
    font-size: clamp(21px, 2.6vw, 32px);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--text-strong);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    transition: color .3s ease;
}
/* AJAX tazelemesinde değişen rakam kısa süre vurgulanır */
.stat__num.is-bumped { color: var(--accent-text); }

.stat__label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 860px) {
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat:nth-child(odd)::before { display: none; }
    .stat:nth-child(3)::after,
    .stat:nth-child(4)::after {
        content: "";
        position: absolute;
        top: 0; left: 8%;
        width: 84%; height: 1px;
        background: var(--line);
    }
}

/* Dar ekranda da 2x2 kalır (tek sütuna DÜŞMEZ); yalnızca ölçüler küçülür.
   Izgara satırları kendiliğinden eşit yükseklikte olduğu için dört kutu eşitlenir. */
@media (max-width: 420px) {
    .stats__grid { padding: 18px 10px; gap: 6px; }
    .stat { padding: 10px 4px; gap: 6px; }
    .stat__ico { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
    .stat__num { font-size: 19px; }
    .stat__label { font-size: 12px; }
}
