/* site-wide styles — shared across all layouts.
   page-specific rules live in the layout's own <style> block. */

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

:root {
  --bg: #0b0b0c;
  --panel: #111113;
  --panel-2: #161619;
  --ink: #ededef;
  --ink-dim: #b9b9be;
  --muted: #7d7d83;
  --muted-2: #555559;
  --border: #26262a;
  --border-strong: #3a3a40;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
body { display: flex; flex-direction: column; }

/* override Minima's link colors so our own `color` rules win without :visited repetition */
a, a:visited, a:hover { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
main.page-content { flex: 1; padding: 0; }

/* ---------- top nav (photos, recipes, recipe detail) ---------- */
.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.top-nav .brand {
  color: var(--muted);
  letter-spacing: -.01em;
  text-decoration: none;
  transition: color .12s ease;
}
.top-nav .brand:hover { color: var(--ink); }
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .12s ease;
}
.top-nav a:hover { color: var(--ink); text-decoration: none; }
.top-nav a.active { color: var(--ink); }
.top-nav .spacer { flex: 1; }

/* photos: trailing slideshow button */
.top-nav .nav-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
  cursor: pointer;
}
.top-nav .nav-action:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--panel);
}
.top-nav .nav-action svg { width: 13px; height: 13px; }
.top-nav .nav-action[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink-dim);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* recipes: EN/RU/HE language switcher */
.top-nav .lang {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  background: var(--panel);
}
.top-nav .lang-btn {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .12s ease, background .12s ease;
}
.top-nav .lang-btn:hover { color: var(--ink-dim); }
.top-nav .lang-btn.active {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- pill tag strip (photos + recipes) ---------- */
.pill-tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  font-family: inherit;
}
.pill-tag:hover {
  color: var(--ink-dim);
  border-color: var(--border-strong);
}
.pill-tag.active {
  color: var(--ink);
  border-color: var(--border-strong);
  background: var(--panel);
}

/* rtl */
[dir="rtl"] .top-nav .nav-action[data-tip]:hover::after {
  right: auto;
  left: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .top-nav { padding: 14px 20px; gap: 16px; font-size: 13px; }
}

@media print {
  .top-nav { display: none !important; }
}
