/**
 * Statistics section — structure and styling identical to newswire-redesign (7) design
 * Matches app/profile/page.tsx Statistics component (OverviewCard, stat-tab-btn, stat-row, stat-value)
 */

.statistics-container-figma {
    width: 100%;
}

/* Tabs card (design: OverviewCard) */
.statistics-tabs-card {
    background: #fff;
    border-radius: 0.6vw;
    border: 0.06vw solid #e2e5ea;
    overflow: hidden;
    margin-bottom: 0.8vw;
}

[data-theme="dark"] .statistics-tabs-card {
    background: var(--card-bg, #1e293b);
    border-color: var(--card-border, #334155);
}

.statistics-tabs-inner {
    padding: 0.4vw 0.5vw;
    display: flex;
    gap: 0.3vw;
}

/* Tab buttons (design: stat-tab-btn) */
.stat-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3vw;
    padding: 0.45vw 0.4vw;
    border-radius: 0.35vw;
    font-family: inherit;
    border: 0.08vw solid transparent;
    background: transparent;
    color: #667085;
    font-size: 0.65vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-tab-btn:hover {
    transform: translateY(-0.04vw);
}

.stat-tab-btn.active {
    border-color: rgba(79, 110, 247, 0.25);
    background: rgba(79, 110, 247, 0.06);
    color: #4f6ef7;
}

[data-theme="dark"] .stat-tab-btn {
    color: #94a3b8;
}

[data-theme="dark"] .stat-tab-btn.active {
    border-color: rgba(79, 110, 247, 0.35);
    background: rgba(79, 110, 247, 0.1);
    color: #818cf8;
}

/* Content card (design: OverviewCard with rows) */
.statistics-content-card {
    background: #fff;
    border-radius: 0.6vw;
    border: 0.06vw solid #e2e5ea;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .statistics-content-card {
    background: var(--card-bg, #1e293b);
    border-color: var(--card-border, #334155);
}

.statistics-section-figma {
    display: none;
}

.statistics-section-figma.active {
    display: block;
}

/* Rows list */
.statistics-rows {
    display: flex;
    flex-direction: column;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6vw 0.85vw;
    border-bottom: 0.06vw solid #f3f4f6;
    transition: all 0.2s ease;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row:hover {
    background: rgba(79, 110, 247, 0.015);
}

.stat-row:hover .stat-value {
    color: #4f6ef7;
}

[data-theme="dark"] .stat-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .stat-row:hover {
    background: rgba(79, 110, 247, 0.06);
}

[data-theme="dark"] .stat-row:hover .stat-value {
    color: #818cf8;
}

.stat-row-left {
    display: flex;
    align-items: center;
    gap: 0.45vw;
}

.stat-row-icon {
    width: 1.5vw;
    height: 1.5vw;
    min-width: 1.5vw;
    min-height: 1.5vw;
    border-radius: 0.35vw;
    border: 0.06vw solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-row-icon i {
    font-size: 0.65vw;
}

.stat-row-label {
    font-size: 0.7vw;
    font-weight: 500;
    color: #555;
}

[data-theme="dark"] .stat-row-label {
    color: #94a3b8;
}

.stat-value {
    font-size: 0.84vw;
    font-weight: 700;
    color: #111318;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

[data-theme="dark"] .stat-value {
    color: #f1f5f9;
}

/* Coming Soon block (design: forum placeholder) */
.statistics-coming-soon {
    padding: 4vw 2vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vw;
}

.statistics-coming-soon-icon {
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 0.6vw;
    background: rgba(79, 110, 247, 0.05);
    border: 0.07vw solid rgba(79, 110, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3vw;
}

.statistics-coming-soon-icon i {
    font-size: 1.5vw;
    color: #c0c4cc;
}

[data-theme="dark"] .statistics-coming-soon-icon i {
    color: #64748b;
}

.statistics-coming-soon-title {
    font-size: 0.88vw;
    font-weight: 700;
    color: #111318;
    margin: 0;
}

[data-theme="dark"] .statistics-coming-soon-title {
    color: #f1f5f9;
}

.statistics-coming-soon-subtitle {
    font-size: 0.67vw;
    color: #a0a5b2;
    margin: 0;
    max-width: 18vw;
}

[data-theme="dark"] .statistics-coming-soon-subtitle {
    color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
    .statistics-tabs-inner {
        flex-wrap: wrap;
    }
    .stat-tab-btn {
        font-size: 0.75vw;
        padding: 0.5vw 0.5vw;
    }
    .stat-row-label {
        font-size: 0.75vw;
    }
    .stat-value {
        font-size: 0.85vw;
    }
    .stat-row-icon {
        width: 1.8vw;
        height: 1.8vw;
        min-width: 1.8vw;
        min-height: 1.8vw;
    }
    .stat-row-icon i {
        font-size: 0.75vw;
    }
}

@media (max-width: 600px) {
    .statistics-tabs-card,
    .statistics-content-card {
        border-radius: 1.2vw;
    }
    .statistics-tabs-inner {
        padding: 0.6vw 0.8vw;
        gap: 0.4vw;
    }
    .stat-tab-btn {
        font-size: 2.8vw;
        padding: 1vw 0.8vw;
        border-radius: 0.8vw;
    }
    .stat-row {
        padding: 1vw 1.2vw;
        border-bottom-width: 0.12vw;
    }
    .stat-row-icon {
        width: 3.5vw;
        height: 3.5vw;
        min-width: 3.5vw;
        min-height: 3.5vw;
        border-radius: 0.8vw;
    }
    .stat-row-icon i {
        font-size: 1.6vw;
    }
    .stat-row-label {
        font-size: 2.6vw;
    }
    .stat-value {
        font-size: 3vw;
    }
    .statistics-coming-soon {
        padding: 8vw 4vw;
    }
    .statistics-coming-soon-icon {
        width: 12vw;
        height: 12vw;
        border-radius: 2vw;
    }
    .statistics-coming-soon-icon i {
        font-size: 5vw;
    }
    .statistics-coming-soon-title {
        font-size: 3.2vw;
    }
    .statistics-coming-soon-subtitle {
        font-size: 2.6vw;
        max-width: 70vw;
    }
}
