/* ===================================
   BOOST COURSES - CSS COMPLETO FRONTEND
   Design Professionale GemCareer Style
   =================================== */

/* Variabili CSS complete */
:root {
    /* Colori principali GemCareer */
    --gc-primary: #4a6fa5;
    --gc-primary-dark: #3a5a8a;
    --gc-secondary: #6c8ec7;
    --gc-accent: #7dd87d;
    --gc-success: #22c55e;
    --gc-warning: #f59e0b;
    --gc-danger: #ef4444;
    --gc-info: #3b82f6;
    
    /* Grigi neutri */
    --gc-gray-50: #f8fafc;
    --gc-gray-100: #f1f5f9;
    --gc-gray-200: #e2e8f0;
    --gc-gray-300: #cbd5e1;
    --gc-gray-400: #94a3b8;
    --gc-gray-500: #64748b;
    --gc-gray-600: #475569;
    --gc-gray-700: #334155;
    --gc-gray-800: #1e293b;
    --gc-gray-900: #0f172a;
    
    /* Tipografia */
    --gc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gc-border-radius: 16px;
    --gc-border-radius-sm: 8px;
    --gc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===================================
   CONTAINER PRINCIPALE LEZIONI
   =================================== */

.boost-course-lessons {
    margin: 40px 0;
    padding: 0;
    background: #ffffff;
    border-radius: var(--gc-border-radius);
    box-shadow: var(--gc-shadow);
    overflow: hidden;
    font-family: var(--gc-font-family);
}

/* ===================================
   HEADER DEL CORSO
   =================================== */

.boost-course-header {
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-primary-dark) 100%);
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.boost-course-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 40%;
    height: 120%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(15deg);
    border-radius: 50px;
}

.boost-course-header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

/* Durata del corso */
.boost-course-duration {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.boost-course-duration .duration-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.boost-course-duration .duration-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.boost-course-duration .duration-text {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

.boost-course-duration .duration-text strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
    opacity: 1;
}

/* Progress bar */
.boost-course-progress-bar {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boost-course-progress-bar .progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.progress-bar-container {
    position: relative;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gc-accent) 0%, #5cb85c 100%);
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(125, 216, 125, 0.4);
}

/* Actions del corso */
.course-actions {
    margin-top: 24px;
    text-align: right;
}

.reset-progress-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gc-transition);
    backdrop-filter: blur(10px);
}

.reset-progress-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.reset-progress-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ===================================
   TITOLO SEZIONE CONTENUTI
   =================================== */

.boost-course-lessons > h3 {
    margin: 0;
    padding: 32px 40px;
    font-size: 28px;
    font-weight: 700;
    color: var(--gc-gray-900);
    border-bottom: 1px solid var(--gc-gray-200);
    background: linear-gradient(135deg, var(--gc-gray-50) 0%, #ffffff 100%);
    position: relative;
    padding-left: 64px;
}

.boost-course-lessons > h3::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 32px;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
    border-radius: 3px;
    margin: 0 0 0 -10px;
}

/* ===================================
   LISTA LEZIONI
   =================================== */

.lessons-list {
    list-style: none;
    margin: 0;
    padding: 32px 40px;
    display: grid;
    gap: 20px;
}

/* Card delle lezioni */
.lesson-item {
    background: #ffffff;
    border: 2px solid var(--gc-gray-100);
    border-radius: var(--gc-border-radius);
    padding: 28px;
    transition: var(--gc-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.lesson-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lesson-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--gc-shadow-lg);
    border-color: var(--gc-primary);
}

.lesson-item:hover::before {
    transform: scaleX(1);
}

.lesson-item.viewed {
    background: linear-gradient(135deg, rgba(125, 216, 125, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-color: var(--gc-accent);
}

.lesson-item.viewed::before {
    background: linear-gradient(90deg, var(--gc-accent) 0%, var(--gc-success) 100%);
    transform: scaleX(1);
}

.lesson-item.premium.locked {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--gc-gray-50);
}

.lesson-item.premium.locked:hover {
    transform: none;
    box-shadow: var(--gc-shadow);
    border-color: var(--gc-gray-200);
}

/* ===================================
   NUMERO DELLA LEZIONE
   =================================== */

.lesson-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-primary-dark) 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.lesson-item.viewed .lesson-number {
    background: linear-gradient(135deg, var(--gc-accent) 0%, var(--gc-success) 100%);
    box-shadow: 0 4px 12px rgba(125, 216, 125, 0.3);
}

.lesson-item.viewed .lesson-number::after {
    content: '✓';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--gc-success);
    border: 2px solid var(--gc-success);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.lesson-item.quiz-item .lesson-number {
    background: linear-gradient(135deg, var(--gc-warning) 0%, #e67e22 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===================================
   CONTENUTO DELLA LEZIONE
   =================================== */

.lesson-content-wrapper {
    flex: 1;
    min-width: 0;
}

.lesson-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gc-gray-900);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 12px;
    line-height: 1.4;
}

.lesson-item:hover .lesson-title {
    color: var(--gc-primary);
}

.lesson-title.locked {
    color: var(--gc-gray-400);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-title.locked .dashicons-lock {
    color: var(--gc-danger);
    font-size: 18px;
    flex-shrink: 0;
}

/* ===================================
   META INFORMAZIONI LEZIONE
   =================================== */

.lesson-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.lesson-status-wrapper {
    display: inline-flex;
}

.lesson-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lesson-status.free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.lesson-status.premium {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.lesson-status.quiz-status {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #92400e;
    border: 1px solid #fdba74;
}

/* Durata e progresso sezioni */
.lesson-duration,
.quiz-duration,
.lesson-sections-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gc-gray-500);
    font-weight: 500;
}

.lesson-duration .dashicons,
.quiz-duration .dashicons,
.lesson-sections-progress .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--gc-gray-400);
}

/* ===================================
   STATI DI COMPLETAMENTO
   =================================== */

.lesson-completion-status,
.quiz-completion-status,
.quiz-view-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--gc-gray-100);
}

.lesson-completion-status {
    color: var(--gc-success);
    background: rgba(34, 197, 94, 0.1);
}

.quiz-completion-status {
    color: var(--gc-success);
    background: rgba(34, 197, 94, 0.1);
}

.quiz-completion-status:not(.passed) {
    color: var(--gc-danger);
    background: rgba(239, 68, 68, 0.1);
}

.quiz-view-status {
    color: var(--gc-gray-500);
}

/* ===================================
   BADGE RISULTATO QUIZ
   =================================== */

.quiz-result-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quiz-completed-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quiz-completed-badge.passed {
    background: linear-gradient(135deg, var(--gc-success) 0%, #16a34a 100%);
}

.quiz-completed-badge.failed {
    background: linear-gradient(135deg, var(--gc-danger) 0%, #dc2626 100%);
}

.quiz-completed-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===================================
   EXCERPT DELLA LEZIONE
   =================================== */

.lesson-excerpt,
.quiz-excerpt {
    grid-column: 2 / -1;
    margin-top: 16px;
    font-size: 15px;
    color: var(--gc-gray-600);
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px solid var(--gc-gray-100);
}

/* ===================================
   AVVISO PREMIUM
   =================================== */

.boost-course-premium-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--gc-warning);
    padding: 24px;
    margin: 24px 32px;
    border-radius: var(--gc-border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.boost-course-premium-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
}

.boost-course-premium-notice p {
    margin: 0 0 20px;
    color: #78350f;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.boost-course-buy-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-primary-dark) 100%);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--gc-transition);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.3);
    position: relative;
    z-index: 1;
}

.boost-course-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(74, 111, 165, 0.4);
    color: white;
}

/* ===================================
   STILI PER LE PAGINE DI LEZIONE
   =================================== */

.lesson-video {
    margin: 20px 0;
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--gc-border-radius-sm);
    box-shadow: var(--gc-shadow);
}

.lesson-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--gc-border-radius-sm);
}

/* ===================================
   TASSONOMIE CORSI E LEZIONI
   =================================== */

.boost-course-taxonomies,
.boost-lesson-taxonomies,
.boost-quiz-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--gc-gray-50);
    border-radius: var(--gc-border-radius-sm);
    border-left: 4px solid var(--gc-secondary);
}

.taxonomy-label {
    font-weight: 700;
    color: var(--gc-gray-700);
    margin-right: 8px;
}

.boost-course-categories a,
.boost-lesson-categories a,
.boost-quiz-categories a {
    color: var(--gc-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.boost-course-categories a:hover,
.boost-lesson-categories a:hover,
.boost-quiz-categories a:hover {
    color: var(--gc-primary-dark);
    text-decoration: underline;
}

.boost-course-tags a,
.boost-lesson-tags a,
.boost-quiz-tags a {
    display: inline-block;
    padding: 4px 12px;
    margin: 2px;
    background: var(--gc-gray-100);
    border-radius: 16px;
    color: var(--gc-gray-600);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--gc-gray-200);
}

.boost-course-tags a:hover,
.boost-lesson-tags a:hover,
.boost-quiz-tags a:hover {
    background: var(--gc-gray-200);
    color: var(--gc-gray-800);
    transform: translateY(-1px);
}

.difficulty-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================
   QUIZ FRONTEND
   =================================== */

.boost-quiz-wrapper {
    margin: 30px 0;
    background: #fff;
    border-radius: var(--gc-border-radius);
    box-shadow: var(--gc-shadow);
    overflow: hidden;
    font-family: var(--gc-font-family);
}

.boost-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--gc-gray-50);
    border-bottom: 1px solid var(--gc-gray-200);
}


/* .quiz-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-status.free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.quiz-status.premium {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #c7d2fe;
} */

.quiz-difficulty .difficulty-badge {
    margin-left: 16px;
}

.boost-quiz-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--gc-gray-600);
    font-weight: 500;
}

.boost-quiz-form {
    padding: 24px;
}

.boost-quiz-questions {
    margin-bottom: 30px;
}

.boost-quiz-question {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gc-gray-100);
    display: flex;
    gap: 15px;
}

.boost-quiz-question:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.2);
}

.question-content {
    flex-grow: 1;
}

.question-text {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gc-gray-900);
}

.question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: var(--gc-border-radius-sm);
    background: var(--gc-gray-50);
    border: 2px solid var(--gc-gray-100);
    transition: var(--gc-transition);
}

.answer-option:hover {
    background: var(--gc-gray-100);
    border-color: var(--gc-gray-200);
}

.answer-option input[type="radio"],
.answer-option input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.answer-text {
    font-size: 15px;
    color: var(--gc-gray-800);
    font-weight: 500;
}

/* ===================================
   QUIZ ACTIONS E RISULTATI
   =================================== */

.boost-quiz-actions {
    text-align: center;
    margin-top: 30px;
}

button.boost-quiz-submit,
button.boost-quiz-retry {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-primary-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gc-transition);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

button.boost-quiz-submit:hover,
button.boost-quiz-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.4);
}

button.boost-quiz-submit.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.boost-quiz-retry {
    background: linear-gradient(135deg, var(--gc-gray-500) 0%, var(--gc-gray-600) 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.boost-quiz-results {
    margin-top: 30px;
    background: var(--gc-gray-50);
    border-radius: var(--gc-border-radius);
    overflow: hidden;
    border: 1px solid var(--gc-gray-200);
}

.results-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--gc-gray-100) 0%, var(--gc-gray-50) 100%);
    border-bottom: 1px solid var(--gc-gray-200);
}

.results-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--gc-gray-900);
}

.results-content {
    padding: 24px;
}

.results-score {
    text-align: center;
    margin-bottom: 30px;
}

.score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, var(--gc-gray-50) 100%);
    box-shadow: var(--gc-shadow-lg);
    margin-bottom: 16px;
    border: 4px solid var(--gc-gray-100);
}

.score-value {
    font-size: 3.5em;
    font-weight: 800;
}

.score-percent {
    font-size: 1.4em;
    margin-top: -0.5em;
}

.score-message {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
}

.score-message.score-passed {
    color: var(--gc-success);
}

.score-message.score-failed {
    color: var(--gc-danger);
}

/* ===================================
   NAVIGAZIONE CONTENUTI
   =================================== */

.boost-content-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--gc-gray-100);
    gap: 16px;
}

.content-nav {
    flex: 1;
    max-width: 300px;
}

.content-nav.empty-nav {
    flex: 0.3;
}

.content-nav.course-link {
    flex: 0.4;
    /* max-width: 200px; */
}

.content-nav a {
    display: block;
    padding: 20px;
    background: linear-gradient(135deg, var(--gc-gray-50) 0%, #ffffff 100%);
    border: 2px solid var(--gc-gray-100);
    border-radius: var(--gc-border-radius);
    text-decoration: none;
    color: var(--gc-gray-800);
    transition: var(--gc-transition);
    height: 100%;
    box-shadow: var(--gc-shadow);
    position: relative;
    overflow: hidden;
}

.content-nav a.course {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px;
}

.content-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-nav a:hover {
    box-shadow: var(--gc-shadow-lg);
    border-color: var(--gc-primary);
    color: var(--gc-primary);
}

.content-nav a:hover::before {
    transform: scaleX(1);
}

.prev-content {
    text-align: left;
}

.course-link {
    text-align: center;
}

.next-content {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 13px;
    color: var(--gc-gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    width: 100%;
}

.prev-content .nav-label::before {
    content: "← ";
    color: var(--gc-primary);
}

.next-content .nav-label::after {
    content: " →";
    color: var(--gc-primary);
}

.content-nav-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--gc-gray-900);
}

/* ===================================
   Additional Content
   =================================== */

.boost-additional-content {
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 32px;
    background: linear-gradient(135deg, var(--gc-gray-50) 0%, #ffffff 100%);
    border: 2px solid var(--gc-gray-100);
    border-radius: var(--gc-border-radius);
    position: relative;
    box-shadow: var(--gc-shadow);
}

.boost-additional-content::before {
    content: "Additional Content";
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
    color: white;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.2);
}

/* ===================================
   Associated Quiz
   =================================== */

.boost-associated-quiz {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid var(--gc-gray-200);
    border-radius: var(--gc-border-radius);
    box-shadow: var(--gc-shadow);
    position: relative;
}

.boost-associated-quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gc-warning) 0%, #e67e22 100%);
    border-radius: var(--gc-border-radius) var(--gc-border-radius) 0 0;
}

.boost-associated-quiz .quiz-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gc-gray-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.boost-associated-quiz .quiz-title::before {
    content: "📝";
    font-size: 24px;
}

.boost-associated-quiz .quiz-description {
    margin-bottom: 20px;
    color: var(--gc-gray-600);
    line-height: 1.6;
}

.boost-associated-quiz .quiz-button-container {
    text-align: center;
}

.boost-associated-quiz .quiz-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gc-warning) 0%, #e67e22 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--gc-transition);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.boost-associated-quiz .quiz-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    color: white;
}

/* ===================================
   AVVISO ACCESSO NEGATO
   =================================== */

.boost-course-access-denied {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--gc-warning);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--gc-border-radius);
    color: #78350f;
    box-shadow: var(--gc-shadow);
    position: relative;
    overflow: hidden;
}

.boost-course-access-denied::before {
    content: '⚠️';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    opacity: 0.7;
}

.boost-course-access-denied p {
    margin: 0 0 16px;
    font-weight: 600;
    font-size: 16px;
}

/* ===================================
   QUIZ COMPLETION INFO
   =================================== */

.quiz-completion-info {
    /* margin: 20px 0; */
    padding: 16px 20px;
    /* background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(125, 216, 125, 0.05) 100%); */
    /* border: 2px solid var(--gc-accent); */
    /* border-radius: var(--gc-border-radius); */
    color: var(--gc-success);
    font-weight: 600;
}

.quiz-completion-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-completion-status .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===================================
   ANIMAZIONI
   =================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    from {
        width: 0;
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lesson-item {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.lesson-item:nth-child(1) { animation-delay: 0.1s; }
.lesson-item:nth-child(2) { animation-delay: 0.15s; }
.lesson-item:nth-child(3) { animation-delay: 0.2s; }
.lesson-item:nth-child(4) { animation-delay: 0.25s; }
.lesson-item:nth-child(5) { animation-delay: 0.3s; }
.lesson-item:nth-child(6) { animation-delay: 0.35s; }
.lesson-item:nth-child(7) { animation-delay: 0.4s; }
.lesson-item:nth-child(8) { animation-delay: 0.45s; }
.lesson-item:nth-child(9) { animation-delay: 0.5s; }
.lesson-item:nth-child(10) { animation-delay: 0.55s; }

.progress-bar-fill {
    animation: progressFill 1.2s ease-out;
}

.lesson-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.lesson-item.loading .lesson-number {
    background: var(--gc-gray-300);
    animation: pulse 1.5s infinite;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Mobile */
@media (max-width: 768px) {
    .boost-course-header {
        padding: 24px 20px;
    }

    .boost-course-header::before {
        display: none;
    }

    .boost-course-duration {
        gap: 12px;
        margin-bottom: 24px;
    }

    .boost-course-duration .duration-icon {
        width: 44px;
        height: 44px;
    }

    .boost-course-duration .duration-icon .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .boost-course-duration .duration-text {
        font-size: 14px;
    }

    .boost-course-duration .duration-text strong {
        font-size: 20px;
    }

    .boost-course-progress-bar {
        padding: 20px;
    }

    .boost-course-lessons > h3 {
        padding: 24px 20px;
        font-size: 24px;
        padding-left: 48px;
    }

    .boost-course-lessons > h3::before {
        left: 20px;
        width: 4px;
        height: 28px;
    }

    .lessons-list {
        padding: 20px;
        gap: 16px;
    }

    .lesson-item {
        padding: 20px;
        grid-template-columns: auto 1fr;
        gap: 16px;
    }

    .lesson-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .lesson-title {
        font-size: 16px;
    }

    .lesson-meta-wrapper {
        margin-top: 12px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .lesson-status {
        font-size: 12px;
        padding: 4px 12px;
    }

    .quiz-result-wrapper {
        grid-column: 1 / -1;
        margin-top: 16px;
        align-items: flex-start;
        flex-direction: row;
        gap: 12px;
    }

    .quiz-completed-badge {
        font-size: 14px;
        padding: 6px 12px;
    }

    .lesson-excerpt,
    .quiz-excerpt {
        grid-column: 1 / -1;
        margin-top: 12px;
        padding-top: 12px;
        font-size: 14px;
    }

    .boost-course-premium-notice {
        margin: 20px;
        padding: 20px;
    }

    .boost-course-buy-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .reset-progress-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .boost-content-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .content-nav {
        width: 100%;
        max-width: none;
    }

    .content-nav.empty-nav {
        display: none;
    }

    .prev-content, 
    .next-content, 
    .course-link {
        text-align: center;
    }

    .content-nav-title {
        white-space: normal;
    }

    .boost-quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .boost-quiz-form {
        padding: 20px;
    }

    .question-answers {
        gap: 8px;
    }

    .answer-option {
        padding: 10px 12px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 3em;
    }

    .boost-additional-content,
    .boost-associated-quiz {
        margin: 20px;
        padding: 20px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .lesson-item {
        grid-template-columns: auto 1fr auto;
    }

    .lesson-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .quiz-result-wrapper {
        margin-left: auto;
        align-self: flex-start;
    }

    .boost-content-navigation {
        gap: 12px;
    }

    .content-nav {
        max-width: 250px;
    }
}

/* Desktop Large */
@media (min-width: 1200px) {
    .boost-course-lessons {
        /*max-width: 1400px;*/
        margin: 48px auto;
    }

    .lessons-list {
        padding: 40px;
        gap: 24px;
    }

    .lesson-item {
        padding: 32px;
    }

    .lesson-item:hover {
        transform: translateY(-6px);
    }

    .lesson-number {
        width: 64px;
        height: 64px;
        font-size: 22px;
    }

    .lesson-title {
        font-size: 20px;
    }

    .boost-course-header {
        padding: 48px;
    }

    .boost-course-lessons > h3 {
        padding: 36px 40px;
        font-size: 32px;
    }
}

/* ===================================
   EFFETTI HOVER AVANZATI
   =================================== */

@media (hover: hover) {
    .lesson-item::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(74, 111, 165, 0.02) 0%, rgba(108, 142, 199, 0.02) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: var(--gc-border-radius);
    }

    .lesson-item:hover::after {
        opacity: 1;
    }

    .lesson-number {
        transition: transform 0.2s ease;
    }

    .lesson-item:hover .lesson-number {
        transform: scale(1.05);
    }
}

/* ===================================
   FOCUS STATES PER ACCESSIBILITÀ
   =================================== */

.lesson-item:focus,
.lesson-title:focus,
.boost-course-buy-button:focus,
.reset-progress-btn:focus,
.content-nav a:focus,
.answer-option:focus,
button.boost-quiz-submit:focus,
button.boost-quiz-retry:focus {
    outline: 3px solid rgba(74, 111, 165, 0.3);
    outline-offset: 2px;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .boost-course-header,
    .boost-course-premium-notice,
    .reset-progress-btn,
    .boost-content-navigation,
    .boost-quiz-actions {
        display: none;
    }

    .lesson-item,
    .boost-quiz-wrapper {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gc-gray-300);
    }

    .boost-course-lessons {
        box-shadow: none;
        border: 1px solid var(--gc-gray-300);
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* ===================================
   FIX MOBILE PER SEZIONI LEZIONI
   Add questo al CSS esistente
   =================================== */

/* ===================================
   SEZIONI LEZIONI - LAYOUT RESPONSIVO
   =================================== */

/* Container wrapper delle sezioni */
.boost-lesson-sections-wrapper {
    margin-top: 30px;
    border-top: 2px solid var(--gc-gray-200);
    padding-top: 30px;
}

/* Layout a due colonne per desktop */
.boost-lesson-sections-wrapper-content {
    display: flex;
    gap: 24px;
}

/* Navigazione laterale */
.boost-lesson-sections-nav {
    flex: 0 0 320px;
    position: sticky;
    top: 30px;
    align-self: flex-start;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: linear-gradient(135deg, var(--gc-gray-50) 0%, #ffffff 100%);
    border: 2px solid var(--gc-gray-100);
    border-radius: var(--gc-border-radius);
    padding: 20px;
    box-shadow: var(--gc-shadow);
}

.boost-lesson-sections-nav h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gc-gray-200);
    font-size: 18px;
    font-weight: 700;
    color: var(--gc-gray-900);
}

.sections-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sections-nav-list li {
    margin-bottom: 8px;
}

.section-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gc-gray-700);
    border-radius: var(--gc-border-radius-sm);
    transition: var(--gc-transition);
    background: var(--gc-gray-50);
    border: 1px solid var(--gc-gray-100);
}

.section-nav-link:hover,
.section-nav-link.active {
    background: linear-gradient(135deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
    transform: translateX(4px);
    box-shadow: var(--gc-shadow);
    color: #fff;
}

.viewed .section-nav-link:hover,
.viewed .section-nav-link.active {
    color: #333;
}

.section-nav-link.active {
    border-left: 4px solid var(--gc-accent);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gc-gray-200);
    border-radius: 50%;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gc-gray-600);
    flex-shrink: 0;
}

.section-nav-link:hover .section-number,
.section-nav-link.active .section-number {
    background: rgba(255, 255, 255, 0.2);
}

.section-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}

.section-has-video {
    margin-left: 8px;
    color: var(--gc-danger);
    flex-shrink: 0;
}

.section-nav-link:hover .section-has-video,
.section-nav-link.active .section-has-video {
    color: rgba(255, 255, 255, 0.8);
}

.section-viewed {
    margin-left: 8px;
    color: var(--gc-success);
    flex-shrink: 0;
}

.sections-nav-list li.viewed .section-number {
    background: var(--gc-success);
    color: white;
}

.sections-nav-list li.viewed .section-nav-link {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--gc-success);
}

/* Contenuto delle sezioni */
.boost-lesson-sections-content {
    flex: 1;
    min-width: 0;
}

.active-section-container {
    background: #ffffff;
    border: 2px solid var(--gc-gray-100);
    border-radius: var(--gc-border-radius);
    min-height: 400px;
    box-shadow: var(--gc-shadow);
}

.lesson-section {
    padding: 32px;
}

.lesson-section h3.section-title {
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gc-gray-100);
    font-size: 24px;
    font-weight: 700;
    color: var(--gc-gray-900);
    position: relative;
}

.lesson-section h3.section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gc-primary) 0%, var(--gc-secondary) 100%);
}

/* Container video */
.section-video {
    margin-bottom: 24px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Rapporto 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--gc-border-radius);
    box-shadow: var(--gc-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--gc-border-radius);
}

.video-container.youtube,
.video-container.vimeo {
    background: var(--gc-gray-100);
}

/* Contenuto sezione */
.section-content {
    color: var(--gc-gray-700);
    line-height: 1.7;
    font-size: 16px;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content h4 {
    color: var(--gc-gray-900);
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.section-content ul,
.section-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.section-content li {
    margin-bottom: 8px;
}

/* Loading state */
.section-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gc-gray-500);
    font-size: 16px;
}

.section-loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { 
        color: rgba(0,0,0,0); 
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0), .75em 0 0 rgba(0,0,0,0);
    }
    40% { 
        color: var(--gc-gray-500); 
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0), .75em 0 0 rgba(0,0,0,0);
    }
    60% { 
        text-shadow: .25em 0 0 var(--gc-gray-500), .5em 0 0 rgba(0,0,0,0), .75em 0 0 rgba(0,0,0,0);
    }
    80%, 100% { 
        text-shadow: .25em 0 0 var(--gc-gray-500), .5em 0 0 var(--gc-gray-500), .75em 0 0 var(--gc-gray-500);
    }
}

/* ===================================
   RESPONSIVE DESIGN MOBILE
   =================================== */

/* Mobile: Layout verticale */
@media screen and (max-width: 768px) {
    .boost-lesson-sections-wrapper-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .boost-lesson-sections-nav {
        flex: none;
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
        padding: 16px;
    }
    
    .boost-lesson-sections-nav h3 {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
    
    .section-nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .section-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .section-title {
        font-size: 13px;
    }
    
    .boost-lesson-sections-content {
        width: 100%;
    }
    
    .active-section-container {
        min-height: 300px;
    }
    
    .lesson-section {
        padding: 20px;
    }
    
    .lesson-section h3.section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .section-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .video-container {
        margin-bottom: 20px;
    }
    
    .section-loading {
        padding: 40px 20px;
        font-size: 14px;
    }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .boost-lesson-sections-nav {
        flex: 0 0 280px;
        padding: 18px;
    }
    
    .boost-lesson-sections-nav h3 {
        font-size: 16px;
    }
    
    .section-nav-link {
        padding: 10px 14px;
    }
    
    .section-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 13px;
    }
    
    .lesson-section {
        padding: 28px;
    }
    
    .lesson-section h3.section-title {
        font-size: 22px;
    }
}

/* Desktop large */
@media screen and (min-width: 1200px) {
    .boost-lesson-sections-nav {
        flex: 0 0 360px;
        padding: 24px;
    }
    
    .boost-lesson-sections-nav h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .section-nav-link {
        padding: 14px 18px;
        margin-bottom: 6px;
    }
    
    .section-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 16px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .lesson-section {
        padding: 40px;
    }
    
    .lesson-section h3.section-title {
        font-size: 28px;
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .section-content {
        font-size: 17px;
        line-height: 1.8;
    }
}

/* ===================================
   MOBILE SPECIFIC IMPROVEMENTS
   =================================== */

@media screen and (max-width: 768px) {
    /* Migliora la gestione touch */
    .section-nav-link {
        min-height: 44px; /* Touch target minimum */
        touch-action: manipulation;
    }
    
    /* Scroll behaviour migliorato */
    .boost-lesson-sections-nav {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Riduci lo spazio per più contenuto */
    .boost-lesson-sections-wrapper {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    /* Ottimizza i video per mobile */
    .video-container {
        border-radius: var(--gc-border-radius-sm);
    }
    
    /* Menu sezioni compatto */
    .sections-nav-list li {
        margin-bottom: 4px;
    }
    
    /* Testo più leggibile */
    .section-content {
        font-size: 16px; /* Mantieni leggibile su mobile */
    }
    
    .section-content p {
        margin-bottom: 20px; /* Più spazio tra paragrafi */
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Focus states migliorati */
.section-nav-link:focus {
    outline: 3px solid rgba(74, 111, 165, 0.5);
    outline-offset: 2px;
}

/* Indicate current section for screen readers */
.section-nav-link.active::before {
    content: "Sezione corrente: ";
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section-nav-link {
        border: 2px solid;
    }
    
    .section-nav-link:hover,
    .section-nav-link.active {
        border-color: currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .section-nav-link,
    .section-loading::after {
        transition: none;
        animation: none;
    }
}