/*
 * site.css (airfryer, Arany design) - tokens, buttons, section title, then the starter helpers below.
 * The shared affiliate partials rely on the classes .btn, .btn-solid, .btn-line, .szekcio-cim,
 * .szekcio-cim--bal (+ --kicsi, --ink), ul.lista-pont, ol.list-plain and the colour tokens below; they are neutral by themselves.
 */
:root {
  --ink: #393e41; --text: #393e41; --soft: #4f5457; --paper: #ffffff; --head: #fffbeb;
  --egg: #f9f9f9; --band: #fff3c2; --grey: #ececea; --hair: #e6e3d8; --card: #ddd8c6;
  --accent: #ffcc00; --accent-hover: #ffda47; --tag: #ffe270; --box: #ffda47;
  --nav: #ffe270; --foot: #26292b; --foottext: #ecebe6;
}
body { color: var(--text); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
input::placeholder { color: #6b6f72; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Buttons: the label is always dark, also on yellow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  font-family: 'Oswald', 'Arial Narrow', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-sizing: border-box;
}
.btn-solid { background: var(--accent); color: var(--ink); border: 1px solid var(--ink); }
.btn-solid:hover, .btn-solid[aria-pressed="true"] { background: var(--accent-hover); color: var(--ink); text-decoration: none; }
.btn-solid[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--head); text-decoration: none; }
.btn-line[aria-pressed="true"] { background: var(--accent); color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
[hidden] { display: none !important; }

/* Section title: large centred Oswald title, 2px gunmetal line + 6px yellow stripe under it. */
.szekcio-cim { text-align: center; }
.szekcio-cim > h2, .szekcio-cim > h1 {
  margin: 0; font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 700;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em;
}
.szekcio-cim::after {
  content: ''; display: block; height: 6px; margin-top: 12px;
  background: var(--accent); border-top: 2px solid var(--ink);
}

/* Left-aligned variant for in-page blocks (product/recipe pages): 40px title, 6px stripe.
   --kicsi: 32px title for secondary blocks; --ink: all-ink stripe (on the yellow band). */
.szekcio-cim.szekcio-cim--bal { text-align: left; }
.szekcio-cim--bal > h2, .szekcio-cim--bal > h1 { font-size: clamp(28px, 4vw, 40px); }
.szekcio-cim--bal.szekcio-cim--kicsi > h2 { font-size: clamp(24px, 3.5vw, 32px); }
.szekcio-cim--bal::after { height: 4px; margin-top: 6px; }
.szekcio-cim--ink::after { background: var(--ink); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--egg); }
::-webkit-scrollbar-thumb { background: var(--card); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

/* Reveal on Scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Vízszintes görgetősáv elrejtése (mobil swipe-carouselhez) — Tailwindben nincs alap utility */
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Text resizer — a cikktörzs (.prose) alap betűméretét skálázza 3 fokozatban.
   A .prose belső méretei em-alapúak, így a címek/idézetek arányosan nőnek.
   Az osztály a <html>-en van (site.js + head anti-FOUC), localStorage-ban megjegyezve. */
.reading-size-1 .prose { font-size: 1.25rem; }
.reading-size-2 .prose { font-size: 1.4375rem; }
/* Aktív fokozat gombja */
[data-text-size][aria-pressed="true"] {
  background-color: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* Highlight underline effect */
.highlight-text {
  background: linear-gradient(120deg, var(--band) 0%, var(--band) 100%);
  background-repeat: no-repeat; background-size: 100% 0.4em; background-position: 0 88%;
  transition: background-size 0.25s ease-in;
}
.highlight-text:hover { background-size: 100% 88%; }

/* FAQ details animation helpers */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .5s ease-in-out; }
@keyframes sweep { 0% {opacity: 0; transform: translateY(-10px)} 100% {opacity: 1; transform: translateY(0)} }
.rotate-icon { transition: transform 0.3s ease; }
details[open] .rotate-icon { transform: rotate(180deg); }

/* FAQ accordion (hcms-faq — engine-generált GYIK blokk) */
.hcms-faq { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin: 1.5rem 0; background: #f9f9f9; padding: 0 1.25rem; } /* light grey band: Gyuri, 2026-10-07 */
.hcms-faq details + details { border-top: 1px solid var(--hair); }
.hcms-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 0; cursor: pointer; font-weight: 600; color: var(--ink);
  transition: color 0.15s ease;
}
.hcms-faq__q:hover { color: var(--soft); }
.hcms-faq__icon {
  flex: 0 0 auto; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform 0.3s ease;
}
details[open] > .hcms-faq__q .hcms-faq__icon { transform: rotate(-135deg); }
.hcms-faq__a { padding: 0 0 1rem; color: var(--soft); }
.hcms-faq__a p { margin: 0 0 0.75rem; }
.hcms-faq__a p:last-child { margin-bottom: 0; }

/* Blockquote styling */
.quote {
  border-left: 4px solid var(--ink);
  background-color: var(--egg);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.quote p { margin: 0; }

/* Code block styling */
pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 1.25rem;
  border-radius: 0;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}
/* A sablonok prose-wrapperén lévő prose-code:* utility (sage-tint háttér + zöld szöveg)
   a <pre>-n belüli code-ra is rászivárog. Itt felülírjuk: a kódblokkban a code legyen
   átlátszó hátterű + világos (a pre öröklött színe). Az inline-kód pillek érintetlenek. */
.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Inline code */
code {
  background-color: var(--grey);
  color: var(--ink);
  padding: 0.2rem 0.4rem;
  border-radius: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Highlighted text (mark) */
mark {
  background-color: #fef08a;
  color: var(--ink);
  padding: 0.1rem 0.2rem;
  border-radius: 0;
}

/* Strikethrough */
del {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Széles táblázatok a cikktörzsben — vízszintesen görgethetők, hogy ne folyjanak túl
   (a WordPress-importált <table class="has-fixed-layout"> is, ami nem .md-table). */
.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table.has-fixed-layout {
  table-layout: auto;
}

/* Markdown table styling */
.md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}
.md-table thead,
.prose .md-table thead {
  background-color: #1f2937 !important;
  color: #ffffff !important;
}
.md-table th,
.prose .md-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #374151;
  color: #ffffff !important;
}
.md-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}
.md-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}
.md-table tbody tr:hover {
  background-color: #f3f4f6;
}
.md-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
}

/* List styling with visible bullets */
ul {
  list-style-type: disc !important;
  padding-left: 2rem !important;
  margin: 1rem 0 !important;
}
ul li {
  display: list-item !important;
  margin: 0.5rem 0 !important;
  line-height: 1.6 !important;
}

/* Ordered list styling */
ol {
  list-style-type: decimal !important;
  padding-left: 2rem !important;
  margin: 1rem 0 !important;
}
ol li {
  display: list-item !important;
  margin: 0.5rem 0 !important;
  line-height: 1.6 !important;
}

/* Learning-path component renders its own number badges and uses a flex/grid
   layout — opt it out of the global markdown list styling above (decimal
   markers, indent, list-item display) which would otherwise duplicate the
   numbering and break the badge-beside-text layout. */
.learning-path ol,
.learning-path ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
.learning-path li {
  display: flex !important;
  margin: 0 !important;
}

/* Plain list opt-out: hardcoded theme lists (pl. nyitóoldali hírek-ticker), amelyek
   ki akarnak lépni a fenti globális markdown ul/li stílus (disc marker, behúzás,
   li-margó, list-item display) alól. A saját Tailwind-osztályaikkal formázódnak. */
ul.list-plain, ol.list-plain {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
ul.list-plain li, ol.list-plain li {
  display: flex !important;
  margin: 0 !important;
  line-height: normal !important;
}

/* Bulleted list for pro/con and fact boxes on product/recipe pages (20px indent, 8px gap). */
ul.lista-pont { padding-left: 20px !important; margin: 0 !important; }
ul.lista-pont li { margin: 0 0 8px !important; line-height: 1.6 !important; }
ul.lista-pont li:last-child { margin-bottom: 0 !important; }

/* Image figure with caption */
.img-figure {
  margin: 1.5rem 0;
  text-align: center;
}
.img-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}
.img-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

/* Global anchor offset so fixed nav won't cover targets */
:target {
  scroll-margin-top: 96px;
}

/* Content links styling - for internal auto-linked and regular links.
   Newspaper stílus: fekete szöveg, fekete aláhúzás, nincs kiemelő háttér. */
.prose a,
.prose-slate a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.prose a:hover,
.prose-slate a:hover {
  text-decoration-thickness: 2px;
  background-color: var(--grey);
}
/* Callout styling (Obsidian-style) */
.callout {
  border-left: 4px solid;
  border-radius: 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background-color: #f8fafc;
}

.callout-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-icon {
  font-size: 1.2rem;
}

.callout-content {
  margin-top: 0.75rem;
}

.callout-content p:first-child {
  margin-top: 0;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Callout type specific colors */
.callout-note {
  border-left-color: #3b82f6;
  background-color: #eff6ff;
}

.callout-tip {
  border-left-color: #10b981;
  background-color: #f0fdf4;
}

.callout-info {
  border-left-color: #06b6d4;
  background-color: #ecfeff;
}

.callout-todo {
  border-left-color: #8b5cf6;
  background-color: #f5f3ff;
}

.callout-success {
  border-left-color: #22c55e;
  background-color: #f0fdf4;
}

.callout-question {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
}

.callout-warning {
  border-left-color: #f59e0b;
  background-color: #fffbeb;
}

.callout-failure {
  border-left-color: #ef4444;
  background-color: #fef2f2;
}

.callout-danger {
  border-left-color: #dc2626;
  background-color: #fef2f2;
}

.callout-bug {
  border-left-color: #ec4899;
  background-color: #fdf2f8;
}

.callout-example {
  border-left-color: #6366f1;
  background-color: #eef2ff;
}

.callout-quote {
  border-left-color: #64748b;
  background-color: #f8fafc;
  font-style: italic;
}

/* Task list styling */
.task-list-item {
  list-style: none;
  position: relative;
  padding-left: 0;
}

.task-list-item input[type="checkbox"] {
  margin-right: 0.5rem;
  cursor: default;
  width: 1rem;
  height: 1rem;
  accent-color: #22c55e;
}

/* ── CTA — [cta url="..." label="..." style="button|box" text="..."] shortcode ──
   A gomb színét/hátterét a Tailwind bg-brand-terracotta / text-white osztályok adják
   (tailwind.css utoljára tölt → nyer). Itt csak a prose-aláhúzást ütjük ki és a
   layout/box-panel stílust adjuk meg saját osztályokkal (nem purge-öl a Tailwind). */
.hcms-cta {
  margin: 2rem 0;
  text-align: center;
}
/* Kétosztályos szelektor (0,2,0) — felülírja a .prose a sárga highlighter szabályt (0,1,1),
   így a CTA gomb a márka-terracotta lesz (mint a Hírlevél gomb), a site link-kiemelő érintetlen. */
.hcms-cta .hcms-cta__btn {
  display: inline-block;
  background-color: var(--ink); /* newspaper ink */
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.9rem 1.9rem;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.hcms-cta .hcms-cta__btn:hover {
  background-color: var(--foot);
  color: #ffffff;
  transform: translateY(-1px);
}
.hcms-cta .hcms-cta__btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
/* Box variáns — keretezett panel rövid szöveggel + gombbal */
.hcms-cta--box {
  background-color: var(--egg); /* brand sand */
  border: 1px solid var(--hair); /* brand line */
  border-radius: 0;
  padding: 1.75rem;
}
.hcms-cta__text {
  margin: 0 0 1.1rem;
  color: var(--text); /* brand inkSoft */
  font-size: 1.05rem;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce){ .reveal{ transition:none; opacity:1; transform:none; } }
/* List items read at the paragraph line height (32px at 18px body): Gyuri, 2026-10-07 */
.prose ul li, .prose ol li, .prose li p { line-height: 1.7777778 !important; } /* beats the global ul li / ol li !important 1.6 */

/* Editorial boxes (> [!roviden] / [!fontos] / [!tipp]): soft tinted panel, small uppercase title (Gyuri, 2026-10-07) */
.callout.callout-roviden, .callout.callout-fontos, .callout.callout-tipp { border-left: 0; border-radius: 2px; padding: 1.5rem 1.6rem; margin: 2rem 0; }
.callout-roviden { background-color: #ebeee7; }
.callout-fontos { background-color: #ffe5ec; }
.callout-tipp { background-color: #e3f2fd; }
.callout-roviden .callout-title, .callout-fontos .callout-title, .callout-tipp .callout-title {
  font-family: Oswald, "Arial Narrow", sans-serif; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem;
}
.callout-roviden .callout-content ul, .callout-fontos .callout-content ul, .callout-tipp .callout-content ul { margin: 0.5rem 0 0 !important; }
