/* pages/static/pages/css/shop_frontend/interesting_facts.css */
/* Уникальные стили страницы «Интересные факты».
   Всё общее (.hero, section, .block-card, .callout, .lead,
   .feature-list) — в shop_general.css. */

/* ============================================================
   STATS GRID — три большие цифры
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.stat-card {
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background-color 0.35s ease, border-color 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.stat-card__value {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: color 0.35s ease;
}

.stat-card__text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    transition: color 0.35s ease;
}

/* Красный — 1% */
.stat-card--danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.25);
}

.stat-card--danger .stat-card__value {
    color: #ef4444;
}

/* Оранжевый — 84% */
.stat-card--warn {
    background: rgba(249, 115, 22, 0.06);
    border-color: rgba(249, 115, 22, 0.25);
}

.stat-card--warn .stat-card__value {
    color: #f97316;
}

/* Серый — 16% */
.stat-card--muted {
    background: var(--bg-card);
    border-color: var(--border);
}

.stat-card--muted .stat-card__value {
    color: var(--text-muted);
}

:root[data-theme="dark"] .stat-card--danger .stat-card__value { color: #f87171; }
:root[data-theme="dark"] .stat-card--warn .stat-card__value { color: #fb923c; }

/* ============================================================
   FUNNEL DEMO — воронка «1 000 посетителей»
   ============================================================ */
.funnel-demo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 22px 0;
    padding: 22px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.funnel-row {
    display: grid;
    grid-template-columns: 180px 1fr 80px;
    align-items: center;
    gap: 16px;
}

.funnel-row--accent .funnel-row__label {
    color: #ef4444;
    font-weight: 700;
}

.funnel-row--accent .funnel-row__num {
    color: #ef4444;
}

.funnel-row__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.35s ease;
}

.funnel-row__bar {
    height: 22px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    transition: background-color 0.35s ease;
}

.funnel-row__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.funnel-row__fill--full     { width: 100%; }
.funnel-row__fill--seventy  { width: 70%; }
.funnel-row__fill--ten      { width: 10%; }

.funnel-row__fill--tiny {
    width: 2%;
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.funnel-row__num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-heading);
    text-align: right;
    white-space: nowrap;
    transition: color 0.35s ease;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .funnel-demo {
        padding: 18px 16px;
    }

    .funnel-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 12px;
    }

    .funnel-row__label {
        grid-column: 1 / 3;
        font-size: 0.85rem;
    }

    .funnel-row__bar {
        grid-column: 1;
        grid-row: 2;
        height: 16px;
    }

    .funnel-row__num {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 20px 16px;
    }
}