/* ================================================
   EDUCATOR MODULE — Additional Styles
   ================================================ */

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.breadcrumb-link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.breadcrumb-link:hover { color: var(--text-main); }
.breadcrumb-sep { font-size: 0.7rem; }
.breadcrumb-cur { color: var(--text-main); font-weight: 600; }

/* MIC STATUS PILL */
.mic-pill {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}
.mic-off {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}
.mic-on {
    background: rgba(0,255,136,0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0,255,136,0.3);
    animation: pulse-mic 2s infinite;
}
@keyframes pulse-mic {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.3); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

/* MODULE TABS */
.module-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0;
}
.tab-btn {
    padding: 0.8rem 1.4rem;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.03); }
.tab-btn.active {
    color: var(--text-main);
    border-bottom-color: var(--primary-color);
    background: rgba(138, 43, 226, 0.08);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.5s ease forwards; }

/* PITCH ARENA */
.pitch-arena {
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 2rem;
    align-items: start;
    min-height: 420px;
}

/* Left Panel */
.pitch-arena-left { display: flex; flex-direction: column; gap: 1.5rem; }
.current-note-wrapper { text-align: center; }
.cn-label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 2px; }
.cn-note {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-green);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transition: all 0.1s;
}
.cn-note.flat { color: var(--accent-pink); text-shadow: 0 0 30px rgba(248, 32, 176, 0.5); }
.cn-note.sharp { color: var(--accent-blue); text-shadow: 0 0 30px rgba(0, 210, 255, 0.5); }
.cn-octave {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}
.cn-details { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.freq-display { text-align: center; }
.freq-val { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; }
.freq-unit { font-size: 0.8rem; color: var(--text-muted); margin-left: 0.2rem; }

/* Accuracy Ring */
.accuracy-ring {
    position: relative;
    width: 90px;
    height: 90px;
}
.ring-svg { transform: rotate(-90deg); }
.ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 3;
    stroke-dasharray: 100, 100;
}
.ring-fill {
    fill: none;
    stroke: var(--accent-green);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease, stroke 0.3s;
}
.ring-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}
.ring-text small { font-size: 0.65rem; color: var(--text-muted); font-family: var(--font-body); }

/* Main Pitch Arena */
.pitch-arena-main { display: flex; flex-direction: column; gap: 1.5rem; }

/* Large Meter */
.pitch-meter-large {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0,0,0,0.3);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
}
.meter-zone {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}
.flat-zone { background: rgba(248,32,176,0.15); color: var(--accent-pink); }
.sharp-zone { background: rgba(0,210,255,0.15); color: var(--accent-blue); }
.meter-center-zone {
    flex: 1;
    position: relative;
    background: linear-gradient(to right, rgba(248,32,176,0.3), rgba(0,255,136,0.4) 50%, rgba(0,210,255,0.3));
    border-radius: 6px;
    height: 24px;
    overflow: visible;
}
.meter-target-line {
    position: absolute;
    left: 50%; top: -4px; bottom: -4px;
    width: 2px;
    background: white;
    transform: translateX(-50%);
    opacity: 0.5;
}
.meter-needle {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 36px;
    background: white;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.08s ease;
    box-shadow: 0 0 10px white;
}
.meter-labels {
    position: absolute;
    bottom: -22px;
    left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Waveform */
.waveform-canvas {
    width: 100%;
    border-radius: var(--border-radius-sm);
    background: rgba(0,0,0,0.3);
}

/* Solfège Scale */
.solfege-scale { margin-top: 0.8rem; }
.scale-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.scale-notes {
    display: flex;
    gap: 0.4rem;
}
.scale-note {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    text-align: center;
    padding: 0.4rem 0.2rem;
    transition: all 0.15s;
    cursor: pointer;
}
.scale-note:hover { background: rgba(255,255,255,0.08); }
.scale-note.active-note {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}
.sol-name { display: block; font-size: 0.65rem; color: var(--text-muted); }
.note-name { display: block; font-size: 0.75rem; font-weight: 700; }

/* Right Panel */
.pitch-arena-right { display: flex; flex-direction: column; gap: 1rem; }
.session-stats { background: rgba(0,0,0,0.2); border-radius: var(--border-radius-sm); padding: 1rem; }
.stats-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stat-item:last-child { border-bottom: none; }
.stat-item i { color: var(--primary-color); width: 20px; text-align: center; }
.stat-val { display: block; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }

/* ================================================
   BIO-PIANO
   ================================================ */
.piano-module {
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}
.piano-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.piano-title { font-size: 1.5rem; }
.piano-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.3rem; }
.piano-controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.toggle-label { font-size: 0.85rem; color: var(--text-muted); }

/* Toggle Switch */
.toggle-switch {
    width: 44px; height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle-switch.active { background: var(--primary-color); }
.toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toggle-switch.active .toggle-knob { left: 23px; }

/* Piano Keyboard */
.piano-wrapper {
    position: relative;
    overflow-x: auto;
    padding-bottom: 1rem;
    user-select: none;
}
.piano-keys {
    display: flex;
    position: relative;
    height: 180px;
}
.key-white {
    position: relative;
    width: 44px;
    height: 180px;
    background: linear-gradient(to bottom, #e8e8e8, #ffffff);
    border: 1px solid #bbb;
    border-top: none;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    transition: background 0.05s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 8px;
    box-shadow: inset 0 -4px 8px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1;
    flex-shrink: 0;
}
.key-white:hover, .key-white.active {
    background: linear-gradient(to bottom, rgba(138,43,226,0.3), rgba(138,43,226,0.5));
}
.key-white.active {
    box-shadow: 0 0 15px var(--primary-glow), inset 0 -4px 8px rgba(0,0,0,0.1);
}
.key-black {
    position: absolute;
    width: 28px;
    height: 110px;
    background: linear-gradient(to bottom, #2a2a2a, #111);
    border-radius: 0 0 5px 5px;
    cursor: pointer;
    transition: background 0.05s;
    z-index: 2;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 5px;
}
.key-black:hover, .key-black.active {
    background: linear-gradient(to bottom, #4a2a7a, #3a1a5a);
}
.key-black.active {
    box-shadow: 0 0 15px var(--primary-glow);
}
.key-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(0,0,0,0.5);
    font-family: var(--font-heading);
}
.key-label.solfege { font-size: 0.55rem; color: rgba(0,0,0,0.4); }
.key-label.black-label { color: rgba(255,255,255,0.4); font-size: 0.55rem; }
.piano-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.piano-info-item { display: flex; align-items: center; gap: 0.5rem; }
.piano-active-note { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--accent-green); }

/* ================================================
   CURRICULUM
   ================================================ */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.grade-card {
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease both;
}

.grade-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.grade-badge {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.grade-1 { background: var(--grad-visual); color: #000; }
.grade-2 { background: var(--grad-edu); color: #000; }
.grade-3 { background: var(--grad-prod); color: white; }
.grade-4 { background: var(--grad-create); color: #000; }
.grade-soon-badge { background: var(--grad-primary); color: white; font-size: 1rem; }

.grade-info h3 { font-size: 1.1rem; }
.grade-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; display: flex; align-items: center; gap: 0.3rem; }

.lesson-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.lesson {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lesson.done { color: var(--text-muted); }
.lesson.done i { color: var(--accent-green); }
.lesson.locked { color: rgba(255,255,255,0.2); }
.lesson.active-lesson { color: white; font-weight: 600; }
.grade-footer { margin-top: 0.5rem; }

.grade-locked { opacity: 0.6; }

.grade1-fill { background: var(--grad-visual); }
.grade2-fill { background: var(--grad-edu); }

.delay-5 { animation-delay: 0.5s; opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* TOAST */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(18,20,28,0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 1rem 2rem;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Misc */
.locked-nav .nav-link { opacity: 0.5; }
.locked-nav .nav-link:hover { opacity: 0.7; }
