/* ========================================
   NihonGo! — Progress Page Styles
   ======================================== */

.progress-page-content {
    padding: 32px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* 8-Card Stats Grid */
.stats-8-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.s8-card {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.s8-icon { font-size: 1.5rem; margin-bottom: 4px; }

.s8-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s8-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Score Chart */
.chart-section {
    padding: 24px;
    margin-bottom: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-header h2 { font-size: 1.1rem; font-weight: 700; }

.chart-toggles {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--surface);
    border-radius: var(--radius-md);
}

.chart-toggle {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.chart-toggle:hover { color: var(--text-primary); }

.chart-toggle.active {
    background: var(--gradient-purple-pink);
    color: white;
}

.chart-area {
    height: 220px;
    display: flex;
    align-items: flex-end;
}

.chart-bars {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 100%;
    align-items: flex-end;
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    max-width: 48px;
    background: var(--gradient-purple-pink);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    transition: height 0.5s ease;
    min-height: 20px;
}

.bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* Level Progress */
.level-progress-section {
    padding: 24px;
    margin-bottom: 24px;
}

.level-progress-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.level-current { color: var(--purple); }
.level-next { color: var(--text-muted); }

.level-bar-track {
    height: 16px;
    background: var(--surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}

.level-bar-fill {
    height: 100%;
    background: var(--gradient-purple-pink);
    border-radius: var(--radius-full);
    transition: width 1s ease;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.level-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Accuracy Bars */
.accuracy-section {
    padding: 24px;
    margin-bottom: 24px;
}

.accuracy-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.accuracy-bars { display: flex; flex-direction: column; gap: 18px; }

.acc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.acc-pct {
    font-family: var(--font-display);
    font-weight: 700;
}

.acc-track {
    height: 10px;
    background: var(--surface);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.acc-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.5s ease;
}

/* Activity Heatmap */
.heatmap-section {
    padding: 24px;
    margin-bottom: 24px;
}

.heatmap-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }

.heatmap-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.heatmap-grid {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.heatmap-cell {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.heatmap-cell:hover {
    transform: scale(1.3);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.heatmap-legend-boxes {
    display: flex;
    gap: 3px;
}

.hl-box {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-page-content { padding: 16px; }
    .stats-8-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-bars { gap: 6px; }
    .heatmap-cell { width: 12px; height: 12px; }
}
