/* ============================================
   TRITONE SUBSTITUTION FLASHCARDS - APP SPECIFIC CSS
   Only styles unique to this app
   Common styles are in flashcard-common.css
   ============================================ */

/* Progression Display */
.progression-display {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 16px;
}

.chord-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.chord-function-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.chord {
    font-size: 32px;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 12px;
    min-width: 90px;
    text-align: center;
}

.chord.ii {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #3b82f6;
    transition: all 0.3s ease;
}

.chord.v7 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #f59e0b;
    transition: all 0.3s ease;
}

.chord.i {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #10b981;
}

/* Highlighted state for the chord being asked about */
.chord.ii.highlighted {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: scale(1.1);
}

.chord.v7.highlighted {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    transform: scale(1.1);
}

body.dark-mode .chord.ii {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    color: #93c5fd;
    border-color: #3b82f6;
}

body.dark-mode .chord.v7 {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fcd34d;
    border-color: #f59e0b;
}

body.dark-mode .chord.i {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #6ee7b7;
    border-color: #10b981;
}

/* Dynamic highlight color based on chord type */
.highlight-v7 {
    font-weight: 800;
    color: var(--primary);
}

.highlight-v7.ii-color {
    color: #3b82f6;
}

.highlight-v7.v7-color {
    color: #f59e0b;
}

body.dark-mode .highlight-v7.ii-color {
    color: #93c5fd;
}

body.dark-mode .highlight-v7.v7-color {
    color: #fcd34d;
}

/* Answer reveal alt text (unique to tritone app - shows both spellings) */
.answer-alt {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

/* Flashcard height - needs more space for chord boxes */
.flashcard {
    height: 220px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .progression-display {
        gap: 12px;
    }

    .chord {
        font-size: 24px;
        padding: 10px 14px;
        min-width: 70px;
    }

    .chord.highlighted {
        transform: scale(1.05);
    }

    .flashcard {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .progression-display {
        gap: 8px;
    }

    .chord {
        font-size: 20px;
        padding: 8px 12px;
        min-width: 60px;
    }

    .flashcard {
        height: 200px;
    }
}
