/* ============================================================
   Unne Waitlist — shared styles
   Used by: index.html, privacy.html, terms.html
   ============================================================ */

:root {
  --primary:          hsl(347, 78%, 68%);
  --foreground:       hsl(334, 27%, 28%);
  --text-secondary:   hsl(0, 0%, 32%);
  --muted-foreground: hsl(334, 14%, 48%);
  --bg-warm:          hsl(18, 100%, 98%);
  --bg-white:         #ffffff;
  --border:           hsl(334, 39%, 91%);
  --destructive:      hsl(0, 84%, 60%);
  --lime-cream:       hsl(72, 89%, 72%);
  --peach-glow:       hsl(18, 97%, 80%);
  --muted-bg:         hsl(334, 14%, 95%);
  --radius:           0.5rem;
}

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

body {
  font-family: 'Catamaran', system-ui, sans-serif;
  background: var(--bg-warm);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP BAR ── */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 56px;
  padding: 0 1rem;
}
@media (min-width: 640px) { .top-bar { padding: 0 1.5rem; } }

/* Matches LanguageSwitcher.tsx exactly */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-family: 'Catamaran', sans-serif;
  color: var(--foreground);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-toggle:hover { background: var(--muted-bg); }
.lang-active   { font-weight: 700; }
.lang-inactive { opacity: 0.6; font-weight: 400; }
.lang-sep      { opacity: 0.4; }

/* ── MAIN ── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 2rem;
}
@media (max-width: 480px) {
  main { padding: 2rem 1rem 1.5rem; }
}

/* Logo */
.logo-wrap { display: flex; justify-content: center; margin-bottom: 3rem; margin-top: 1.5rem; }
.logo-wrap a { display: inline-block; line-height: 0; text-decoration: none; }
.logo-wrap img { height: 100px; width: auto; display: block; }
@media (max-width: 480px) {
  .logo-wrap img { height: 80px; }
  .logo-wrap { margin-bottom: 2.5rem; margin-top: 1rem; }
}

/* ── FOOTER — matches LoginFooter.tsx ── */
footer { padding: 1.5rem 1rem; text-align: center; }
footer p { font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.8; }
footer a, footer button {
  color: var(--primary); text-decoration: none;
  background: none; border: none; font-family: inherit; font-size: inherit;
  cursor: pointer; padding: 0;
}
footer a:hover, footer button:hover { text-decoration: underline; }

/* ── COOKIE BANNER — matches CookieBanner.tsx screenshots ── */
#cookie-banner {
  position: fixed; inset: auto 0 0;
  z-index: 50;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  padding: 1.5rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
#cookie-banner.hidden { display: none; }

.cookie-inner { max-width: 480px; margin: 0 auto; }

.cookie-inner h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.125rem; font-weight: 600;
  color: var(--foreground); margin-bottom: 0.375rem;
}
.cookie-inner > p {
  font-size: 0.875rem; color: var(--muted-foreground);
  margin-bottom: 1rem; line-height: 1.5;
}

.cookie-sep { border: none; border-top: 1px solid var(--border); margin: 0.75rem 0; }

.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.cookie-row-label strong { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.cookie-row-label span  { font-size: 0.75rem; color: var(--muted-foreground); }

/* Toggle switch — matches screenshot */
.toggle-sw { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 12px;
  background: hsl(334, 39%, 85%);
  cursor: pointer; transition: background 0.2s;
}
.toggle-sw input:checked   + .toggle-track { background: var(--primary); }
.toggle-sw input:disabled  + .toggle-track { cursor: not-allowed; opacity: 0.55; }
.toggle-track::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%; background: white;
  top: 3px; left: 3px; transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-sw input:checked + .toggle-track::after { transform: translateX(20px); }

/* Cookie action buttons — matches screenshot: outline left, filled right */
.cookie-actions { display: flex; gap: 0.75rem; margin-top: 1rem; margin-bottom: 0.75rem; }

.btn-c-outline {
  flex: 1; height: 44px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Catamaran', sans-serif; font-size: 0.9375rem; font-weight: 600;
  color: var(--foreground); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-c-outline:hover { background: var(--peach-glow); color: var(--foreground); }

.btn-c-primary {
  flex: 1; height: 44px;
  background: var(--primary); border: none;
  border-radius: var(--radius);
  font-family: 'Catamaran', sans-serif; font-size: 0.9375rem; font-weight: 600;
  color: white; cursor: pointer; transition: opacity 0.15s;
}
.btn-c-primary:hover { opacity: 0.9; }

.cookie-priv { text-align: center; font-size: 0.75rem; }
.cookie-priv a { color: var(--primary); text-decoration: none; }
.cookie-priv a:hover { text-decoration: underline; }
