/* ═══════════════════════════════════════════════════════════
   LESSON TAB — Stitch Design (Coby Care Reference)
   Editorial header, progress card, module cards
   ═══════════════════════════════════════════════════════════ */

/* ── Material Symbols base ── */
#tabLearn .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Hero Banner (matches exercise tab) ── */
.ln-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #1E8F85, #2DA89B);
    padding: 28px 24px;
    color: #fff;
    margin-bottom: 28px;
}
.ln-hero-content {
    position: relative;
    z-index: 2;
}
.ln-hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 6px;
}
.ln-hero-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.ln-hero-badges {
    display: flex;
    gap: 8px;
}
.ln-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.ln-hero-blur {
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    filter: blur(50px);
}

/* ── Featured Progress Card ── */
.ln-progress-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: 0 24px 48px rgba(26,28,27,0.04);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}
.ln-progress-card:active {
    transform: scale(0.98);
}
[data-theme="dark"] .ln-progress-card {
    background: var(--ap-surface-1);
}
.ln-progress-card-inner {
    position: relative;
    z-index: 2;
}
.ln-progress-label {
    font-size: 14px;
    font-weight: 700;
    color: #2DA89B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.ln-progress-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ap-text, #1a1c1b);
    margin-bottom: 20px;
}
.ln-progress-bar-track {
    height: 6px;
    background: #f4f4f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}
[data-theme="dark"] .ln-progress-bar-track {
    background: var(--ap-surface-2, #333);
}
.ln-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2DA89B, #0a9ea2);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.ln-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ln-progress-pct {
    font-size: 15px;
    font-weight: 600;
    color: var(--ap-text-muted, #6e7979);
}
.ln-continue-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2DA89B;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ln-continue-btn:hover {
    opacity: 0.9;
}
.ln-progress-deco {
    position: absolute;
    top: -48px; right: -48px;
    width: 180px; height: 180px;
    background: rgba(13,115,119,0.04);
    border-radius: 50%;
    filter: blur(40px);
}

/* ── Group Section ── */
.ln-group {
    margin-bottom: 24px;
}
.ln-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ln-group-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ln-group-icon {
    font-size: 18px !important;
    color: #2DA89B;
}
.ln-group-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--ap-text, #1a1c1b);
    letter-spacing: -0.3px;
}
.ln-group-desc {
    font-size: 14px;
    color: var(--ap-text-muted, #6e7979);
}
.ln-group-count {
    font-size: 14px;
    color: var(--ap-text-muted, #6e7979);
}

/* ── Module Card ── */
.ln-mod-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
}
.ln-mod-card:active {
    transform: scale(0.98);
    background: #f4f4f1;
}
[data-theme="dark"] .ln-mod-card {
    background: var(--ap-surface-1);
}
.ln-mod-locked {
    opacity: 0.45;
}
.ln-mod-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: #f4f4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
[data-theme="dark"] .ln-mod-icon {
    background: var(--ap-surface-2, #333);
}
.ln-mod-info {
    flex: 1;
    min-width: 0;
}
.ln-mod-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ap-text, #1a1c1b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ln-mod-subtitle {
    font-size: 14px;
    color: var(--ap-text-muted, #6e7979);
    margin-top: 3px;
}

/* ── Status Badges ── */
.ln-status-badge {
    font-size: 15px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
    white-space: nowrap;
}
.ln-status-new {
    color: #fff;
    background: #2DA89B;
}
.ln-status-premium {
    color: #fff;
    background: linear-gradient(135deg, #2DA89B, #0a5e61);
}
.ln-status-locked {
    color: var(--ap-text-muted, #6e7979);
    background: #f4f4f1;
}
.ln-status-review {
    color: #2DA89B;
    background: rgba(13,115,119,0.08);
}
.ln-status-done {
    font-size: 20px !important;
    color: #2DA89B;
}

/* ── Group-specific icon colors ── */
.ln-group:nth-child(1) .ln-group-icon { color: #2DA89B; } /* Phase */
.ln-group:nth-child(2) .ln-group-icon { color: #C53D3D; } /* Safety */
.ln-group:nth-child(3) .ln-group-icon { color: #D4841C; } /* Lifestyle */
.ln-group:nth-child(4) .ln-group-icon { color: #3b82f6; } /* Exercise */
.ln-group:nth-child(5) .ln-group-icon { color: #4DB8A4; } /* Return */
.ln-group:nth-child(6) .ln-group-icon { color: #8b5cf6; } /* Mental */
.ln-group:nth-child(7) .ln-group-icon { color: #6e7979; } /* Library */

/* ── Stagger Animation ── */
#tabLearn .ln-hero,
#tabLearn .ln-progress-card,
#tabLearn .ln-group {
    opacity: 0;
    transform: translateY(16px);
    animation: lnStagger 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#tabLearn .ln-hero { animation-delay: 0ms; }
#tabLearn .ln-progress-card { animation-delay: 80ms; }
#tabLearn .ln-group:nth-child(1) { animation-delay: 120ms; }
#tabLearn .ln-group:nth-child(2) { animation-delay: 180ms; }
#tabLearn .ln-group:nth-child(3) { animation-delay: 240ms; }
#tabLearn .ln-group:nth-child(4) { animation-delay: 300ms; }
#tabLearn .ln-group:nth-child(5) { animation-delay: 360ms; }
#tabLearn .ln-group:nth-child(6) { animation-delay: 420ms; }
#tabLearn .ln-group:nth-child(7) { animation-delay: 480ms; }

@keyframes lnStagger {
    to { opacity: 1; transform: translateY(0); }
}
