/* styles.css — FIQRI Visual Style (Public Multi-Audience Landing + Protected Workspace) */

:root {
  --color-primary: #2563EB;
  --color-emerald: #10B981;
  --color-amber: #F59E0B;
  --color-indigo: #1E1B4B;
  --bg-primary: #F8FAFC;
  --bg-warm: #FFFDF9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Georgian', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--color-indigo);
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Native Dialog Backdrop & Styling (modern-web-guidance: light-dismiss-a-dialog) */
dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

dialog[open] {
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tab Switching */
.tab-pane {
  display: none;
  animation: fadeIn 0.18s ease-in-out forwards;
}
.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active Navigation Tabs */
.nav-tab.active-tab {
  border-bottom-color: #10B981;
  color: #047857;
  font-weight: 700;
}

/* Auth Modal Switcher Tabs */
.auth-mode-tab.active-auth-tab {
  background-color: #1E1B4B;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(30, 27, 75, 0.15);
}

/* Subject Buttons */
.subj-btn.active-subj {
  border-color: #10B981;
  background-color: #ECFDF5;
  color: #047857;
}

/* Paragraph Row In Student View */
.para-item {
  transition: all 0.15s ease;
  cursor: pointer;
}
.para-item:hover {
  border-color: #94a3b8;
}
.para-item.active-para {
  border-color: #10B981;
  background-color: #F0FDF4;
}

/* Child Profile Card Active */
.child-account-card {
  transition: all 0.18s ease;
}
.child-account-card.active-child-card {
  border-color: #2563EB;
  background-color: #EFF6FF;
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.15);
}

/* Cheat Warning Card */
.cheat-alert-box {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid #EF4444;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

/* Citation Pill */
.citation-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
}

/* Radio Cards */
.engine-radio-card:has(input:checked) {
  border-color: #10B981;
  background-color: #ECFDF5;
}

/* Gradient Brand Text */
.brand-gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 55%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
