/* ============================================
   DOKUMENTOR PWA — GLOBAL STYLES
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a1628;
  --ink-2: #0f1f3d;
  --ink-3: #1a2f50;
  --surface: #131f35;
  --surface-2: #1e2d47;
  --accent: #e85d2f;
  --accent-2: #f5a623;
  --cyan: #00c2cb;
  --green: #075E54;
  --green-light: #25D366;
  --paper: #f8f7f4;
  --paper-2: #efecea;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.5);
  --text-dim: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --max-w: 430px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  min-height: 100%;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   MOBILE SHELL
============================================ */
.app-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.6; color: var(--text-dim); }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  width: 100%;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: #4285F4;
  color: white;
}
.btn--primary:hover { background: #3574e2; transform: translateY(-1px); }
.btn--accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(232,93,47,0.35);
}
.btn--accent:hover { box-shadow: 0 6px 28px rgba(232,93,47,0.5); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--white);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.25); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid var(--border);
}
.btn--green {
  background: var(--green);
  color: white;
}
.btn--full { width: 100%; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================
   CARDS
============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card--elevated {
  background: var(--surface-2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ============================================
   INPUTS
============================================ */
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--text-muted); }

/* ============================================
   NAV BAR (bottom)
============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  background: var(--ink-2);
  border-top: none;
  box-shadow: 0 -1px 12px rgba(0,0,0,0.4);
  display: flex;
  z-index: 100;
  padding-bottom: var(--safe-bottom);
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.2s;
}
.bottom-nav__item.active { color: var(--accent); }
.bottom-nav__item svg { width: 22px; height: 22px; }

/* ============================================
   TAGS / BADGES
============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--accent { background: rgba(232,93,47,0.2); color: var(--accent); }
.badge--green { background: rgba(37,211,102,0.15); color: var(--green-light); }
.badge--cyan { background: rgba(0,194,203,0.15); color: var(--cyan); }
.badge--muted { background: rgba(255,255,255,0.08); color: var(--text-dim); }

/* ============================================
   DIVIDER
============================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 8px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ============================================
   UTILITY
============================================ */
.text-accent { color: var(--accent); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
