/**
 * Thai Pronunciation Trainer - Components
 * Section headers, progress bars, grid layouts
 */

/* ============================================
   Section Headers avec Progression
   ============================================ */

.tpt-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
}

.tpt-section-header:not(:first-child) {
    margin-top: 20px;
}

.tpt-section-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tpt-section-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.tpt-section-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Mobile: stack vertically with progress on bottom */
@media (max-width: 600px) {
    .tpt-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tpt-section-header-left {
        align-items: flex-start;
    }
    
    .tpt-section-progress {
        justify-content: flex-end;
        padding-top: 4px;
    }
}

.tpt-section-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpt-section-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    min-width: 50px;
    text-align: right;
}

.tpt-section-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.tpt-section-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ============================================
   Words Container - 2 colonnes
   ============================================ */

.tpt-words-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    width: 100%;
    align-items: start;
}

@media (max-width: 1000px) {
    .tpt-words-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Phrases Container - 1 colonne
   ============================================ */

.tpt-phrases-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    align-items: start;
}

/* ============================================
   Responsive - Global
   ============================================ */

@media (max-width: 768px) {
    .tpt-modal-header {
        padding: 20px 20px 0;
    }
    
    .tpt-modal-title {
        font-size: 18px;
    }
    
    .tpt-pronunciation-content {
        padding: 20px;
    }
    
    .tpt-progress-section {
        padding: 0 20px 12px;
    }
    
    .tpt-stats-group {
        gap: 8px;
    }
    
    .tpt-stat-card {
        min-width: 0;
        padding: 6px 8px;
    }
    
    .tpt-stat-number {
        font-size: 18px;
        font-weight: 800;
    }
    
    .tpt-stat-label {
        font-size: 7px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
}