/* ============================
   Mannen med den gyllene ugnen – Global style
   ============================ */

/* --- Theme tokens --- */
:root {
  --gap: 1rem;
  --max: 980px;

  --bg: #0e1f16;
  --surface: #12271c;
  --hover: #162c20;       /* ljusare än surface för hover */
  --line: #22372a;

  --text: #f7f7f5;
  --muted: #c9d6cf;

  --brand: #c7a008;       /* guld */
  --accent: #6fd7a6;      /* turkosgrön accent */

  --radius: 14px;
}

/* --- Reset / base --- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* --- Containers --- */
header, main, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(.8rem, 3vw, 1.2rem);
}

/* ============================
   Header + Brand
   ============================ */

/* Desktop (default) */
header {
  display: flex;
  align-items: center;
  gap: .8rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr; /* logo | text */
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  display: block;
}
.brand > div {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  min-width: 0;
  white-space: nowrap;
}
.brand h1 {
  margin: 0;
  line-height: 1.25;
  font-weight: 700;
  font-size: clamp(1.05rem, 3.8vw, 1.6rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand .tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.8rem, 2.8vw, .95rem);
}
.brand .tagline::before {
  content: "·";
  opacity: .6;
  margin: 0 .3rem;
}

/* ============================
   Nav + Buttons
   ============================ */
nav {
  margin-left: auto;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: .6rem .9rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: var(--text);
  background: linear-gradient(180deg, #1a2f24, #11251b);
  touch-action: manipulation;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }

/* Tillbaka-knapp (publik liten) */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
  font-weight: 600;
  color: #000;
  background: linear-gradient(180deg, #e7c84a, #b9940a);
  padding: .3rem .7rem;
  border-radius: .6rem;
  font-size: .9rem;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-back::before { content: "←"; font-size: .95em; }
.btn-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 5px rgba(0,0,0,0.25);
  filter: brightness(1.05);
}
.btn-back:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ============================
   Inputs & Forms
   ============================ */
input[type="text"], input[type="search"], textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: #0b1a13;
  color: var(--text);
  font-size: clamp(.95rem, 2.8vw, 1rem);
}
label { display: block; margin: .6rem 0 .2rem; font-size: .95rem; color: var(--muted); }

/* “Nytt recept”-form */
.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}
.recipe-form textarea { resize: vertical; min-height: 80px; }
.recipe-form input[type="file"] {
  background: var(--surface);
  padding: .6rem;
  border-radius: .6rem;
  border: 1px solid var(--line);
  color: var(--text);
}
.recipe-form button.btn {
  align-self: flex-start;
  background: linear-gradient(180deg, #c7a008, #a88606);
  color: #000;
  font-weight: 600;
}
.recipe-form button.btn:hover { filter: brightness(1.1); }

/* ============================
   Cards, Grid & Badges
   ============================ */
.grid {
  display: grid;
  gap: clamp(.75rem, 2.5vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(.85rem, 2.5vw, 1.1rem);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.card h2 { margin: .2rem 0 .3rem; font-size: clamp(1.05rem, 3.5vw, 1.25rem); }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }

.badge {
  display: inline-block;
  background: #0c1e16;
  border: 1px solid var(--line);
  padding: .2rem .55rem;
  border-radius: .5rem;
  margin: 0 .35rem .35rem 0;
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none; /* badges kan vara länkar */
}

/* Receptbilder – kort på index */
.card-img-wrap { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: .6rem; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Hero-bild på receptsidan */
.hero {
  margin: 0 0 1rem;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1a13;
}
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Admin thumbnails (visuell konsistens, används även i admin) */
.admin-card .admin-row { display:flex; gap:1rem; align-items:flex-start; }
.thumb-wrap { flex: 0 0 96px; }
.thumb, .thumb.placeholder {
  width: 96px; height: 72px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: #0b1a13;
  display: block;
}
.thumb.placeholder {
  display:flex; align-items:center; justify-content:center;
  color: var(--muted); font-size:.8rem; opacity:.8;
}
.admin-card .meta { flex: 1 1 auto; }
.admin-actions { display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.5rem; }

/* ============================
   Taggfilter
   ============================ */

/* Chips (desktop) */
.tag-filter { display:flex; flex-wrap:wrap; gap:.45rem; margin:.6rem 0 1.1rem; }
.tag-link {
  display:inline-block; padding:.3rem .6rem; border-radius:.5rem;
  background: var(--surface); color: var(--muted);
  text-decoration:none; font-size:.9rem; border:1px solid var(--line);
  transition: all .15s ease;
}
.tag-link:hover { background: var(--hover); color: var(--text); }
.tag-link.active {
  background: linear-gradient(180deg, #e7c84a, #b9940a);
  color: #000; border-color: #b9940a; font-weight: 600;
}

/* Custom dropdown (mobil) */
.tag-filter-mobile { display:none; margin:.4rem 0 1rem; }
.custom-dropdown { position:relative; display:inline-block; margin-top:.2rem; }

.dropdown-btn {
  background: linear-gradient(180deg, #0f1d14, #14281b);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .5rem .9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: all .15s ease;
}
.dropdown-btn:hover {
  border-color: #b9940a;
  background: linear-gradient(180deg, #203e2a, #1a3526);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + .3rem);
  left: 0;
  background: #0f1d14;
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  display: none;
  min-width: 220px;
  z-index: 30;
  padding: .35rem;
}
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: block;
  padding: .5rem .6rem;
  border-radius: .5rem;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  transition: background .15s ease, color .15s ease;
}
.dropdown-item:hover { background: #14281b; }
.dropdown-item.active {
  background: linear-gradient(180deg, #e7c84a, #b9940a);
  color: #000;
  font-weight: 600;
}

/* ============================
   Typography & misc
   ============================ */
p { margin: .6rem 0 1rem; font-size: clamp(.95rem, 2.9vw, 1rem); }
.muted { color: var(--muted); font-size: .92rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: clamp(1rem, 3vw, 1.2rem) 0; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding-top: .8rem;
}
footer .admin-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}
footer .admin-link:hover { color: var(--accent); opacity: 1; text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Sekundär underline-dekor på h2 */
h2 { position: relative; padding-bottom: .35rem; }
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; height: 2px; width: 72px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

/* Fokus för tillgänglighet */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================
   Hamburger-meny (sök/Nytt recept)
   ============================ */
#menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  display: none; /* syns bara på mobil */
  transition: transform .08s ease;
}
#menu-toggle:active { transform: translateY(1px); }

#menu {
  display: flex;
  gap: .6rem;
  align-items: center;
}

/* Mobil: overlay-meny med animation */
@media (max-width: 700px) {
  #menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 1.4rem;
  }

  #menu {
    position: absolute;
    top: 60px; right: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    width: min(90%, 320px);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    pointer-events: none;
    transition:
      visibility 0s linear .15s,
      opacity .15s ease,
      transform .18s ease;
    z-index: 100;
    flex-direction: column;
    gap: .8rem;
  }
  #menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition:
      visibility 0s linear 0s,
      opacity .18s ease,
      transform .22s cubic-bezier(.2,.7,.2,1);
  }
  #menu form { width: 100%; }
  #menu input[type="text"] { width: 100%; }
  #menu a.btn { width: 100%; text-align: center; }
}

/* ============================
   Mobil-header: kompakt enradig (logga + titel + tagline + hamburgare)
   ============================ */
@media (max-width: 700px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;  /* brand | hamburger */
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
  }

  .brand {
    display: grid;
    grid-template-columns: auto 1fr;  /* logo | text */
    align-items: center;
    gap: .5rem;
    min-width: 0;
  }
  .brand img {
    width: 32px; height: 32px; flex: 0 0 auto;
  }
  .brand > div {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    min-width: 0;
    white-space: nowrap; /* allt på en rad */
  }
  .brand h1 {
    margin: 0;
    font-size: .96rem;   /* justera .92–1.02 vid behov */
    line-height: 1.1;
    flex: 1 1 auto;      /* tar restutrymme */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis; /* ellipsa bara rubriken */
  }
  .brand .tagline {
    display: inline;
    margin: 0;
    font-size: .78rem;
    color: var(--muted);
    flex: 0 0 auto;      /* tvinga den att synas */
    white-space: nowrap;
  }
  .brand .tagline::before {
    content: "·";
    opacity: .6;
    margin: 0 .28rem;
  }

  #menu-toggle {
    grid-column: 2 / 3;
    justify-self: end;
    position: static;
    margin-left: .4rem;
  }

  /* Taggfilter spacing under headern */
  .tag-filter,
  .tag-filter-mobile { margin-top: .3rem; }

  /* Visa custom dropdown på mobil, chips döljs */
  .tag-filter-desktop { display: none; }
  .tag-filter-mobile { display: inline-block; }
}

/* ============================
   Touch targets
   ============================ */
@media (hover: none) {
  .btn, input, textarea { min-height: 44px; }
}

/* === Mobil-header: två rader (titel + tagline under) === */
@media (max-width: 700px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto; /* brand | hamburger */
    align-items: start;
    gap: .3rem;
    padding: .7rem .9rem .6rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    min-width: 0;
  }

  /* Övre rad: logga + titel */
  .brand-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    white-space: nowrap;
  }

  .brand-top img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand-top h1 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Nedre rad: tagline, i full bredd */
  .brand .tagline {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.2;
  }

  /* Hamburgermenyn till höger */
  #menu-toggle {
    align-self: start;
    font-size: 1.5rem;
    margin-top: .4rem;
  }

  /* Meny (sök + knappar) under headern */
  #menu {
    grid-column: 1 / -1;
    width: 100%;
  }

  /* Justera spacing mot filtret */
  .tag-filter,
  .tag-filter-mobile {
    margin-top: .35rem;
  }
}

/* === MOBIL HEADER: rad 1 = [logga + titel] + [hamburger], rad 2 = tagline === */
@media (max-width: 700px) {
  header{
    display: grid;
    grid-template-columns: 1fr auto;   /* vänster = brand, höger = hamburger */
    grid-template-rows: auto auto;     /* rad1: logo+titel + hamburger, rad2: tagline */
    align-items: center;
    gap: .3rem .6rem;
    padding: .7rem .9rem .6rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  /* Brand-blocken ska uppta kolumn 1, båda raderna */
  .brand{
    grid-column: 1 / 2;
    grid-row: 1 / 3;                  /* spänn över två rader */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .22rem;
    min-width: 0;
  }

  /* Övre rad i brand: logga + titel (en rad) */
  .brand-top{
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    white-space: nowrap;
  }
  .brand-top img{
    width: 36px; height: 36px; flex-shrink: 0;
  }
  .brand-top h1{
    margin: 0;
    font-size: 1.04rem;          /* finjustera 0.98–1.08 vid behov */
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;     /* ellipsa bara titeln om det blir trångt */
    min-width: 0;
  }

  /* Nedre rad i brand: tagline */
  .brand .tagline{
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.25;
  }

  /* Hamburgaren ligger på rad 1, kolumn 2 (höger) */
  #menu-toggle{
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
    align-self: start;
    position: static;            /* absolut inte absolut :) */
    font-size: 1.5rem;
    margin-left: .4rem;
    flex-shrink: 0;
  }

  /* Menyn under headern, full bredd */
  #menu{
    grid-column: 1 / -1;
    grid-row: 3 / 4;             /* visuellt under headern */
    width: 100%;
  }

  /* Lite tajtare mot taggfilter nedanför */
  .tag-filter,
  .tag-filter-mobile{ margin-top: .35rem; }
}

/* === Mobil header: logga + titel + tagline (två rader) + hamburgare === */
@media (max-width: 700px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto; /* vänster = brand, höger = hamburger */
    align-items: center;
    gap: .4rem .6rem;
    padding: .7rem .9rem .6rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
  }

  /* logga + textblock */
  .brand-top {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-width: 0;
  }

  .brand-top img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  /* textblock med titel + tagline i två rader */
  .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .brand-text h1 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-text .tagline {
    margin: .1rem 0 0;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.2;
    white-space: nowrap;
  }

  #menu-toggle {
    grid-column: 2 / 3;
    justify-self: end;
    font-size: 1.5rem;
    margin-left: .4rem;
  }

  #menu {
    grid-column: 1 / -1;
    width: 100%;
  }

  .tag-filter,
  .tag-filter-mobile { margin-top: .4rem; }
}

/* === Desktop overrides: återställ nav + alignment === */
@media (min-width: 701px) {
  /* Header och brand på en linje med centrerad vertikal align */
  header { display: flex; align-items: center; gap: .8rem; }
  .brand { display: flex; align-items: center; min-width: 0; }
  .brand-top { display: flex; align-items: center; gap: .6rem; min-width: 0; }
  .brand-top img { width: 40px; height: 40px; display: block; transform: translateY(1px); } /* nudge loggan lite nedåt */
  .brand-text { display: flex; flex-direction: column; min-width: 0; }

  /* Dölj hamburgaren på desktop */
  #menu-toggle { display: none !important; }

  /* Visa nav som vanlig rad igen (överskuggar mobil-overlay) */
  #menu {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: .6rem !important;
    width: auto !important;

    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}

/* === Fix: desktop sökfält & loggans vertikala placering === */

/* Gäller bara desktop (över 700px) */
@media (min-width: 701px) {
  header {
    display: flex;
    align-items: center;           /* centrerar logga och text vertikalt */
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    gap: 1rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .brand-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .brand-top img {
    width: 44px;
    height: 44px;
    display: block;
    transform: translateY(1px); /* liten nudge för optisk centrering */
  }

  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .brand-text h1 {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.2;
  }

  .brand-text .tagline {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--muted);
  }

  /* Dölj hamburgaren på desktop */
  #menu-toggle {
    display: none !important;
  }

  /* Återställ #menu till inline på desktop */
  #menu {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
  }

  /* Sökfältet i menyn – proportionerligt */
  #menu form {
    display: flex;
    align-items: center;
  }

  #menu input[type="text"],
  #menu input[type="search"] {
    width: 220px;
    padding: 0.55rem 0.75rem;
  }
}

/* Finjustering för mobil – sänk loggan en aning */
@media (max-width: 700px) {
  .brand-top img {
    transform: translateY(2px);
  }
}

/* ==== CLEAN HEADER OVERRIDES (scoped) ==== */
/* Desktop – logga + titel/tagline vänster, sök + ev. knapp höger */
#site-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:0.9rem 1rem; border-bottom:1px solid var(--line); background:var(--bg);
}
#site-header .brand{ display:flex; align-items:flex-start; gap:.7rem; min-width:0; }
#site-header .brand-top{ display:flex; align-items:flex-start; gap:.6rem; min-width:0; }
#site-header .brand-top img{ width:44px; height:44px; display:block; transform:translateY(1px); }
#site-header .brand-text{ display:flex; flex-direction:column; padding-top:2px; min-width:0; }
#site-header .brand-text h1{
  margin:0; font-size:1.25rem; line-height:1.15;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#site-header .brand-text .tagline{ margin:.15rem 0 0; font-size:.92rem; color:var(--muted); line-height:1.2; }

/* Nav (desktop) – synligt som rad, inte overlay */
#site-header #menu{
  position:static !important; display:flex !important; flex-direction:row !important;
  align-items:center !important; gap:.8rem !important; width:auto !important;
  visibility:visible !important; opacity:1 !important; transform:none !important;
  pointer-events:auto !important; background:none !important; border:0 !important; box-shadow:none !important; padding:0 !important;
}
#site-header #menu form{ display:flex; align-items:center; }
#site-header #menu input[type="text"]{ width:240px; padding:.55rem .75rem; }

/* Dölj hamburgaren på desktop */
@media (min-width:701px){ #site-header #menu-toggle{ display:none !important; } }

/* Mobil – rad 1: (logga + textblock) vänster, hamburgare höger. Rad 2: meny. */
@media (max-width:700px){
  #site-header{
    display:grid; grid-template-columns:1fr auto; align-items:center;
    gap:.5rem .8rem; padding:.7rem .9rem .6rem;
  }
  #site-header .brand-top img{ width:36px; height:36px; transform:translateY(1px); }
  #site-header .brand-text h1{ font-size:1.05rem; }
  #site-header .brand-text .tagline{ font-size:.82rem; margin-top:.1rem; }

  /* Hamburgaren synlig på mobil */
  #site-header #menu-toggle{ display:block; font-size:1.5rem; justify-self:end; }

  /* Overlay-meny på mobil */
  #site-header #menu{
    position:absolute !important; top:60px; right:10px;
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
    padding:1rem; width:min(90%,320px); box-shadow:0 10px 30px rgba(0,0,0,.35);
    display:block; visibility:hidden; opacity:0; transform:translateY(-6px) scale(.98);
    pointer-events:none; z-index:100; flex-direction:column !important; gap:.8rem !important;
    transition: visibility 0s linear .15s, opacity .15s ease, transform .18s ease;
  }
  #site-header #menu.show{
    visibility:visible; opacity:1; transform:translateY(0) scale(1); pointer-events:auto;
    transition: visibility 0s linear 0s, opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1);
  }
  #site-header #menu form{ width:100%; }
  #site-header #menu input[type="text"]{ width:100%; }
}

/* Mobile: hide #menu until opened via .show */
@media (max-width:700px){
  #site-header #menu{
    position:absolute !important;
    top:60px; right:10px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:1rem;
    width:min(90%,320px);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    display:block !important;

    /* HIDDEN by default */
    visibility:hidden;
    opacity:0;
    transform:translateY(-6px) scale(.98);
    pointer-events:none;

    z-index:100;
    flex-direction:column !important;
    gap:.8rem !important;
    transition:
      visibility 0s linear .15s,
      opacity .15s ease,
      transform .18s ease;
  }
  #site-header #menu.show{
    /* VISIBLE when toggled */
    visibility:visible;
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
    transition:
      visibility 0s linear 0s,
      opacity .18s ease,
      transform .22s cubic-bezier(.2,.7,.2,1);
  }

  /* Full bredd för fältet inne i menyn */
  #site-header #menu form{ width:100%; }
  #site-header #menu input[type="text"]{ width:100%; }
}

/* === MOBIL: dölj #menu helt tills .show finns === */
@media (max-width:700px){
  /* Dölj menyn (och därmed sökfältet) i normalt läge */
  #site-header #menu{
    position:absolute !important;
    top:60px; right:10px;
    width:min(90%,320px);
    /* dämpa ALL synlighet och ta ur layouten */
    display:block !important;
    height:0 !important;
    overflow:hidden !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    transform:none !important;
    pointer-events:none !important;
    z-index:100;
  }

  /* När hamburgaren öppnar (.show) – rita upp overlay-menyn */
  #site-header #menu.show{
    position:absolute !important;
    top:60px; right:10px;
    background:var(--surface) !important;
    border:1px solid var(--line) !important;
    border-radius:var(--radius) !important;
    padding:1rem !important;
    height:auto !important;
    overflow:visible !important;
    box-shadow:0 10px 30px rgba(0,0,0,.35) !important;
    visibility:visible !important;
    opacity:1 !important;
    transform:none !important;
    pointer-events:auto !important;
    display:block !important;
  }

  /* Innehållet i den öppnade menyn */
  #site-header #menu.show form{ width:100% !important; }
  #site-header #menu.show input[type="text"]{ width:100% !important; }
}

/* Recept-layouter */
article.recipe{ max-width: 760px; margin: 0 auto; }
article.recipe h2{ margin-top: .2rem; }

/* Gör UL i ingredienser lite tätare och snyggare */
.ingredients ul{ margin:.5rem 0 1rem; padding-left:1.1rem; }
.ingredients li{ margin:.2rem 0; }

/* Gör “Gör så här” lättläst */
.instructions p{ white-space: pre-wrap; }

/* Hero-bild – redan definierad hos dig men säkerställ marginal */
.hero{ margin: .2rem 0 1rem; }

/* Statisk infosida */
.page{
  max-width: 820px;
  margin: 0 auto;
}
.page .lead{
  font-size: 1.05rem;
  color: var(--muted);
}
.info-block{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  margin: .8rem 0 1rem;
}
.info-block h3{
  margin: 0 0 .4rem;
}
.checklist{
  list-style: none;
  padding-left: 0;
  margin: .4rem 0 0;
}
.checklist li{
  padding-left: 1.2rem;
  position: relative;
  margin: .25rem 0;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--brand);
  line-height: 1.2;
}
.footer-link{
  color: var(--muted);
  text-decoration: none;
}
.footer-link:hover{
  color: var(--text);
  text-decoration: underline;
}
/* === Hamburgare ALLTID (mobil + desktop) === */
#site-header #menu-toggle{
  display:block !important;
  font-size: 1.6rem;
}

/* Dölj menyn helt tills .show sätts av JS */
#site-header #menu{
  position:absolute !important;
  top:60px; right:10px;
  width:min(90vw, 360px);
  display:block !important;

  /* gömd */
  height:0 !important;
  overflow:hidden !important;
  padding:0 !important; margin:0 !important;
  border:0 !important; background:transparent !important; box-shadow:none !important;
  visibility:hidden !important; opacity:0 !important; transform:none !important;
  pointer-events:none !important;
  z-index: 100;
}

/* synlig när togglad */
#site-header #menu.show{
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 1rem !important;
  height:auto !important; overflow:visible !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
  visibility:visible !important; opacity:1 !important; transform:none !important;
  pointer-events:auto !important; display:block !important;

  /* layout inuti overlayn */
  display: flex !important;
  flex-direction: column !important;
  gap: .8rem !important;
}

#site-header #menu.show form{ width:100% !important; }
#site-header #menu.show input[type="text"]{ width:100% !important; }

/* Valfri finjustering för placering på stora skärmar */
@media (min-width: 1000px){
  #site-header #menu,
  #site-header #menu.show{
    top: 72px; /* lite längre ned om desktop-headern är högre */
    right: 20px;
    width: 420px; /* större panel på desktop */
  }
}

/* Ikonmeny i overlay */
.menu-list {
  list-style: none;
  margin: .2rem 0 0;
  padding: .5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .35rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  padding: .5rem .4rem;
  border-radius: .6rem;
  color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.menu-item:hover {
  background: #14281b;
}
.menu-item .mi {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  opacity: .9;
}

/* Lite kompaktare på desktop-overlay */
@media (min-width: 1000px){
  #site-header #menu.show {
    width: 420px;
  }
  .menu-item { padding: .55rem .5rem; }
}

/* Tillgänglig fokus */
.menu-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: #14281b;
}
/* === ADMIN-SEKTION I HAMBURGARMENYN === */
.menu-admin {
  border-top: 1px solid var(--line);
  margin-top: .7rem;
  padding-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.menu-admin-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  padding: .35rem .3rem;
  border-radius: .4rem;
  transition: background .15s ease, color .15s ease;
}

.menu-admin-link:hover {
  background: #14281b;
  color: var(--text);
}

.menu-admin-link svg {
  opacity: .85;
}

.menu-admin-link.logout {
  color: #c34a4a;
}

.menu-admin-link.logout:hover {
  background: rgba(195,74,74,0.15);
  color: #ffb3b3;
}

/* === Overlay-menyn: öppna/stäng-animationer === */
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes menuOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(.98); }
}

/* När den öppnas */
#site-header #menu.show {
  animation: menuIn .28s cubic-bezier(.2,.7,.2,1);
}

/* När den stängs (vi sätter .closing kort innan vi tar bort .show i JS) */
#site-header #menu.closing {
  animation: menuOut .22s ease;
}

/* Respekt för “reduce motion” */
@media (prefers-reduced-motion: reduce) {
  #site-header #menu,
  #site-header #menu.show,
  #site-header #menu.closing {
    transition: none !important;
    animation: none !important;
  }
}

/* Stor logga på Om-sidan */
.about-logo {
  text-align: center;
  margin: 1.5rem 0 1.2rem;
}

.about-logo img {
  max-width: 280px;
  width: 60%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,.2);
  transition: transform .3s ease;
}

.about-logo img:hover {
  transform: scale(1.05);
}

/* På mörk bakgrund: lätt tonad bakplatta */
@media (prefers-color-scheme: dark) {
  .about-logo img {
    background: rgba(255,255,255,0.05);
  }
}

/* === ABOUT HERO === */
.about-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text);
  padding: 2.8rem 1rem 2.4rem;
  border-bottom: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  position: relative;
  background: radial-gradient(
      circle at 60% 30%,
      rgba(255, 220, 150, 0.25),
      rgba(0,0,0,0) 70%
    ),
    linear-gradient(135deg, #0e1f16 0%, #223d2c 100%);
  box-shadow: inset 0 -40px 60px rgba(0,0,0,.25);
}



.about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  transition: transform .4s ease;
}

.about-hero-logo:hover {
  transform: scale(1.05);
}

.about-hero-title {
  font-size: 2rem;
  margin: 0;
  line-height: 1.2;
}

.about-hero-tagline {
  margin: .5rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Mindre variant på mobil */
@media (max-width: 700px) {
  .about-hero {
    padding: 2.2rem 1rem 2rem;
  }
  .about-hero-logo { width: 110px; margin-bottom: .8rem; }
  .about-hero-title { font-size: 1.6rem; }
  .about-hero-tagline { font-size: .95rem; }
}

.tag-filter {
  margin: 1rem auto 1.5rem;
  text-align: center;
}
.tag-filter label {
  margin-right: .4rem;
  font-weight: 500;
}

/* === On-brand stil för dropdown "Filtrera på tagg" === */
.tag-filter {
  text-align: center;
  margin: 1.2rem auto 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.tag-filter label {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
}

/* använd CSS-trick: pseudo-element via container */
.tag-filter {
  position: relative;
}
.tag-filter::after {
  content: "▾";
  position: absolute;
  right: 1.1rem;
  top: 1.92rem;
  pointer-events: none;
  font-size: 1rem;
  color: var(--muted);
}

/* Mobiljustering */
@media (max-width:700px) {
  .tag-filter {
    margin: .8rem auto 1.2rem;
    gap: .25rem;
  }
  .tag-filter::after {
    top: 1.75rem;
    right: 1rem;
  }
}

/* VISNINGSSÄKRING: se till att dropdownen alltid syns */
.tag-filter { display: flex !important; flex-direction: column; align-items: center; gap: .35rem; margin: 1rem auto 1.4rem; }
.tag-filter label { font-size: .95rem; font-weight: 500; color: var(--muted); }

/* Mobiljustering */
@media (max-width:700px){
  .tag-filter { margin: .8rem auto 1.1rem; gap: .25rem; }
}

/* === Taggfilter – custom dropdown (gemensam för mobil/desktop) === */
.tag-filter { margin: 1rem 0 1.2rem; }
.custom-dropdown { position: relative; display: inline-block; z-index: 50; }

.dropdown-btn {
  background: linear-gradient(180deg, #203528, #18291f);
  color: var(--text);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 0 0 3px rgba(231,200,74,.15) inset;
  transition: filter .15s ease, transform .15s ease;
}
.dropdown-btn:hover { filter: brightness(1.05); }
.dropdown-btn:active { transform: translateY(1px); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  background: #0f1d14;
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: .35rem;
  min-width: 220px;
  display: none;
}
.dropdown-menu.show { display: block; }

.dropdown-item {
  display: block;
  padding: .5rem .6rem;
  border-radius: .5rem;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.dropdown-item:hover { background: #14281b; }
.dropdown-item.active {
  background: linear-gradient(180deg, #e7c84a, #b9940a);
  color: #000;
  font-weight: 600;
}

@media (max-width: 700px) {
  .dropdown-btn { padding: .5rem .8rem; }
  .dropdown-menu { min-width: 200px; }
}

/* tillgängligt fokus */
.dropdown-btn:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ta bort eventuell gammal bakgrundspil från select-versionen */
.tag-filter select,
.tag-filter::after {
  background: none !important;
  background-image: none !important;
  content: none !important;
}

/* Tydligare mail-länk i info-blocket */
.info-block a[href^="mailto"] {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
  transition: color .15s ease, border-color .15s ease;
}
.info-block a[href^="mailto"]:hover {
  color: #e7c84a; /* guldig ton mot din palett */
  border-color: #e7c84a;
}

/* === Footer länkar === */
footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: .9rem;
  background: #0e1f16;
  color: var(--muted);
}

footer a {
  color: #e7c84a; /* varm guldton som passar loggan */
  text-decoration: none;
  font-weight: 500;
  transition: color .15s ease, text-shadow .15s ease;
}

footer a:hover,
footer a:focus {
  color: #fff;
  text-shadow: 0 0 6px rgba(231,200,74,.6);
}

footer .muted {
  color: #b3b3b3;
  font-size: .9rem;
}

@media (max-width:700px){
  footer { font-size: .85rem; }
}

/* === About Hero med centrerad bredd === */
.about-hero-wrapper {
  display: flex;
  justify-content: center;
  background: transparent;
}

.about-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0e1f16 0%, #223d2c 100%);
  color: var(--text);
  padding: 2.8rem 1rem 2.4rem;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -40px 60px rgba(0,0,0,.25);
  border-radius: 1.2rem;
  overflow: hidden;
}

.about-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-hero-logo {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

@media (max-width:700px) {
  .about-hero {
    border-radius: 0;
    padding: 2rem 1rem 2.2rem;
  }
  .about-hero-logo { width: 110px; }
}

#menu {
    min-width: 160px;
}

#menu a {
    display: block;
    color: #f3f3f3;
    text-decoration: none;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
}

#menu a:hover {
    background: rgba(255,255,255,0.08);
}

#menu.show {
    display: block;
}

.recipes-page {
    padding: 1rem 0 3rem;
}

.page-heading {
    margin-bottom: 2rem;
}

.page-heading h1 {
    margin-bottom: 0.25rem;
}

.page-heading p {
    margin: 0;
    opacity: 0.75;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.recipe-card {
    overflow: hidden;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
}

.recipe-card-image {
    display: block;
}

.recipe-card-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.recipe-card-content {
    padding: 1rem 1.1rem 1.25rem;
}

.recipe-card-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.recipe-card-content h2 a {
    color: #e7c84a;
    text-decoration: none;
}

.recipe-card-content h2 a:hover {
    text-decoration: underline;
}

.recipe-card-content p {
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-card-image img {
        height: auto;
    }
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.recipe-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(231, 200, 74, 0.35);
    border-radius: 999px;
    color: #e7c84a;
    font-size: 0.8rem;
}

.recipe-tag {
    text-decoration: none;
}

.recipe-tag:hover {
    background: rgba(231, 200, 74, 0.12);
}

.tag-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.tag-filter label {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.tag-filter select {
    appearance: none;
    min-width: 190px;
    padding: 0.55rem 2.2rem 0.55rem 0.8rem;
    border: 1px solid rgba(231, 200, 74, 0.4);
    border-radius: 0.6rem;
    background:
        linear-gradient(45deg, transparent 50%, #e7c84a 50%) calc(100% - 14px) 50% / 5px 5px no-repeat,
        linear-gradient(135deg, #e7c84a 50%, transparent 50%) calc(100% - 9px) 50% / 5px 5px no-repeat,
        #10271c;
    color: #e7c84a;
    font: inherit;
    cursor: pointer;
}

.tag-filter {
    display: flex;
    justify-content: center;
    margin: 0 0 2rem;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    min-width: 220px;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(231, 200, 74, 0.45);
    border-radius: 0.7rem;
    background: #10271c;
    color: #e7c84a;
    font: inherit;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 20;
    overflow: hidden;
    border: 1px solid rgba(231, 200, 74, 0.35);
    border-radius: 0.7rem;
    background: #10271c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.65rem 0.9rem;
    color: #f3f3f3;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.07);
}

.dropdown-item.active {
    color: #e7c84a;
    background: rgba(231, 200, 74, 0.08);
}

.recipe-search {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.recipe-search input {
    width: min(100%, 320px);
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(231, 200, 74, 0.4);
    border-radius: 0.7rem;
    background: #10271c;
    color: #f3f3f3;
    font: inherit;
}

.recipe-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.recipe-search button {
    padding: 0.6rem 1rem;
    border: 1px solid #e7c84a;
    border-radius: 0.7rem;
    background: #e7c84a;
    color: #092018;
    font: inherit;
    cursor: pointer;
}

.recipe-search a {
    align-self: center;
    color: #e7c84a;
    text-decoration: none;
}

.menu-search {
    display: flex;
    gap: 0.4rem;
    padding: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-search input {
    min-width: 0;
    width: 170px;
    padding: 0.5rem 0.6rem;
    border: 1px solid rgba(231, 200, 74, 0.35);
    border-radius: 0.5rem;
    background: #0b1d15;
    color: #f3f3f3;
    font: inherit;
    font-size: 0.9rem;
}

.menu-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.menu-search button {
    padding: 0.5rem 0.7rem;
    border: 1px solid #e7c84a;
    border-radius: 0.5rem;
    background: #e7c84a;
    color: #092018;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.recipe-form {
    display: grid;
    gap: 0.75rem;
    max-width: 760px;
}

.recipe-form label {
    font-weight: 600;
    margin-top: 0.5rem;
}

.recipe-form input[type="text"],
.recipe-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(231, 200, 74, 0.35);
    border-radius: 0.6rem;
    background: #10271c;
    color: #f3f3f3;
    font: inherit;
}

.recipe-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.recipe-form input:focus,
.recipe-form textarea:focus {
    outline: none;
    border-color: #e7c84a;
}

.publish-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-form button {
    justify-self: start;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid #e7c84a;
    border-radius: 0.6rem;
    background: #e7c84a;
    color: #092018;
    font: inherit;
    cursor: pointer;
}

.admin-page {
    padding: 1rem 0 3rem;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-heading h1 {
    margin-bottom: 0.3rem;
}

.admin-heading p {
    margin: 0;
    opacity: 0.75;
}

.admin-heading-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-primary-button,
.admin-secondary-button,
.admin-edit-button,
.admin-delete-button {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    border-radius: 0.6rem;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.admin-primary-button {
    border: 1px solid #e7c84a;
    background: #e7c84a;
    color: #092018;
}

.admin-secondary-button {
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #f3f3f3;
}

.admin-success {
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(231, 200, 74, 0.35);
    border-radius: 0.7rem;
    background: rgba(231, 200, 74, 0.08);
    color: #e7c84a;
}

.admin-section-heading {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.admin-section-heading h2 {
    margin: 0;
}

.admin-section-heading span {
    opacity: 0.6;
}

.admin-recipe-list {
    display: grid;
    gap: 0.7rem;
}

.admin-recipe-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.8rem;
    background: rgba(255,255,255,0.035);
}

.admin-recipe-info strong {
    color: #e7c84a;
}

.admin-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.admin-status {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.admin-status-published {
    border: 1px solid rgba(231, 200, 74, 0.35);
    color: #e7c84a;
}

.admin-status-draft {
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7);
}

.admin-recipe-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-edit-button {
    border: 1px solid rgba(231, 200, 74, 0.45);
    color: #e7c84a;
}

.admin-delete-button {
    border: 1px solid rgba(255,255,255,0.16);
    background: transparent;
    color: #f3f3f3;
}

@media (max-width: 700px) {
    .admin-heading,
    .admin-recipe-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-heading-actions,
    .admin-recipe-actions {
        flex-wrap: wrap;
    }
}

.menu-logout {
    margin: 0;
}

.menu-logout button {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #f3f3f3;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.menu-logout button:hover {
    background: rgba(255,255,255,0.08);
}

.recipe-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 4rem;
}

.recipe-back {
    margin: 0 0 1.25rem;
}

.recipe-back a {
    color: #e7c84a;
    text-decoration: none;
}

.recipe-back a:hover {
    text-decoration: underline;
}

.recipe-header {
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.035);
}

.recipe-hero {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.recipe-intro {
    padding: 1.5rem;
}

.recipe-intro h1 {
    margin: 0 0 0.75rem;
    color: #e7c84a;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.recipe-description {
    max-width: 720px;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.recipe-byline {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.recipe-content {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
    gap: 1.5rem;
    align-items: start;
}

.recipe-section {
    padding: 1.4rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.035);
}

.recipe-section h2 {
    margin: 0 0 1rem;
    color: #e7c84a;
}

.recipe-text {
    line-height: 1.7;
}

@media (max-width: 720px) {
    .recipe-content {
        grid-template-columns: 1fr;
    }

    .recipe-intro,
    .recipe-section {
        padding: 1.1rem;
    }

    .recipe-hero {
        max-height: none;
    }
}

.recipe-header {
    display: block;
}

.recipe-intro {
    display: block;
    padding: 1.5rem;
}

.recipe-intro h1,
.recipe-description,
.recipe-byline,
.recipe-tags {
    display: block;
}

.recipe-intro h1 {
    margin-top: 0;
}

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.about-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.035);
}

.about-logo {
    display: block;
    width: 100%;
    height: auto;
}

.about-content h1 {
    margin: 0 0 0.75rem;
    color: #e7c84a;
}

.about-lead {
    font-size: 1.15rem;
    color: #e7c84a;
}

.about-content p {
    line-height: 1.7;
}

@media (max-width: 650px) {
    .about-card {
        grid-template-columns: 1fr;
    }

    .about-logo {
        width: 140px;
        margin: 0 auto;
    }
}

.form-errors {
    max-width: 760px;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(231, 200, 74, 0.35);
    border-radius: 0.7rem;
    background: rgba(231, 200, 74, 0.08);
}

.form-errors strong {
    color: #e7c84a;
}

.form-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.form-errors li {
    margin: 0.2rem 0;
}

.knowledge-card {
    display: block;
}

.knowledge-content {
    max-width: 800px;
}

.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 760px;
    margin: 0 auto;
    background: #10271d;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 1rem;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent p {
    margin: 0;
    color: #f3f1e8;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent button {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font: inherit;
    cursor: pointer;
}

#cookie-essential {
    background: transparent;
    color: #f3f1e8;
    border: 1px solid rgba(243, 241, 232, 0.5);
}

#cookie-accept {
    background: #d4af37;
    color: #10271d;
    border: 1px solid #d4af37;
    font-weight: 600;
}

.cookie-settings-link {
    background: none;
    border: 0;
    padding: 0;
    color: #d4af37;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-settings-link:hover {
    color: #f0cf58;
} 

@media (max-width: 700px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent button {
        width: 100%;
    }   
}