/* SpeakBridge local styles — replaces the Tailwind CDN so the PWA works
   fully offline and never depends on an external CDN. Only the utility
   classes actually used by index.html / app.js are defined. */
* { box-sizing: border-box; }
body { margin: 0; }
button { cursor: pointer; border: none; font: inherit; }
/* 16px minimum: iOS Safari zooms the whole page when a smaller field gets focus. */
input, textarea, select { font: inherit; font-size: 16px; }
#questionText { -webkit-touch-callout: none; }
.hidden { display: none !important; }
.stage { display: block; }

/* layout */
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-1\.5 { height: 0.375rem; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.self-center { align-self: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.select-none { user-select: none; -webkit-user-select: none; }

/* spacing */
.p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-3 { padding-top: 0.75rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }

/* colors */
.bg-teal-50 { background-color: #f0fdfa; }
.bg-teal-50\/95 { background-color: rgba(240, 253, 250, 0.95); }
.bg-teal-100 { background-color: #ccfbf1; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-teal-600 { background-color: #0d9488; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-rose-600 { background-color: #e11d48; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-700 { background-color: #334155; }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }
.text-teal-700 { color: #0f766e; }
.text-teal-800 { color: #115e59; }
.text-amber-700 { color: #b45309; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-800 { color: #1e293b; }

/* typography & shape */
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; } .font-medium { font-weight: 500; }
.font-mono { font-family: ui-monospace, Menlo, monospace; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.rounded { border-radius: 0.25rem; } .rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; } .rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Full-height shell: stages stretch to fill the screen so content never
   clusters at the top with a void at the bottom. */
.app-shell { display: flex; flex-direction: column; min-height: 100dvh; }
.stage { flex: 1 1 auto; display: flex; flex-direction: column; }
#chunkCard, #flashCard { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
#stageDone { justify-content: center; }

/* Header breathing room: never hug the top edge, and respect the iPhone
   notch / status bar when installed as a standalone PWA. */
.app-header {
  padding-top: calc(2rem + env(safe-area-inset-top, 0px));
  padding-bottom: 0.9rem;
  box-shadow: 0 6px 16px -12px rgba(15, 118, 110, 0.35);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
