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

/* VexTab editor (hidden) */
.editor { height: 0 !important; width: 0 !important; }

/* ============================================
   ANSWER GRID - Responsive layout
   ============================================ */

.answer-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* Desktop/Mobile layout wrappers */
.note-buttons-desktop {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-buttons-mobile {
    display: none;
    flex-direction: column;
    gap: 6px;
}

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

.answer-row.note-row .pills {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.answer-row.note-row.last-row {
    justify-content: center;
}

.pill {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 48px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: var(--card);
}

.pill:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

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

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

/* Note colors - bordered style based on note letter */
/* C notes - Blue */
.answer-row.note-row .pill[data-note^="C"] {
    border-color: #60a5fa;
    color: #2563eb;
}
.answer-row.note-row .pill[data-note^="C"]:hover:not(:disabled) {
    background: #dbeafe;
}

/* D notes - Gray */
.answer-row.note-row .pill[data-note^="D"] {
    border-color: #9ca3af;
    color: #4b5563;
}
.answer-row.note-row .pill[data-note^="D"]:hover:not(:disabled) {
    background: #f3f4f6;
}

/* E notes - Green */
.answer-row.note-row .pill[data-note^="E"] {
    border-color: #34d399;
    color: #059669;
}
.answer-row.note-row .pill[data-note^="E"]:hover:not(:disabled) {
    background: #d1fae5;
}

/* F notes - Red */
.answer-row.note-row .pill[data-note^="F"] {
    border-color: #f87171;
    color: #dc2626;
}
.answer-row.note-row .pill[data-note^="F"]:hover:not(:disabled) {
    background: #fee2e2;
}

/* G notes - Yellow/Orange */
.answer-row.note-row .pill[data-note^="G"] {
    border-color: #fbbf24;
    color: #d97706;
}
.answer-row.note-row .pill[data-note^="G"]:hover:not(:disabled) {
    background: #fef3c7;
}

/* A notes - Dark Gray */
.answer-row.note-row .pill[data-note^="A"] {
    border-color: #6b7280;
    color: #374151;
}
.answer-row.note-row .pill[data-note^="A"]:hover:not(:disabled) {
    background: #f3f4f6;
}

/* B notes - Teal */
.answer-row.note-row .pill[data-note^="B"] {
    border-color: #2dd4bf;
    color: #0d9488;
}
.answer-row.note-row .pill[data-note^="B"]:hover:not(:disabled) {
    background: #ccfbf1;
}

/* Correct/Incorrect states */
.pill.correct {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #15803d !important;
    color: white !important;
}

.pill.incorrect {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #b91c1c !important;
    color: white !important;
}

/* Dark mode adjustments */
body.dark-mode .pill {
    background: var(--bg);
}

body.dark-mode .pill:hover:not(:disabled) {
    background: var(--card);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile: switch to 4-row layout */
@media (max-width: 600px) {
    .note-buttons-desktop {
        display: none;
    }

    .note-buttons-mobile {
        display: flex;
    }

    .answer-row.note-row .pill {
        min-width: 44px;
        padding: 10px 6px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .flashcard {
        height: 190px;
    }
}

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