/* ==========================================================================
   Stat strip — shared statistic display component (Sprint 2 Faza B)
   Two patterns:
   1. .stat-strip + .stat-item (typographic strip, e.g. homepage hero stats,
      /naselja index stats, /o-nama stats)
   2. .stat-box (older card variant — kept for back-compat, marked legacy
      in modifier --legacy)

   Canonical classes:
   - .stat-strip  (container with hairline dividers)
   - .stat-item   (single column)
   - .stat-number (big tabular figure)
   - .stat-label  (caps tracking label)
   - .stat-icon   (outlined terracotta icon)
   - .stat-item--feature variant (icon + label group)
   ========================================================================== */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 28px 22px;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: background-color 0.2s;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--hairline);
}

.stat-item:hover {
    background: var(--warm-white);
    transform: none;
    box-shadow: none;
}

.stat-number,
.stat-value {
    margin: 0;
    font-family: var(--font-display);
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1;
    color: var(--ink);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--taupe);
}

/* Outlined icon — uses terracotta ring + accent */
.stat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border: 1px solid var(--hairline-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--terracotta);
    font-size: 0.95rem;
}

/* Feature variant — used on homepage stats for "Besplatno / Verifikovani" */
.stat-item--feature {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.stat-item--feature .stat-icon {
    margin-bottom: 0;
}

.stat-label-group {
    min-width: 0;
}

.stat-feature-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.25;
}

.stat-feature-sub {
    margin-top: 2px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--taupe);
    line-height: 1.4;
}

@media (max-width: 720px) {
    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2n+1) {
        border-left: none;
    }
    .stat-item:nth-child(n+3) {
        border-top: 1px solid var(--hairline);
    }
}
