/**
 * Boutons Prononciation et Exercices - Intégration Tutor LMS
 * À placer dans l'onglet Résumé (tutor-course-spotlight-overview)
 */

/* Container des boutons - Centré */
.tpt-practice-buttons-container {
    display: flex;
    gap: 12px;
    margin: 0 0 30px 0;
    justify-content: center;
}

/* Bouton */
.tpt-practice-btn {
    flex: 1;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.tpt-practice-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1) !important;
    text-decoration: none !important;
}

/* Barre de progression subtile */
.tpt-practice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    z-index: 0;
    transition: width 0.5s ease;
}

/* Contenu gauche */
.tpt-practice-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Icône */
.tpt-practice-btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 6px;
    flex-shrink: 0;
}

.tpt-practice-btn-icon svg {
    color: white;
    display: block;
}

/* Titre */
.tpt-practice-btn-title {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin: 0 !important;
}

/* Cercle de progression */
.tpt-practice-btn-progress {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.tpt-practice-progress-svg {
    transform: rotate(-90deg);
}

.tpt-practice-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.tpt-practice-progress-fill {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

/* Texte du pourcentage */
.tpt-practice-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: -0.5px;
}

/* Variante Exercices (orange/rouge) */
.tpt-practice-btn.tpt-btn-exercises .tpt-practice-btn-icon {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.tpt-practice-btn.tpt-btn-exercises::before {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
}

.tpt-practice-btn.tpt-btn-exercises:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1) !important;
}

.tpt-practice-btn.tpt-btn-exercises .tpt-practice-progress-fill {
    stroke: #f59e0b;
}

.tpt-practice-btn.tpt-btn-exercises .tpt-practice-progress-text {
    color: #f59e0b;
}

/* État complété 100% (vert) */
.tpt-practice-btn.completed .tpt-practice-btn-icon {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.tpt-practice-btn.completed .tpt-practice-progress-fill {
    stroke: #22c55e;
}

.tpt-practice-btn.completed .tpt-practice-progress-text {
    color: #22c55e;
}

.tpt-practice-btn.completed:hover {
    border-color: rgba(34, 197, 94, 0.5) !important;
}

/* Responsive */
@media (max-width: 640px) {
    .tpt-practice-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tpt-practice-btn {
        max-width: none;
    }
}