/*
Theme Name: Domaća Kuhinja
Description: Moderan editorial food magazine — čist, topao, pregledan.
Version: 2.0
Author: Teodor
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --bg:            #FAF7F2;
  --bg-alt:        #F3EEE5;
  --surface:       #FFFFFF;
  --text:          #1A1512;
  --text-muted:    #6B655E;
  --text-soft:     #9A938A;
  --border:        #EAE3D7;
  --accent:        #C8553D;
  --accent-dark:   #A8432F;
  --accent-soft:   #F5E2DC;
  --olive:         #6B7A4F;
  --olive-soft:    #E8EBDF;
  --gold:          #D4A84B;

  --font-serif:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.1875rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.75rem;
  --fs-3xl:  3.75rem;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(26, 21, 18, 0.04), 0 1px 3px rgba(26, 21, 18, 0.06);
  --sh-md: 0 4px 12px rgba(26, 21, 18, 0.06), 0 2px 4px rgba(26, 21, 18, 0.04);
  --sh-lg: 0 16px 40px rgba(26, 21, 18, 0.10), 0 4px 12px rgba(26, 21, 18, 0.05);
  --sh-xl: 0 30px 70px rgba(26, 21, 18, 0.15);

  --container: 90%;
  --container-narrow: 1100px;
  --nav-h: 78px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 160ms var(--ease);
  --t-med:  280ms var(--ease);
  --t-slow: 500ms var(--ease);
}

/* =========================================================
   2. RESET
   ========================================================= */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* =========================================================
   3. TIPOGRAFIJA
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5vw, var(--fs-3xl)); font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   4. LAYOUT
   ========================================================= */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}
.container-narrow { width: 90%; max-width: var(--container-narrow); margin: 0 auto; padding: 0; }
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-7) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.section-head .title { max-width: 620px; }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head p { color: var(--text-muted); margin: 0; }
.section-head .more {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-head .more i { transition: transform var(--t-fast); }
.section-head .more:hover i { transform: translateX(4px); }

/* =========================================================
   5. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { color: var(--bg); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--sh-sm); }
.btn-ghost:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--border); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-xs); }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--fs-base); }

/* =========================================================
   6. HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.1rem;
}
.primary-nav { display: flex; gap: var(--sp-6); margin-left: var(--sp-4); }
.nav-auth { display: none; }
.primary-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: var(--sp-2) 0;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.primary-nav a:hover::after,
.primary-nav a.active::after { transform: scaleX(1); }

.header-search {
  flex: 1;
  max-width: 360px;
  margin-left: auto;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.header-search i {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-alt); }

/* =========================================================
   7. RECIPE CARD
   ========================================================= */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text);
}
.card-fav {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  color: var(--text);
  box-shadow: var(--sh-sm);
  transition: all var(--t-fast);
}
.card-fav:hover, .card-fav.active { color: var(--accent); transform: scale(1.1); }
.card-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.card-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.card-meta i { color: var(--accent); }
.card-meta .rating i { color: var(--gold); }

.grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* =========================================================
   8. HERO
   ========================================================= */
.hero { padding: var(--sp-8) 0 var(--sp-9); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: var(--sp-4); display: inline-block; }
.hero-text h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: var(--sp-5);
}
.hero-text h1 em { font-style: italic; color: var(--accent); }
.hero-text .lead { margin-bottom: var(--sp-6); max-width: 520px; }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  box-shadow: var(--sh-xl);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,21,18,0.55), transparent 50%);
}
.hero-media .tag {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  color: #fff;
  z-index: 2;
}
.hero-media .tag .eyebrow { color: #fff; opacity: 0.85; }
.hero-media .tag h3 { color: #fff; margin-top: var(--sp-2); font-size: var(--fs-xl); }

.hero-stats {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.hero-stats .stat span { font-size: var(--fs-xs); color: var(--text-muted); }

/* =========================================================
   9. CATEGORY TILES
   ========================================================= */
.cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
}
.cat-tile {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
  display: block;
  transition: transform var(--t-med);
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,21,18,0.75), rgba(26,21,18,0.1) 60%);
}
.cat-tile span {
  position: absolute;
  left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-md);
  z-index: 2;
  line-height: 1.2;
}

/* =========================================================
   10. NEWSLETTER
   ========================================================= */
.newsletter {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200, 85, 61, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 168, 75, 0.18), transparent 50%);
}
.newsletter > * { position: relative; }
.newsletter .eyebrow { color: var(--gold); }
.newsletter h2 { color: var(--bg); margin: var(--sp-3) 0; }
.newsletter p { color: rgba(250, 247, 242, 0.75); max-width: 520px; margin: 0 auto var(--sp-5); }
.newsletter form {
  display: flex;
  gap: var(--sp-2);
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
}
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: var(--fs-sm);
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input:focus { outline: none; }

/* =========================================================
   11. FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-alt);
  padding: var(--sp-8) 0 var(--sp-5);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.footer-grid ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-grid a { font-size: var(--fs-sm); color: var(--text); }
.footer-about p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-3); max-width: 340px; }
.footer-socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  box-shadow: var(--sh-sm);
  transition: all var(--t-fast);
}
.footer-socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* =========================================================
   12. FORMS
   ========================================================= */
.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  padding: 0.875rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

.auth-split {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
}
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,85,61,0.2), rgba(26,21,18,0.4));
}
.auth-visual .quote {
  position: absolute; left: var(--sp-7); right: var(--sp-7); bottom: var(--sp-7);
  color: #fff; z-index: 2;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  line-height: 1.3;
  max-width: 480px;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7);
}
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.auth-form .lead { margin-bottom: var(--sp-6); }
.auth-form .btn { width: 100%; }
.auth-form .alt { text-align: center; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--text-muted); }
.auth-form .alt a { color: var(--accent); font-weight: 600; }

/* =========================================================
   13. SINGLE RECIPE
   ========================================================= */
.recipe-hero {
  position: relative;
  height: 64vh;
  min-height: 480px;
  overflow: hidden;
}
.recipe-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.recipe-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,21,18,0.85) 0%, rgba(26,21,18,0.1) 60%, transparent 100%);
}
.recipe-hero .inner {
  position: absolute;
  left: 0; right: 0; bottom: var(--sp-8);
  z-index: 2;
  color: #fff;
}
.recipe-hero .eyebrow { color: #fff; opacity: 0.9; }
.recipe-hero h1 {
  color: #fff;
  max-width: 860px;
  margin: var(--sp-3) 0 var(--sp-4);
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.recipe-hero .lead { color: rgba(255,255,255,0.85); max-width: 640px; }

.recipe-meta-bar {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-top: calc(-1 * var(--sp-6));
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.recipe-meta-items { display: flex; gap: var(--sp-7); flex-wrap: wrap; }
.recipe-meta-items .item { display: flex; align-items: center; gap: var(--sp-3); }
.recipe-meta-items .item i {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1rem;
}
.recipe-meta-items .item small {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.recipe-meta-items .item strong {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
}
.recipe-actions { display: flex; gap: var(--sp-2); }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.icon-btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.recipe-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-8);
  padding: var(--sp-8) 0;
}
.ingredients {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  align-self: start;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
}
.ingredients h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.servings {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 0.3rem;
  margin-bottom: var(--sp-5);
}
.servings button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-sm);
  font-weight: 700;
  color: var(--accent);
}
.servings .count { font-weight: 600; font-size: var(--fs-sm); }
.ingredients ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.ingredients li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
  user-select: none;
}
.ingredients li:hover { background: var(--bg); }
.ingredients li .check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.ingredients li.checked .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.ingredients li.checked .check::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
}
.ingredients li.checked .name { text-decoration: line-through; color: var(--text-soft); }
.ingredients li .amount {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  font-size: var(--fs-sm);
}

.steps h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-6); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.step-content h4 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.step-content p { color: var(--text-muted); line-height: 1.75; }
.step-content img {
  margin-top: var(--sp-4);
  border-radius: var(--r-md);
  width: 100%;
  box-shadow: var(--sh-md);
}

.read-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 99;
}
.read-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width 80ms linear;
}

/* =========================================================
   14. BREADCRUMBS / FILTERS
   ========================================================= */
.breadcrumbs {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: var(--sp-5) 0 var(--sp-2);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.5; }

.filters {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
  margin-bottom: var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
}
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--border); }
.chip.active { background: var(--accent); color: #fff; }

/* =========================================================
   15. RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { gap: var(--sp-6); }
  .recipe-body { grid-template-columns: 1fr; }
  .ingredients { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  :root { --nav-h: 68px; }
  .header-search { display: none; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }

  /* Na telefonu u traci ostaju samo znak i hamburger. Dugmad Prijava i
     Registracija su gurala hamburger preko ivice ekrana. */
  .header-actions .btn { display: none; }
  /* Pretraga je nosila `margin-left:auto` i gurala dugmad udesno; kad se ona
     sakrije, hamburger ostane zalijepljen za naziv. Zato guranje ide ovdje. */
  .header-actions { gap: 0; margin-left: auto; }
  .site-header .inner { gap: var(--sp-3); flex-wrap: nowrap; }
  .brand { min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .nav-auth {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    margin-top: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
  }

  /* Mobilni meni: panel ispod zaglavlja. Ranije se otvarao inline stilovima
     iz JS-a, pa je ostajao bez pozicionog konteksta i padao van ekrana. */
  .site-header .inner { position: relative; }
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    margin: 0;
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md, 14px);
    box-shadow: var(--sh-lg, 0 18px 40px rgba(0,0,0,.14));
    z-index: 60;
  }
  .primary-nav.open a { font-size: var(--fs-md); padding: var(--sp-2) 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4/3; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .section { padding: var(--sp-7) 0; }
  .newsletter { padding: var(--sp-6) var(--sp-5); }
  .recipe-meta-bar { padding: var(--sp-4); }
  .recipe-meta-items { gap: var(--sp-5); }
  .step { grid-template-columns: 48px 1fr; gap: var(--sp-4); }
  .step-num { width: 48px; height: 48px; font-size: var(--fs-md); }
}
@media (max-width: 520px) {
  .grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-stats { flex-wrap: wrap; gap: var(--sp-4); }
}

/* =========================================================
   16. MARKETPLACE / OGLASI
   ========================================================= */
.oglas-card .oglas-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: var(--sp-2);
}
.oglas-card.featured {
  border: 2px solid var(--gold);
  position: relative;
}
.featured-badge {
  background: var(--gold) !important;
  color: var(--text) !important;
  left: auto !important;
  right: var(--sp-3);
  top: calc(var(--sp-3) + 32px) !important;
}

/* =========================================================
   17. AFFILIATE LINK
   ========================================================= */
.aff-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  border: 1.5px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin: var(--sp-3) 0;
  transition: all var(--t-fast);
  text-decoration: none;
}
.aff-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.aff-link i { color: var(--accent); }
.aff-link:hover i { color: #fff; }
.aff-price {
  font-family: var(--font-serif);
  font-weight: 700;
  margin-left: auto;
  padding-left: var(--sp-3);
}
.aff-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.5);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-pill);
  margin-left: var(--sp-2);
}

/* =========================================================
   18. AD SLOT
   ========================================================= */
.ad-slot {
  margin: var(--sp-6) 0;
  text-align: center;
  position: relative;
}
.ad-slot .ad-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: var(--sp-2);
}
.ad-placeholder {
  display: inline-block;
  min-width: 320px;
  min-height: 90px;
  padding: var(--sp-5);
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, var(--bg) 10px, var(--bg) 20px);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sponzorisani recept badge */
.sponsored-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
