/* ================================================
   LESSON ANIMATED DEMOS — CSS
   ================================================ */

.lm-demo {
    width: 100%;
    height: 240px;
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-demo canvas { display: block; }

/* ── DEMO LABEL ── */
.demo-label {
    position: absolute;
    top: 0.7rem; left: 0.9rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
}
.demo-label-icon { color: var(--primary-color); margin-right: 0.3rem; }

/* ── BREATHING DEMO ── */
.breathing-demo {
    flex-direction: column;
    gap: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(0,255,136,0.08) 0%, transparent 70%);
}
.bd-text {
    position: absolute;
    bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-green);
    letter-spacing: 0.05em;
    transition: opacity 0.5s ease;
}

/* ── PITCH DEMO ── */
.pitch-demo {
    flex-direction: column;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,210,255,0.08) 0%, transparent 70%);
}

/* ── SCALE DEMO ── */
.scale-demo {
    flex-direction: column;
    gap: 1rem;
    background: radial-gradient(ellipse at 50% 80%, rgba(246,211,101,0.08) 0%, transparent 70%);
}
.sd-keys {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}
.sd-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}
.sd-key-body {
    width: 34px;
    height: 80px;
    background: linear-gradient(180deg, #ddd 0%, #fff 100%);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 -2px 4px rgba(0,0,0,0.1);
    transition: background 0.12s ease, transform 0.12s ease;
}
.sd-key.active .sd-key-body {
    background: linear-gradient(180deg, var(--primary-color), #6a00f0) !important;
    transform: translateY(3px);
    box-shadow: 0 2px 20px rgba(138,43,226,0.6);
}
.sd-key-label { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); }
.sd-key-sol { font-size: 0.62rem; color: rgba(255,255,255,0.4); }
.sd-status { font-size: 1rem; font-weight: 700; color: white; height: 1.4rem; }

/* ── VOWEL DEMO ── */
.vowel-demo {
    background: radial-gradient(ellipse at 50% 80%, rgba(248,32,176,0.1) 0%, transparent 70%);
    flex-direction: column;
    gap: 1rem;
}
.vd-mouth-wrap { position: relative; }
.vd-current { font-size: 1rem; font-weight: 800; letter-spacing: 0.1em; }
.vd-current span { transition: color 0.3s; }
.vd-current span.active-vowel { color: var(--accent-pink); font-size: 1.4em; }
.vd-desc { font-size: 0.82rem; color: var(--text-muted); height: 1.2rem; text-align: center; }

/* ── HEAD/CHEST DEMO ── */
.hc-demo {
    background: linear-gradient(180deg, rgba(138,43,226,0.1) 0%, rgba(248,32,176,0.1) 100%);
    flex-direction: column;
    position: relative;
}
.hc-zone {
    position: absolute;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    transition: opacity 0.6s ease;
}
.hc-head-zone { top: 0; height: 45%; background: rgba(138,43,226,0.12); color: rgba(138,43,226,0.8); }
.hc-chest-zone { bottom: 0; height: 45%; background: rgba(248,32,176,0.12); color: rgba(248,32,176,0.8); }
.hc-divider {
    position: absolute;
    left: 5%; right: 5%;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,0.15);
}
.hc-ball {
    position: absolute;
    width: 22px; height: 22px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px currentColor;
    transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease, color 0.5s ease;
}
.hc-label {
    position: absolute;
    right: 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.5s ease;
}

/* ── PENTATONIC DEMO ── */
.penta-demo {
    flex-direction: column;
    gap: 0.8rem;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,255,136,0.06) 0%, transparent 70%);
}
.penta-staff { position: relative; width: 340px; height: 60px; }
.penta-line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.15); }
.penta-note {
    position: absolute;
    width: 18px; height: 14px;
    background: white;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-15deg);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.penta-note.lit {
    background: var(--accent-green);
    box-shadow: 0 0 12px var(--accent-green);
    transform: rotate(-15deg) scale(1.2);
}
.penta-labels { display: flex; gap: 0; width: 340px; justify-content: space-around; }
.penta-note-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); transition: color 0.2s; }
.penta-note-label.lit { color: var(--accent-green); }

/* ── WALK DEMO ── */
.walk-demo {
    background: radial-gradient(ellipse at 50% 100%, rgba(138,43,226,0.1) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}
.walk-stage-line {
    position: absolute;
    bottom: 50px;
    left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.12);
}
.walk-spotlight {
    position: absolute;
    bottom: 52px;
    width: 80px;
    height: 160px;
    background: radial-gradient(ellipse at 50% 100%, rgba(255,220,100,0.18) 0%, transparent 70%);
    pointer-events: none;
    transition: left 0.05s linear;
}
.walk-figure {
    position: absolute;
    bottom: 52px;
    transition: left 4s linear;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── EYE CONTACT DEMO ── */
.eye-demo {
    flex-direction: column;
    gap: 0.8rem;
    background: radial-gradient(ellipse at 50% 40%, rgba(248,32,176,0.1) 0%, transparent 70%);
}
.eye-pair { display: flex; gap: 1.5rem; }
.eye-svg-eye { overflow: visible; }
.eye-bar-wrap { display: flex; align-items: center; gap: 0.8rem; width: 260px; }
.eye-bar-label { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; width: 90px; text-align: right; }
.eye-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.eye-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.eye-status { font-size: 0.85rem; font-weight: 700; height: 1.3rem; }
