/* =========================================================
   Magyar Gyuláné portfólió
   Vilagos es sotet tema, harom nyelv
   ========================================================= */

:root {
  --accent: #8a4b6d;
  --accent-soft: #b57a99;
  --accent-ink: #ffffff;

  --bg: #f7f4f2;
  --bg-elev: #ffffff;
  --bg-soft: #efe9e6;
  --text: #241d21;
  --text-muted: #6b5f66;
  --border: #e2d8d4;
  --shadow: 0 1px 2px rgba(36, 29, 33, .05), 0 12px 30px rgba(36, 29, 33, .07);
  --shadow-sm: 0 1px 2px rgba(36, 29, 33, .06);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --accent: #d59ab8;
  --accent-soft: #b57a99;
  --accent-ink: #1a1418;

  --bg: #171317;
  --bg-elev: #211b20;
  --bg-soft: #2a222a;
  --text: #f2ebee;
  --text-muted: #b3a4ac;
  --border: #372e36;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .38);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------------- Fejlec ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }

/* Logo helykihagyas: ha van assets/img/logo.png, az jelenik meg, kulonben a keret */
.logo-slot {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  border: 1px dashed var(--accent-soft);
  color: var(--accent);
  font-size: 8px; font-weight: 700; letter-spacing: .04em; text-align: center;
  line-height: 1.1; padding: 3px; overflow: hidden;
}
.logo-slot.has-image { border: 0; padding: 0; }
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }

.brand-name { font-weight: 700; letter-spacing: .01em; font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--text-muted);
  padding: 8px 12px; border-radius: 999px; font-size: .93rem; font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-soft); }

.tools { display: flex; align-items: center; gap: 8px; }

.lang-group { display: flex; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.lang-group button {
  border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang-group button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */

.hero { padding: 64px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.14; margin: 0 0 10px;
}
.hero .subtitle { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.hero .lead { font-size: 1.05rem; color: var(--text-muted); max-width: 46ch; margin: 0 0 30px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-elev); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-quiet { background: transparent; color: var(--text-muted); padding: 10px 14px; }
.btn-quiet:hover { color: var(--text); background: var(--bg-soft); }

/* Hero kep helye */
.hero-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px;
  text-align: center; padding: 20px;
  border: 2px dashed var(--accent-soft); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--accent) 6%, transparent) 0 10px,
      transparent 10px 20px);
  color: var(--accent);
}
.media-placeholder strong { font-size: .95rem; letter-spacing: .1em; }
.media-placeholder span { font-size: .8rem; color: var(--text-muted); }

/* ---------------- Szekciok ---------------- */

section { padding: 56px 0; }
.section-head { margin-bottom: 30px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 6px;
}
.section-head p { color: var(--text-muted); margin: 0; }
.section-head h2::after {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 3px;
  background: var(--accent); margin-top: 12px;
}

.alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.about-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.about-text p { margin-top: 0; font-size: 1.02rem; }

.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.stat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 20px; min-width: 132px;
}
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--accent); font-family: var(--serif); }
.stat span { font-size: .82rem; color: var(--text-muted); }

/* Idovonal */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tl-head h3 { margin: 0; font-size: 1.08rem; }
.tl-period {
  font-size: .8rem; color: var(--text-muted);
  background: var(--bg-soft); padding: 2px 10px; border-radius: 999px;
}
.tl-role { color: var(--accent); font-weight: 600; font-size: .95rem; margin: 2px 0 8px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--text-muted); }
.tl-item li { margin-bottom: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chip-list li {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.alt .chip-list li { background: var(--bg); }
.chip-list li::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 9px;
  border-radius: 50%; background: var(--accent);
}

/* Oneletrajz kartyak */
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cv-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.alt .cv-card { background: var(--bg); }
.cv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.cv-flag { font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.cv-card h3 { margin: 0 0 12px; font-size: 1.12rem; }
.cv-links { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.file-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px;
  font-size: .85rem; font-weight: 600; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.file-link:hover { border-color: var(--accent); background: var(--bg-soft); }
.file-link svg { width: 15px; height: 15px; color: var(--accent); }
.note { font-size: .85rem; color: var(--text-muted); margin-top: 20px; }

/* Kapcsolat */
.contact-box {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.contact-box .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.contact-box .value { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.contact-box .value:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--border); padding: 26px 0; margin-top: 20px;
  color: var(--text-muted); font-size: .88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------------- Receptek ---------------- */

.recipe-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 26px;
}
.search-field { position: relative; flex: 1 1 240px; max-width: 340px; }
.search-field svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted);
}
.search-field input {
  width: 100%; padding: 11px 14px 11px 38px; font: inherit; font-size: .93rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-elev); color: var(--text);
}
.search-field input:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }

.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-tab {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-muted);
  font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 18px;
  border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.cat-tab:hover { border-color: var(--accent-soft); color: var(--text); }
.cat-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-tab .count { opacity: .7; font-weight: 500; margin-left: 4px; font-size: .82em; }

.recipe-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px;
}
.recipe-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.recipe-thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); position: relative; overflow: hidden; }
.recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 22%, var(--bg-elev)),
    color-mix(in srgb, var(--accent) 6%, var(--bg-elev)));
  font-size: 3.4rem;
}
.detail-hero .thumb-fallback { font-size: 5.5rem; }
.recipe-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.recipe-cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.recipe-body h3 { margin: 0; font-size: 1.06rem; line-height: 1.3; }
.recipe-body p { margin: 0; color: var(--text-muted); font-size: .9rem; }
.recipe-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--text-muted); margin-top: auto; padding-top: 10px; }
.badge-own {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  background: var(--bg-soft); color: var(--text-muted);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .emoji { font-size: 2.6rem; display: block; margin-bottom: 10px; }

/* Recept reszletek */
.recipe-detail { max-width: 820px; }
.detail-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; aspect-ratio: 16/9; background: var(--bg-soft); position: relative; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-columns { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.ingredient-box {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.ingredient-box h3, .steps-box h3 { margin: 0 0 14px; font-size: 1.05rem; }
.ingredient-box ul { list-style: none; margin: 0; padding: 0; }
.ingredient-box li { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.ingredient-box li:last-child { border-bottom: 0; }
.steps-box ol { margin: 0; padding-left: 20px; }
.steps-box li { margin-bottom: 12px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-pill {
  background: var(--bg-soft); border-radius: 999px; padding: 6px 14px;
  font-size: .85rem; color: var(--text-muted);
}

/* Modal / urlap */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5);
  display: grid; place-items: center; padding: 20px; z-index: 200;
  overflow-y: auto;
}
.modal {
  background: var(--bg); border-radius: var(--radius); width: min(680px, 100%);
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 2;
}
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-body { padding: 22px 24px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--bg);
}

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select {
  width: 100%; font: inherit; font-size: .94rem; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-elev); color: var(--text);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-lang-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.form-lang-tabs button {
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-muted);
  font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; cursor: pointer;
}
.form-lang-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.img-preview {
  margin-top: 10px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); max-width: 220px;
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow);
  z-index: 300; font-size: .92rem; font-weight: 600;
}

.hidden { display: none !important; }

/* ---------------- Reszponziv ---------------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .cv-grid { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: 11px 12px; border-radius: var(--radius-sm); }
  .brand-name { display: none; }
  section { padding: 42px 0; }
  .hero { padding: 40px 0 26px; }
  .field-row { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; }
  .modal { max-height: 100vh; border-radius: 0; }
}

@media print {
  .site-header, .tools, footer, .btn-row { display: none; }
}
