/* ============================================
   English Buddy - Progress Page Styles
   ============================================ */

/* Header Row */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5em;
}

.header-row h1 {
    flex: 1;
    text-align: center;
}

/* Progress Container */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
}

/* Progress Card */
.progress-card {
    background: var(--card-bg);
    border-radius: 1.2em;
    padding: 1.2em 1.5em;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1em;
    animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.progress-card:nth-child(1) { animation-delay: 0.1s; }
.progress-card:nth-child(2) { animation-delay: 0.2s; }
.progress-card:nth-child(3) { animation-delay: 0.3s; }
.progress-card:nth-child(4) { animation-delay: 0.4s; }

.progress-header {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.progress-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.progress-info {
    flex: 1;
}

.progress-title {
    font-family: 'Fredoka One', 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
    font-size: 1.2em;
    color: var(--text);
    margin-bottom: 0.2em;
}

.progress-description {
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Highlight Card (Overall Progress) */
.highlight-card {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1), rgba(56, 161, 105, 0.05));
    border: 2px solid rgba(72, 187, 120, 0.2);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8em;
}

.stats-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stat-item {
    background: var(--bg-light);
    border-radius: 1em;
    padding: 1em 0.5em;
    text-align: center;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-item.highlight {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.stat-value {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8em;
    color: var(--primary);
    line-height: 1;
}

.stat-item.highlight .stat-value {
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.75em;
    color: var(--text-muted);
    margin-top: 0.3em;
    font-weight: 600;
}

.stat-item.highlight .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Danger Card */
.danger-card {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.05), rgba(252, 129, 129, 0.02));
    border: 2px solid rgba(229, 62, 62, 0.15);
}

.danger-zone {
    padding-top: 0.5em;
}

/* Reset Button */
.reset-btn {
    width: 100%;
    padding: 0.8em 1.5em;
    background: var(--bg-light);
    border: 2px solid var(--danger-light);
    border-radius: 0.8em;
    color: var(--danger);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* Reset Confirmation */
.reset-confirm {
    text-align: center;
    padding: 0.5em 0;
}

.reset-warning {
    color: var(--danger);
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 0.3em;
}

.reset-note {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 1em;
}

.reset-buttons {
    display: flex;
    gap: 0.5em;
    justify-content: center;
    flex-wrap: wrap;
}

.reset-cancel-btn,
.reset-confirm-btn {
    min-width: 80px;
    padding: 0.6em 1em;
    border-radius: 0.6em;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.reset-cancel-btn {
    background: var(--bg-light);
    border: 2px solid var(--border);
    color: var(--text);
}

.reset-cancel-btn:hover {
    background: var(--border);
}

.reset-confirm-btn {
    background: var(--danger);
    border: 2px solid var(--danger);
    color: white;
}

.reset-confirm-btn:hover {
    background: var(--danger-light);
    border-color: var(--danger-light);
}

/* Reset Success */
.reset-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.8em;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 0.8em;
    color: var(--success);
    font-weight: 700;
}

.success-icon {
    font-size: 1.2em;
}

/* Footer */
footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    padding: 1em 0;
    flex-shrink: 0;
}

/* ============================================
   Portrait Mode Adjustments
   ============================================ */
@media (orientation: portrait) {
    .progress-container {
        max-width: 100%;
    }

    .progress-card {
        padding: 1em;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        padding: 0.8em 0.4em;
    }

    .stat-value {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 0.7em;
    }

    .reset-buttons {
        flex-direction: row;
        gap: 0.5em;
    }

    .reset-cancel-btn,
    .reset-confirm-btn {
        flex: 1;
        min-width: auto;
    }
}
