/* ─────────────────────────────────────────────
   BASE — design tokens, reset, shared components
   Loaded on every public-facing page.
───────────────────────────────────────────── */

/* ─── DESIGN TOKENS ─── */
:root {
  --primary:       #0d9488;
  --primary-dark:  #0f766e;
  --primary-light: #ccfbf1;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --dark:          #1e293b;
  --darker:        #0f172a;
  --text:          #334155;
  --muted:         #64748b;
  --light:         #f8fafc;
  --white:         #ffffff;
  --border:        #e2e8f0;
  --red:           #dc2626;
  --green:         #16a34a;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);
  --radius:        12px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

/* ─── BASE TYPOGRAPHY ─── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .2s;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,148,136,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,148,136,.35);
}
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ─── TAG PILL ─── */
.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ─── ALERTS ─── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ─── LANG SWITCHER ─── */
.lang-switcher { position: relative; list-style: none; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .2s, color .2s;
  font-family: inherit;
}
.lang-btn:hover  { border-color: var(--primary); color: var(--primary); }
.lang-btn .lang-globe   { width: 15px; height: 15px; }
.lang-btn .lang-chevron { width: 13px; height: 13px; transition: transform .2s; }
.lang-btn.open .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 150px;
  padding: 4px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s;
  z-index: 200;
}
.lang-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
/* nav-context link items */
.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: .875rem;
  color: var(--text);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.lang-dropdown li a:hover  { background: var(--light); color: var(--primary); }
.lang-dropdown li a.active { color: var(--primary); font-weight: 700; }
/* form-submit button items (auth pages) */
.lang-dropdown li form   { margin: 0; padding: 0; }
.lang-dropdown li button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  font-size: .875rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.lang-dropdown li button:hover  { background: var(--light); color: var(--primary); }
.lang-dropdown li button.active { font-weight: 700; color: var(--primary); }


/* ─── FOCUS STATES ─── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(13,148,136,.15);
}
.btn:focus-visible, .btn-white:focus-visible {
  outline: 2px solid var(--white);
  box-shadow: 0 0 0 4px rgba(13,148,136,.4);
}
