/* ===========================================================
   AI 10 — prémium minimalista sötét téma
   =========================================================== */

:root {
  --bg:        #0B0C0E;
  --bg-soft:   #0F1115;
  --surface:   #16181D;
  --surface-2: #1C1F26;
  --border:    #23262D;
  --border-2:  #2C303A;

  --text:      #ECEDEE;
  --text-soft: #B6BBC4;
  --text-mute: #868D99;

  /* Alapszín: zöld gradiens (accent -> accent-2). Korábban lila volt. */
  --accent:    #10B981;
  --accent-2:  #34D399;
  --accent-dim:#123528;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      760px;

  --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Space Grotesk', var(--font);

  --shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 10px 30px -12px rgba(0,0,0,.6);
}

/* category accents */
[data-cat="models"]     { --cat: #6D5EF6; }
[data-cat="research"]   { --cat: #34D6C8; }
[data-cat="business"]   { --cat: #F2B33D; }
[data-cat="tools"]      { --cat: #4ADE80; }
[data-cat="regulation"] { --cat: #FB7185; }
[data-cat="society"]    { --cat: #C084FC; }

/* rank scale: 1 = red ... 10 = blue */
.cards .card:nth-child(1)  { --cat: hsl(0,   78%, 60%); }
.cards .card:nth-child(2)  { --cat: hsl(24,  78%, 58%); }
.cards .card:nth-child(3)  { --cat: hsl(44,  80%, 55%); }
.cards .card:nth-child(4)  { --cat: hsl(70,  62%, 52%); }
.cards .card:nth-child(5)  { --cat: hsl(110, 55%, 52%); }
.cards .card:nth-child(6)  { --cat: hsl(150, 58%, 50%); }
.cards .card:nth-child(7)  { --cat: hsl(176, 62%, 50%); }
.cards .card:nth-child(8)  { --cat: hsl(196, 72%, 56%); }
.cards .card:nth-child(9)  { --cat: hsl(212, 78%, 60%); }
.cards .card:nth-child(10) { --cat: hsl(224, 80%, 62%); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #14161c 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Felső dekoratív rácsháló + accent-glow ---------- */
.top-grid {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 400px;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  /* dupla, kétszínű glow + finomabb perspektivikus rácsháló */
  background-image:
    radial-gradient(680px 300px at 12% -60px, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%),
    radial-gradient(520px 240px at 88% -40px, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    linear-gradient(to right, color-mix(in srgb, var(--border-2) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border-2) 70%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  -webkit-mask-image: radial-gradient(760px 360px at 22% 4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(760px 360px at 22% 4%, #000 0%, transparent 72%);
  opacity: .7;
}
/* lassú, alig észrevehető élő pulzálás a glow-n */
.top-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 16% -30px, color-mix(in srgb, var(--accent) 40%, transparent), transparent 65%);
  -webkit-mask-image: radial-gradient(760px 360px at 22% 4%, #000 0%, transparent 72%);
  mask-image: radial-gradient(760px 360px at 22% 4%, #000 0%, transparent 72%);
  animation: topGridGlow 7s ease-in-out infinite;
}
@keyframes topGridGlow {
  0%, 100% { opacity: .35; transform: translateX(0); }
  50%      { opacity: .8;  transform: translateX(18px); }
}
@media (prefers-reduced-motion: reduce) {
  .top-grid::before { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,12,14,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 88px;
  justify-content: center;
  padding-block: 10px;
}
/* 1. sor: brand bal, dátum-nav jobb — mindig egy sorban, a nav nem ugrik le */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: nowrap;
  min-width: 0;
}
.header-nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; justify-content: flex-end; flex: 0 0 auto; }

/* 2. sor: értékígéret balra + állandó heti-belépő jobbra */
.header-meta {
  display: flex; align-items: baseline; justify-content: flex-end;
  gap: 12px; min-width: 0;
}
.brand-tagline {
  flex: 1 1 auto; min-width: 0;
  font-size: 12.5px; font-weight: 400; color: var(--text-mute);
  letter-spacing: -.005em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.header-weekly {
  flex: 0 0 auto; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--accent-2);
}
.header-weekly:hover { filter: brightness(1.12); }

/* ---------- Brand lockup: "AI" monogram + "szemle" + tagline ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0; flex: 0 1 auto;
  font-family: var(--display);
  white-space: nowrap;
}
.brand-logo-wrap { position: relative; display: inline-block; flex: 0 0 auto; line-height: 0; }
.brand-logo { width: auto; height: 56px; display: block; }
/* időnként végigfutó fény az "AI" logón (a PNG alfája maszkolja a glyphre) */
.brand-logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../img/ai-logo.png) center / contain no-repeat;
          mask: url(../img/ai-logo.png) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.85) 50%, transparent 62%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  background-position: -150% 0;
  animation: brandShine 5s ease-in-out infinite;
}
@keyframes brandShine {
  0%   { background-position: -150% 0; }
  75%  { background-position:  150% 0; }
  100% { background-position:  150% 0; }
}
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
/* a monogram adja az "AI"-t, a szöveg csak "szemle" — vékony, fehér */
.brand-word { font-size: 40px; font-weight: 300; margin-top: -5px; letter-spacing: -.01em; line-height: .9; color: var(--text); }
.brand-sub {
  font-size: 11px; font-weight: 500; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute);
}
.brand-ai-sm { color: #B4E84A; font-weight: 600; }

/* ---------- Date nav ---------- */
.datenav {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: nowrap; min-width: 0;
}
/* Léptető nyilak — keret nélkül, halkan; csak a pirula keretezett */
.datenav-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--text-mute);
  font-size: 17px;
  transition: color .15s, background .15s;
}
.datenav-btn:hover { color: var(--accent-2); background: var(--surface-2); }
.datenav-btn.is-disabled { opacity: .3; pointer-events: none; }

/* Custom dátumválasztó: natív input rejtve, fölötte saját stílusú pirula (a blokk fókusza) */
.datenav-date {
  position: relative;
  flex: 0 1 auto; min-width: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.datenav-date:hover { border-color: var(--border-2); background: var(--surface-2); }
.datenav-date:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.datenav-date .datenav-cal { flex: 0 0 auto; color: var(--accent-2); display: inline-flex; }
.datenav-date .datenav-cal svg { display: block; }
.datenav-date-text {
  flex: 0 1 auto; min-width: 0;
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.datenav-date-text .dn-short { display: none; }
.datenav-date .datenav-chev { flex: 0 0 auto; color: var(--text-mute); transition: color .15s; }
.datenav-date:hover .datenav-chev { color: var(--accent-2); }
/* natív input teljesen átlátszó, lefedi a pirulát → kattintásra natív naptár nyílik */
.datenav-date input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer;
  color-scheme: dark;
}
.datenav-date input::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; cursor: pointer;
}

/* „Ma" — halk, lágy accent chip, keret nélkül */
.datenav-today {
  flex: 0 0 auto;
  height: 34px; display: inline-flex; align-items: center;
  padding: 0 12px; border-radius: 9px;
  border: 0; background: var(--accent-dim);
  color: var(--accent-2); font-weight: 600; font-size: 13px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.datenav-today:hover { background: var(--accent); color: #0B0C0E; }

/* ---------- Demo banner ---------- */
.demo-banner {
  margin-top: 14px;
  font-size: 13px; color: var(--text-mute);
  display: flex; align-items: center; gap: 8px;
}
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Day head ---------- */
.day-head { padding: 30px 0 28px; }
/* AI World 10 hero/trust refinement: a dátum az eyebrow-ban hangsúlyos marad,
   a generikus alcím (day-date) kisebb, hogy ne nyomja el a hero értékígéretet */
.day-eyebrow {
  margin: 0 0 8px; font-size: 14px; font-weight: 600;
  letter-spacing: .02em; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.day-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.day-date {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 4vw, 30px); letter-spacing: -.02em; line-height: 1.15;
  color: var(--text);
}
.day-summary { margin: 14px 0 0; color: var(--text-soft); font-size: 17px; max-width: 62ch; }

/* ---------- Cards ---------- */
.cards { list-style: none; margin: 0; padding: 0 0 40px; display: flex; flex-direction: column; gap: 16px; counter-reset: none; }
.card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cat) 40%, transparent), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .18s;
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-2); }
.card:hover::before { opacity: 1; }

.card-rank {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--cat);
  letter-spacing: -.04em;
  padding-top: 2px;
}
.card-body { min-width: 0; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.badge {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 30%, transparent);
  padding: 3px 10px; border-radius: 999px;
}
.score {
  margin-left: auto; font-size: 12px; font-weight: 600;
  color: var(--text-mute); font-variant-numeric: tabular-nums;
  border: 1px solid var(--border-2); border-radius: 999px; padding: 2px 9px;
}
.card-title {
  margin: 0 0 8px; font-size: 21px; line-height: 1.32; font-weight: 600;
  letter-spacing: -.01em; color: var(--text);
}
.card-summary { margin: 0; color: var(--text-soft); }
.card-why {
  margin: 12px 0 0; padding: 10px 14px;
  background: var(--surface-2); border-left: 2px solid var(--cat);
  border-radius: 0 8px 8px 0; font-size: 15px; color: var(--text-soft);
}
.why-label { color: var(--text); font-weight: 600; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px; color: var(--text-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.chip-pub { font-weight: 600; }
.chip-ext { color: var(--text-mute); font-size: 12px; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { font-size: 12px; color: var(--text-mute); }

/* ---------- Napi extrák (mire figyelj) ----------
   Külön zóna: a feed bordered kártyáitól és a footer accent-bandjétől
   eltérően EGY összefüggő, finoman tintált panel. */
.day-extras {
  display: flex; flex-direction: column; gap: 4px;
  margin: 44px 0 8px;
  padding: 26px 26px 28px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%,
      var(--bg-soft) 70%);
  box-shadow: var(--shadow);
}
.day-extras-eyebrow {
  margin: 0 0 6px; font-family: var(--display);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
/* belső blokkok: nincs saját kártya-króm, hairline választja el őket */
.extra-block {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.extra-block:first-of-type { border-top: none; padding-top: 8px; }
.extra-title {
  margin: 0 0 10px; font-family: var(--display); font-weight: 700;
  font-size: 17px; letter-spacing: -.01em; color: var(--text);
  display: inline-flex; align-items: center; gap: 9px;
}
.extra-title::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.extra-sub { margin: 0 0 14px; color: var(--text-mute); font-size: 14px; }
.extra-narrative { margin: 0; color: var(--text-soft); max-width: 64ch; }
.extra-foot { margin: 4px 2px 0; font-size: 14px; color: var(--text-mute); }
.extra-foot a { color: var(--accent-2); font-weight: 600; }

/* Mire figyelj */
.watch-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.watch-list li {
  position: relative; padding-left: 26px; color: var(--text-soft);
}
.watch-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Témaszálak + Összefüggések korábbi napokkal */
.thread-list { display: flex; flex-direction: column; gap: 16px; }
.thread { position: relative; padding-left: 18px; }
.thread::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent);
}
.thread-link::before { background: var(--accent-2); box-shadow: 0 0 8px color-mix(in srgb, var(--accent-2) 55%, transparent); }
.thread-theme { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--text); }
.thread-text { margin: 0; color: var(--text-soft); max-width: 64ch; }

/* ---------- Heti összefoglaló ---------- */
.week-page { display: flex; flex-direction: column; gap: 16px; padding-bottom: 50px; }
.week-highlights { margin: 0; padding: 0; list-style: none; counter-reset: wh; display: flex; flex-direction: column; gap: 10px; }
.week-highlights a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 12px 16px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, transform .15s;
}
.week-highlights a:hover { border-color: var(--accent); transform: translateX(2px); }
.week-highlights li { counter-increment: wh; }
.wh-title { color: var(--text); font-weight: 600; }
.wh-title::before { content: counter(wh) ". "; color: var(--accent-2); font-family: var(--display); }
.wh-date { color: var(--text-mute); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.week-arcs { display: flex; flex-direction: column; gap: 14px; }
.arc { border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.arc-theme { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.arc-text { margin: 0; color: var(--text-soft); }

/* ---------- Empty / 404 ---------- */
.empty { text-align: center; padding: 80px 0 100px; }
.empty-glyph { font-family: var(--display); font-size: 64px; color: var(--border-2); line-height: 1; }
.empty-title { margin: 18px 0 8px; font-size: 24px; }
.empty-text { margin: 0 auto; color: var(--text-soft); max-width: 44ch; }
.empty-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: 12px; font-weight: 600; font-size: 15px;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0B0C0E; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Archive ---------- */
.archive-list { list-style: none; margin: 0; padding: 0 0 50px; display: flex; flex-direction: column; gap: 10px; }
.archive-item a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  transition: border-color .15s, transform .15s;
}
.archive-item a:hover { border-color: var(--accent); transform: translateX(2px); }
.archive-date { grid-row: 1; display: flex; align-items: baseline; gap: 12px; }
.archive-date-long { font-weight: 600; }
.archive-count { font-size: 12px; color: var(--text-mute); }
.archive-lead { grid-column: 1; grid-row: 2; color: var(--text-soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--text-mute); font-size: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 2px solid var(--accent); box-shadow: inset 0 1px 0 var(--border-2); margin-top: 64px; padding: 40px 0 25px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-tagline { margin: 0; color: var(--text-soft); }
.footer-links { display: flex; gap: 18px; justify-content: center; }
.footer-links a { color: var(--text-mute); font-size: 14px; }
.footer-links a:hover { color: var(--accent-2); }
.footer-fine { margin: 8px 0 0; color: var(--text-mute); font-size: 13px; max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { min-height: 56px; padding-block: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: auto; height: 30px; }
  .brand-word { font-size: 24px; }
  /* szűk fejlécben a lockup tagline-ja kifutna a dátum-nav alá — a meta-sor
     értékígérete (.brand-tagline) úgyis látszik, ezért itt elrejtjük */
  .brand-sub { display: none; }
  .brand-tagline { font-size: 11.5px; }
  .header-weekly { font-size: 12px; }
  .day-head { padding: 22px 0 18px; }
  .card { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .card-rank { font-size: 30px; -webkit-text-stroke-width: 1px; }
  .card-title { font-size: 19px; }
  /* szűk kijelzőn a dátum-nav egy sorban marad a brand mellett:
     rövid dátum, chevron elrejtve, kompakt elemek */
  .datenav { gap: 4px; }
  .datenav-btn { width: 30px; height: 30px; font-size: 16px; }
  .datenav-date { height: 30px; padding: 0 9px; gap: 6px; }
  .datenav-date-text { font-size: 13px; }
  .datenav-date-text .dn-full { display: none; }
  .datenav-date-text .dn-short { display: inline; }
  .datenav-date .datenav-chev { display: none; }
  .datenav-today { height: 30px; padding: 0 9px; font-size: 12.5px; }
  /* a „Hogyan készül?” lépések egymás alá kerülnek */
  .howto-steps { grid-template-columns: 1fr; }
  /* hírlevél: input + gomb egymás alá, teljes szélességben */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type=email] { min-width: 0; width: 100%; }
  .newsletter-form .btn-primary { width: 100%; justify-content: center; }
}

/* tablet: a dátum-nav a brand mellett marad, nem törik külön sorba */
@media (max-width: 760px) {
  .header-nav { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-end; }
}

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-size: 14px; border: 1px solid var(--border-2); }
.flash-ok { border-color: #2c6b46; background: #122418; color: #9be7b4; }
.flash-error { border-color: #7a3340; background: #2a1418; color: #ffb3bd; }
.flash-info { border-color: var(--accent-dim); background: #15132b; color: var(--accent-2); }
.flash-public { margin-top: 18px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; margin-bottom: 30px;
}
.newsletter-title { margin: 0 0 6px; font-size: 20px; font-family: var(--display); }
.newsletter-sub { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type=email] {
  flex: 1; min-width: 200px; height: 46px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 12px;
  color: var(--text); font-family: var(--font); font-size: 15px; color-scheme: dark;
}
.newsletter-form input[type=email]:focus { outline: none; border-color: var(--accent); }

/* ---------- „Hogyan készül?” bizalmi blokk (AI World 10 trust refinement) ---------- */
.howto {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0 0 34px;
  box-shadow: var(--shadow);
}
.howto-title { margin: 0 0 8px; font-size: 19px; font-family: var(--display); font-weight: 700; }
.howto-lead { margin: 0 0 18px; color: var(--text-soft); font-size: 15px; max-width: 64ch; }
.howto-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  counter-reset: none;
}
.howto-steps li {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.howto-num {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.howto-step-label { font-weight: 600; color: var(--text); font-size: 15px; }
.howto-step-desc { color: var(--text-mute); font-size: 13px; line-height: 1.5; }

/* ---------- Az oldalról (/rolunk) információs oldal ---------- */
.about-page { max-width: 72ch; margin: 0 auto; }
.about-head { padding: 30px 0 22px; }
.about-title { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 34px); letter-spacing: -.02em; }
.about-lead { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.6; }
.about-section { margin: 0 0 28px; }
.about-section h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.about-section p { margin: 0 0 12px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.about-section a { color: var(--accent-2); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.about-list { margin: 8px 0 0; padding-left: 20px; color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.about-back { margin: 8px 0 40px; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 14px; color: var(--text-soft); }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.cookie-table th { font-family: var(--display); font-weight: 700; color: var(--text); background: var(--bg-soft); }
.cookie-table code { font-size: 13px; }

/* ---------- Admin ---------- */
body.admin { background: var(--bg); }
.admin-bar { border-bottom: 1px solid var(--border); background: var(--bg-soft); position: sticky; top: 0; z-index: 10; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.admin-tag { margin-left: 8px; font-family: var(--font); font-size: 12px; color: var(--text-mute); border: 1px solid var(--border-2); padding: 2px 8px; border-radius: 999px; }
.admin-bar-actions { display: flex; align-items: center; gap: 14px; }
.admin-link { color: var(--text-mute); font-size: 14px; }
.admin-link:hover { color: var(--accent-2); }
.admin-main { padding: 28px 20px 80px; max-width: 1000px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { margin: 6px 0 8px; font-size: 26px; font-family: var(--display); }
.back-link { font-size: 13px; text-decoration: none; }
.muted { color: var(--text-mute); font-size: 13px; }

.inline-form { display: inline; }
.day-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.new-day { display: flex; gap: 8px; align-items: center; }
.new-day input { height: 38px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; color: var(--text); color-scheme: dark; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }

.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-2); }
.status-published { color: #9be7b4; border-color: #2c6b46; }
.status-draft { color: #f2b33d; border-color: #6b5424; }
.status-archived { color: var(--text-mute); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }

/* edit form */
.edit-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--text-mute); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--text); font-family: var(--font); font-size: 14px; padding: 9px 11px;
  color-scheme: dark; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }

.slot { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface); border-left: 3px solid var(--cat); }
.slot legend { font-family: var(--display); font-weight: 700; color: var(--cat); padding: 0 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.slot-grid .span2 { grid-column: span 2; }
.slot-grid .span4 { grid-column: 1 / -1; }

.save-bar { position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(0deg, var(--bg) 60%, transparent); }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { width: 100%; max-width: 360px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.login-brand { justify-content: center; margin-bottom: 18px; gap: 12px; }
.login-brand .brand-logo { width: auto; height: 50px; }
.login-brand .brand-word { font-size: 38px; }
/* admin fejléc: a lockup tagline elrejtve */
.brand-admin .brand-sub { display: none; }
.login-title { margin: 0 0 18px; font-size: 20px; }
.login-card .field { margin-bottom: 14px; }

@media (max-width: 640px) {
  .slot-grid { grid-template-columns: 1fr; }
  .slot-grid .span2, .slot-grid .span4 { grid-column: 1 / -1; }
}

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .4s ease both; }
  .cards .card:nth-child(1){animation-delay:.02s}.cards .card:nth-child(2){animation-delay:.05s}
  .cards .card:nth-child(3){animation-delay:.08s}.cards .card:nth-child(4){animation-delay:.11s}
  .cards .card:nth-child(5){animation-delay:.14s}.cards .card:nth-child(n+6){animation-delay:.16s}
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
