/* Hebrew Quiz - Custom Styles */

/* ============================================================
   PROJECT VARIABLES
   ============================================================ */

:root {
    /* Brand colors */
    --app-primary-color: #2196F3;
    --app-accent-color: #652b76;

    /* Hebrew Quiz specific */
    --hebrew-question-color: #652b76;
    --russian-text-color: #722e0b;

    /* UI element colors */
    --custom-btn-bg-color: #e9ecef;
}

:root, [data-bs-theme=light] {
    --navbar-bg: #6c757d;
}

[data-bs-theme=dark] {
    --navbar-bg: #343a40;
    --hebrew-question-color: #b794c9;
    --russian-text-color: #e9a87c;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar-gray {
    background-color: var(--navbar-bg, #6c757d) !important;
}

.navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-logo svg {
    width: 32px;
    height: 32px;
}

.logo-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #2196F3;
    text-align: center;
    line-height: 32px;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

/* Hebrew text styling */
.hebrew-text, .hebrew {
    font-size: 1.3em;
    font-weight: 500;
    direction: rtl;
}

/* Question text */
.question-text {
    font-size: 1.75rem;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--hebrew-question-color, #652b76);
}

/* Answer buttons */
.answer-btn {
    min-height: 44px;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.answer-btn.hebrew-answer,
.hebrew-answer {
    direction: rtl;
    unicode-bidi: isolate;
}

.answer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.answer-btn:disabled {
    cursor: not-allowed;
}

.answer-text {
    font-size: 1.3em;
    font-weight: 500;
}

.russian {
    font-size: 0.8em;
    color: var(--russian-text-color, #722e0b);
}

/* Card shadows */
.card {
    border: none;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Hint button */
#hint-button {
    font-size: 0.85rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#hint-button:hover {
    opacity: 1;
}

#hint-button.active {
    opacity: 1;
}

/* Speak button */
.speak-btn {
    padding: 0.3rem 0.5rem;
    font-size: 1rem;
}

.speak-btn.playing {
    animation: pulse 0.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Answer button with speak */
.answer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.answer-btn .speak-btn {
    flex-shrink: 0;
}

/* Answer hint (transliteration under answer) */
.answer-hint {
    display: none;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    direction: ltr;
}

.answer-hint.visible {
    display: block;
}

/* Audio mode - question icon styling */
.question-text i.bi-volume-up-fill {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.question-text i.bi-volume-up-fill:hover {
    transform: scale(1.1);
    color: #0056b3;
}
