/* =============================================================================
   molnarg.hu – főoldal stíluslap (vanília CSS, külső függőség nélkül)
   Témák: sötét (alap) / világos; a rendszerbeállítást követi, felülírható.
   ============================================================================= */

/* ---------- Design tokenek ---------- */
:root {
  --bg: #0b1416;
  --bg-alt: #0f1b1e;
  --surface: #13222600;
  --card: #132226;
  --card-hover: #172a2f;
  --border: #22363b;
  --text: #e6f0ee;
  --muted: #9bb1ad;
  --accent: #14b8a6;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(20, 184, 166, 0.14);
  --on-accent: #04201c;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6faf9;
    --bg-alt: #ecf4f2;
    --card: #ffffff;
    --card-hover: #fbfefd;
    --border: #d6e4e1;
    --text: #10201e;
    --muted: #4c615d;
    --accent: #0d9488;
    --accent-strong: #0f766e;
    --accent-soft: rgba(13, 148, 136, 0.1);
    --on-accent: #ffffff;
    --shadow: 0 10px 30px -14px rgba(16, 32, 30, 0.25);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f6faf9;
  --bg-alt: #ecf4f2;
  --card: #ffffff;
  --card-hover: #fbfefd;
  --border: #d6e4e1;
  --text: #10201e;
  --muted: #4c615d;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --on-accent: #ffffff;
  --shadow: 0 10px 30px -14px rgba(16, 32, 30, 0.25);
  color-scheme: light;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.accent { color: var(--accent-strong); }
.nowrap { white-space: nowrap; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: 0.85rem; letter-spacing: 0.02em;
}
.brand-text { font-size: 1.05rem; }
.site-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.site-nav a {
  color: var(--muted); padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.site-nav .nav-cv { color: var(--accent-strong); }
.header-actions { display: flex; gap: 0.4rem; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sun { display: none; }
.icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
.menu-btn { display: none; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.3rem; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  margin: 0 0 0.6rem; color: var(--accent-strong); font-family: var(--mono);
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 0.15em; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.hero-role { font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: var(--muted); font-weight: 600; margin-bottom: 1.1rem; }
.hero-lead { max-width: 58ch; color: var(--muted); }
.hero-lead strong { color: var(--text); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.8rem; }
.badges li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); font-size: 0.88rem; color: var(--text);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot-live { box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(20, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-photo { display: flex; justify-content: center; }
.photo-ring {
  width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; padding: 10px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-strong), transparent 60%, var(--accent));
  box-shadow: var(--shadow);
}
.photo-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--bg); }

/* ---------- Szekciók ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 750; }
.section-sub { color: var(--muted); }

/* ---------- Rólam ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.about-text p { color: var(--muted); }
.about-text strong { color: var(--text); font-weight: 600; }
.stack {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.stack h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.stack-group + .stack-group { margin-top: 1rem; }
.stack-group h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  font-size: 0.85rem; padding: 0.28rem 0.7rem; border-radius: 8px;
  background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ---------- Projektkártyák ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: var(--card-hover); }
.card-accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-kicker { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-strong); margin-bottom: 0.3rem; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: auto 0 1.2rem; padding-top: 0.5rem; }
.tags li { font-size: 0.75rem; font-family: var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem 0.5rem; }
.card-link { font-weight: 600; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-btn { align-self: flex-start; }
.card-btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- Idővonal ---------- */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 1.75rem; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--border); }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1.75rem + 1px); top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted);
}
.tl-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-date { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-strong); }
.tl-item h3 { font-size: 1.1rem; margin: 0.2rem 0 0.3rem; }
.tl-item p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.more { margin-top: 2rem; font-weight: 600; }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem 1.25rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.contact-card svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--accent-strong); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card span { display: flex; flex-direction: column; font-weight: 600; word-break: break-word; }
.contact-card small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }

.impresszum {
  margin-top: 2.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.25rem;
}
.impresszum summary { cursor: pointer; padding: 1rem 0; font-weight: 600; }
.impresszum dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0 0 1rem; font-size: 0.95rem; }
.impresszum dt { color: var(--muted); }
.impresszum dd { margin: 0; }
.impresszum .note { color: var(--muted); font-size: 0.88rem; }

/* ---------- Lábléc ---------- */
.site-footer { padding: 2rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-strong); }

/* ---------- Reszponzivitás ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 0.5rem 1.25rem 1rem; background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0.5rem; border-radius: 8px; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; justify-content: flex-start; }
  .photo-ring { width: 150px; padding: 6px; }
  .photo-ring img { border-width: 4px; }
  .cards { grid-template-columns: 1fr; }
  .impresszum dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .impresszum dd { margin-bottom: 0.6rem; }
}

/* ---------- Nyomtatás ---------- */
@media print {
  .site-header, .hero-cta, .hero::before, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section-alt { background: none; }
  .impresszum { display: block; }
}
