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

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

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

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

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

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

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

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

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

/* ============================================
   Words Container - 3 colonnes
   ============================================ */

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

@media (max-width: 1024px) {
    .tpr-words-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   Phrases Container - 2 colonnes
   ============================================ */

.tpr-phrases-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    align-items: start;
}

@media (max-width: 640px) {
    .tpr-phrases-container {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 768px) {
    .tpr-pronunciation-content {
        padding: 20px;
    }
    
    .tpr-progress-section {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .tpr-progress-stats {
        width: 100%;
        justify-content: space-around;
    }
}