/* ==============================
   STATS VIEW
============================== */
.stats-hero {
    text-align: center;
    padding: var(--space-lg) 0;
}
.stats-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}
.stats-chart-section {
    margin-bottom: var(--space-xl);
}
.stats-bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    padding: var(--space-md) 0;
}
.stats-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.stats-bar-fill {
    width: 60%;
    background: var(--border);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}
.stats-bar-label {
    font-size: 10px;
    color: var(--text-secondary);
}
.stats-top-book {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
}
.stats-top-book-rank {
    font-weight: 800;
    color: var(--primary);
    width: 24px;
}
.stats-top-book-name {
    flex: 1;
}
.stats-top-book-count {
    color: var(--text-secondary);
    font-size: var(--text-xs);
}
.stats-streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.streak-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--surface2);
    font-size: 10px;
    color: var(--text-secondary);
}
.streak-day.read {
    background: var(--primary);
    color: white;
    font-weight: 700;
}
.streak-day.today {
    outline: 2px solid var(--accent);
}

/* Stats sections */
.stats-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.stats-section h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}
.streak-display {
    text-align: center;
    padding: var(--space-md);
}
.streak-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}
.streak-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}
.reading-time {
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary);
    padding: var(--space-md);
}
.weekly-progress-stats {
    padding: var(--space-sm) 0;
}
.week-days-stats {
    display: flex;
    justify-content: space-between;
}
.day-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.day-stat .day-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
}
.day-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.day-stat.today .day-dot {
    border-color: var(--primary);
}
.day-stat.has-reading .day-dot {
    background: var(--primary);
    border-color: var(--primary);
}
