/* 公開統計頁面樣式 */

/* === Hero 計數器 === */
.stats-hero {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-counter {
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 100%);
    border-radius: 20px;
    padding: 36px 48px;
    color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(26, 26, 46, 0.2);
    transition: transform 0.2s;
}

.hero-counter:hover {
    transform: translateY(-4px);
}

.hero-icon {
    font-size: 2.2rem;
    opacity: 0.6;
    display: block;
    margin-bottom: 8px;
}

.hero-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Manrope', sans-serif;
}

.hero-label {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* === 模組人氣 === */
.stats-section {
    margin-bottom: 56px;
}

.popularity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.pop-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pop-rank {
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4af37;
    min-width: 36px;
}

.pop-icon {
    font-size: 1.8rem;
    color: #7f7663;
}

.pop-info {
    flex: 1;
}

.pop-name {
    font-weight: 600;
    color: #1b1c15;
    font-size: 1rem;
}

.pop-count {
    color: #7f7663;
    font-size: 0.88rem;
    margin-top: 2px;
}

/* === 圖表 === */
.chart-wrap {
    max-width: 420px;
    margin: 0 auto;
    height: 320px;
}

/* === RWD === */
@media (max-width: 768px) {
    .stats-hero { gap: 16px; }
    .hero-counter { padding: 24px 32px; min-width: 160px; }
    .hero-number { font-size: 2.2rem; }
    .chart-wrap { height: 260px; }
}

@media (max-width: 480px) {
    .stats-hero { flex-direction: column; align-items: center; }
    .hero-counter { width: 100%; }
    .popularity-grid { grid-template-columns: 1fr; }
}
