/* ============================================
   SOLFEGE APP - APP SPECIFIC CSS
   Only styles unique to this app
   Common styles moved to shared.css
   ============================================ */

/* Settings Panel */
.settings-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 12px;
    padding: 16px 20px;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.setting-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.setting-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.setting-btn:hover {
    color: var(--text);
    background: var(--card);
}

.setting-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}

/* Flashcard container override - taller for this app */
.flashcard-container {
    min-height: 280px;
}

.flashcard {
    height: 280px;
}

/* Key display badge - unique to solfege app */
.key-display {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

/* VexFlow Notation Container - specific width for solfege */
.notation-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.notation-container svg {
    max-width: 100%;
    height: auto;
}

body.dark-mode .notation-container svg {
    filter: invert(1) hue-rotate(180deg);
}

.answer-reveal {
    font-size: 64px;
    font-weight: 900;
    color: #6366f1;
    margin-bottom: 8px;
    text-align: center;
    text-transform: capitalize;
}

.answer-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Answer layout - custom for solfege */
.answer-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.answer-row {
    display: flex;
    justify-content: center;
}

.pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pill base styling - app-specific with chromatic color coding */
.pill {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 54px;
    text-align: center;
    text-transform: capitalize;
    position: relative;
}

.pill:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pill:active:not(:disabled) {
    transform: scale(0.96);
}

.pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CHROMATIC SPECTRUM COLORS
   Natural notes = solid colors
   Raised = lighter tint (sharps)
   Lowered = darker shade (flats)
   ============================================ */

/* Degree 1: Do family - Red */
.pill[data-degree="1"].natural {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #b91c1c;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.pill[data-degree="1"].raised {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    border-color: #ef4444;
    color: #7f1d1d;
}

/* Degree 2: Re family - Orange */
.pill[data-degree="2"].natural {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #c2410c;
    color: white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}
.pill[data-degree="2"].lowered {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #f97316;
    color: #7c2d12;
}
.pill[data-degree="2"].raised {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #f97316;
    color: #7c2d12;
}

/* Degree 3: Mi family - Yellow/Gold */
.pill[data-degree="3"].natural {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    border-color: #a16207;
    color: white;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.3);
}
.pill[data-degree="3"].lowered {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    border-color: #eab308;
    color: #713f12;
}

/* Degree 4: Fa family - Green */
.pill[data-degree="4"].natural {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #15803d;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.pill[data-degree="4"].raised {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    border-color: #22c55e;
    color: #14532d;
}

/* Degree 5: Sol family - Teal */
.pill[data-degree="5"].natural {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-color: #0f766e;
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}
.pill[data-degree="5"].lowered {
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
    border-color: #14b8a6;
    color: #134e4a;
}
.pill[data-degree="5"].raised {
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
    border-color: #14b8a6;
    color: #134e4a;
}

/* Degree 6: La family - Blue */
.pill[data-degree="6"].natural {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #1d4ed8;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.pill[data-degree="6"].lowered {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: #3b82f6;
    color: #1e3a8a;
}
.pill[data-degree="6"].raised {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: #3b82f6;
    color: #1e3a8a;
}

/* Degree 7: Ti family - Purple */
.pill[data-degree="7"].natural {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: #6d28d9;
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}
.pill[data-degree="7"].lowered {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    border-color: #8b5cf6;
    color: #4c1d95;
}

/* Dark mode adjustments */
body.dark-mode .pill.natural {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .pill.lowered,
body.dark-mode .pill.raised {
    background: var(--bg);
}

/* Diatonic row - evenly spaced */
.diatonic-row .pills {
    gap: 8px;
}

.diatonic-row .pill {
    min-width: 64px;
}

/* Chromatic rows - tighter grouping */
.chromatic-row .pills {
    gap: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .setting-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .setting-toggle {
        width: 100%;
        justify-content: center;
    }

    .flashcard-container {
        min-height: 260px;
    }

    .flashcard {
        height: 260px;
    }

    .notation-container {
        max-width: 300px;
    }

    .answer-reveal {
        font-size: 48px;
    }

    .pill {
        padding: 12px 12px;
        font-size: 13px;
        min-width: 46px;
    }

    .diatonic-row .pill {
        min-width: 52px;
    }

    .key-display {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .flashcard-container {
        min-height: 240px;
    }

    .flashcard {
        height: 240px;
    }

    .notation-container {
        max-width: 260px;
    }

    .answer-reveal {
        font-size: 40px;
    }

    .pill {
        padding: 10px 10px;
        font-size: 12px;
        min-width: 42px;
        border-radius: 10px;
    }

    .diatonic-row .pill {
        min-width: 46px;
    }

    .chromatic-row .pills {
        gap: 3px;
    }
}
