/* Global theme overrides */
:root { --bs-primary-rgb: 8, 99, 212; }


/* Global base body styles */
body { background-color: var(--bs-body-bg); font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif; }

/* INGLESyLATINOS — Shared Styles (static-only)
   Factors common typography, accessibility, and small UX helpers across ES/EN sections.
*/
/* Header branding */
.navbar-brand strong { font-weight: 800; letter-spacing: .2px; }

/* Home hero section */
.hero { padding: 6rem 1rem; background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%); }
.hero h1 { font-weight: 800; letter-spacing: -0.04em; font-size: calc(1.5rem + 2.5vw); max-width: 20ch; margin: 0 auto; }
.hero .lead { font-size: 1.2rem; max-width: 62ch; margin: 1rem auto 2rem; }

/* Feature icon pill */
.feature-icon { display:inline-flex; align-items:center; justify-content:center; width:3rem; height:3rem; font-size:1.5rem; color:#fff; background-color:var(--bs-primary); border-radius:.75rem; }

/* Home helpers */
.testimonial-card { background-color: #fff; }
footer { background-color: #fff; }
/* Brand logo icon sizes */
.brand-logo { font-size: 1.75rem; }
.brand-logo-sm { font-size: 1.5rem; }



/* Accessibility */

/* Progress helpers */
.progress-thin { height: 8px; }
.progress-bar-0 { width: 0%; }

/* Spinner sizes */
.spinner-lg { width: 4rem; height: 4rem; }

.btn:focus-visible, .form-select:focus-visible, .form-control:focus-visible {
  outline: 3px solid var(--bs-primary);
  outline-offset: 2px;
}

/* Cards/inputs consistency with Morph */
.card, .modal-content { box-shadow: var(--bs-box-shadow); border: none; }
.form-select, .form-control { box-shadow: var(--bs-box-shadow-inset) !important; }


/* Unified custom card used on home pages */
.custom-card { border: 1px solid #e9ecef; border-radius: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,.05); transition: transform .2s ease-in-out, box-shadow .2s ease-in-out; }
.custom-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.1); }

/* Toast placement */
.toast-container { position: fixed; bottom: 1rem; right: 1rem; z-index: 10000; }

/* Progress look */
.progress { box-shadow: var(--bs-box-shadow-inset); height: 10px; }

/* Subtle animation helper */
.iyl-fade-in { animation: iylFadeIn .35s ease-in-out; }
@keyframes iylFadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity:1; transform:none; } }

/* Phonetic-first hierarchy for phrase blocks
   - Phonetic: always primary (largest, bold, primary color)
   - Original: medium, semi-bold
   - Translation: smaller, lighter, muted
   These rules use html[lang] to infer which language is the original text.
*/
.phrase-phonetic { font-size: 2.25rem; font-weight: 800; color: var(--bs-primary); line-height: 1.2; margin: .5rem 0; }

/* For ES pages (learning English): original is EN, translation is ES */
html[lang="es"] .phrase-english { font-size: 1.5rem; font-weight: 700; color: var(--bs-body-color); }
html[lang="es"] .phrase-spanish { font-size: 1.1rem; font-weight: 500; color: var(--bs-secondary-color); font-style: italic; }

/* For EN pages (learning Spanish): original is ES, translation is EN */
html[lang="en"] .phrase-spanish { font-size: 1.5rem; font-weight: 700; color: var(--bs-body-color); }
html[lang="en"] .phrase-english { font-size: 1.1rem; font-weight: 500; color: var(--bs-secondary-color); font-style: italic; }

/* Quiz view states — typography hierarchy by view type */
#quiz-container.view-phonetic #question-text { font-size: 2rem; font-weight: 800; color: var(--bs-primary); }
#quiz-container.view-english  #question-text { font-size: 1.5rem; font-weight: 700; color: var(--bs-body-color); }
#quiz-container.view-spanish  #question-text { font-size: 1.1rem; font-weight: 500; color: var(--bs-secondary-color); }
#quiz-container.view-phonetic .answer-text-btn { font-size: 1.15rem; font-weight: 800; color: var(--bs-primary); }
#quiz-container.view-english  .answer-text-btn { font-size: 1rem;   font-weight: 700; }
#quiz-container.view-spanish  .answer-text-btn { font-size: 0.95rem; font-weight: 500; color: var(--bs-secondary-color); }



/* Quiz answer feedback (shared) */
.answer-text-btn.disabled { opacity: 1; }
.answer-text-btn.correct-answer { background-color: var(--bs-success) !important; color: white !important; border-color: var(--bs-success) !important; box-shadow: var(--bs-box-shadow-inset) !important; }
.answer-text-btn.wrong-answer { background-color: var(--bs-danger) !important; color: white !important; border-color: var(--bs-danger) !important; box-shadow: var(--bs-box-shadow-inset) !important; }

/* Minor Bootstrap tweak shared */
.accordion-button:not(.collapsed) { background-color: var(--bs-primary-bg-subtle); }


/* Quiz shared utilities */
/* Overlay spinner */
.spinner-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(217, 227, 241, 0.7); z-index: 9999; display: none; align-items: center; justify-content: center; }

/* Answer row layout and audio button */
.answer-row { display: flex; align-items: center; gap: 0.75rem; }
.answer-text-btn { flex-grow: 1; text-align: left; }
.btn-audio { flex-shrink: 0; width: 45px; height: 45px; border-radius: 50% !important; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* Question text visibility handling */
#question-text { transition: color 0.3s ease-in-out; min-height: 3rem; }
#question-text.hidden-text { color: transparent; user-select: none; }

@media (max-width: 767px) {
  .btn-audio { width: 40px; height: 40px; font-size: 1rem; }
}


/* Shared container spacing for app main sections */
.main-container { margin-top: 2rem; margin-bottom: 2rem; }
@media (max-width: 767px) { .main-container { margin-top: 1rem; } }


/* Media helpers for embeds and product cards */
.video-embed { border-radius: 0.75rem; overflow: hidden; box-shadow: var(--bs-box-shadow); }
.platform-badge { font-size: .75rem; }
.product-price { font-weight: 800; }
.product-benefits { padding-left: 1.1rem; margin-bottom: .5rem; }
.product-benefits li { margin-bottom: .25rem; }

/* Simple tabs spacing for category pills */
.category-tabs .nav-link { border-radius: 50rem; }
.category-tabs .nav-link.active { background-color: var(--bs-primary); color: #fff; }
