/* ==========================================================================
   SecretLink magazin — közös stíluslap.

   A nyitóoldal (index.html) és a 404.html szándékosan önmagában álló, beágyazott
   CSS-t használ: azokat egyetlen kérésből meg kell kapnia a látogatónak. A
   magazin több oldalból áll, ott a közös, gyorsítótárazható fájl a nyerő.

   A betűtípusokat a scripts/gen-launch-fonts.py állítja elő. A magazin a
   Playfair teljes karakterkészletét kapja (a cikkcímek miatt), a nyitóoldal
   ennél jóval kisebb, csak a márkanévre szűkített változatot.
   ========================================================================== */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-400.woff2?v=2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/inter-500.woff2?v=2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-600.woff2?v=2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/playfair-magazin-700.woff2?v=2') format('woff2');
}

:root {
  --accent: #E94560;
  --pink: #EC4899;
  --dark: #0F0F1A;
  --text: #EAEAEA;
  --muted: #9ca3af;
  --dim: #6b7280;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

::selection { background: rgba(233, 69, 96, 0.35); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(233, 69, 96, 0.25); border-radius: 8px; }
:focus-visible { outline: 2px solid rgba(233, 69, 96, 0.8); outline-offset: 3px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* --- Háttér ---------------------------------------------------------------- */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg span { position: absolute; border-radius: 9999px; filter: blur(130px); display: block; }
.bg span:nth-child(1) {
  top: -12rem; left: -10rem; width: 30rem; height: 30rem; background: rgba(233, 69, 96, 0.16);
}
.bg span:nth-child(2) {
  top: 40%; right: -12rem; width: 28rem; height: 28rem; background: rgba(236, 72, 153, 0.09);
}

/* --- Fejléc ---------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .inner {
  max-width: 48rem; margin: 0 auto; padding: 0.875rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 0.625rem;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9375rem;
}
.brand-mark {
  width: 1.875rem; height: 1.875rem; border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 1rem; height: 1rem; color: #fff; }
.brand-link .sep { color: var(--dim); font-weight: 400; }
.brand-link .sec { color: var(--muted); font-weight: 500; }
.header-cta {
  font-size: 0.8125rem; color: var(--muted); text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.header-cta:hover { color: var(--accent); border-color: rgba(233, 69, 96, 0.4); }

/* --- Elrendezés ------------------------------------------------------------ */
.page { position: relative; z-index: 1; max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

.crumbs { font-size: 0.8125rem; color: var(--dim); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 0.4rem; }

/* --- Címek ----------------------------------------------------------------- */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.875rem, 5.5vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.meta { font-size: 0.8125rem; color: var(--dim); margin-bottom: 2rem; }
.meta b { color: var(--muted); font-weight: 500; }

.lede {
  font-size: 1.125rem; line-height: 1.7; color: #d1d5db;
  padding-bottom: 1.75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

article h2 {
  font-size: 1.3125rem; font-weight: 600; line-height: 1.35;
  margin: 2.5rem 0 0.875rem; scroll-margin-top: 5rem;
}
article h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.75rem 0 0.625rem; }

article p { margin-bottom: 1.125rem; color: #d1d5db; font-size: 1.0313rem; line-height: 1.75; }
article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(233, 69, 96, 0.35); }
article a:hover { border-bottom-color: var(--accent); }
article strong { color: var(--text); font-weight: 600; }
article em { font-style: italic; color: #d1d5db; }

article ul, article ol { margin: 0 0 1.25rem 1.25rem; color: #d1d5db; }
article li { margin-bottom: 0.5rem; padding-left: 0.25rem; line-height: 1.7; }
article ul li::marker { color: var(--accent); }
article ol li::marker { color: var(--accent); font-weight: 600; }

/* Kiemelt doboz */
.callout {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.125rem 1.25rem;
  margin: 1.75rem 0;
}
.callout p { margin-bottom: 0; font-size: 0.9688rem; color: #d1d5db; }
.callout p + p { margin-top: 0.75rem; }

hr {
  border: none; height: 1px; margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* --- Cikklista ------------------------------------------------------------- */
.intro { font-size: 1.0625rem; color: var(--muted); line-height: 1.7; margin-bottom: 2.5rem; }

.post-list { display: grid; gap: 0.875rem; }
.post-card {
  display: block; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  padding: 1.25rem 1.375rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.post-card:hover {
  border-color: rgba(233, 69, 96, 0.35);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}
.post-card h2 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.4rem; line-height: 1.4; }
.post-card p { font-size: 0.9063rem; color: var(--muted); line-height: 1.6; margin: 0; }
.post-card .card-meta { font-size: 0.75rem; color: var(--dim); margin-top: 0.75rem; }

/* --- Kapcsolódó cikkek ----------------------------------------------------- */
.related { margin-top: 3rem; }
.related h2 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 1rem;
}
.related ul { list-style: none; margin: 0; display: grid; gap: 0.5rem; }
.related li { margin: 0; padding: 0; }
.related a {
  display: block; text-decoration: none; color: #d1d5db; font-size: 0.9375rem;
  padding: 0.75rem 1rem; border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.related a:hover { color: var(--text); border-color: rgba(233, 69, 96, 0.3); }

/* --- Záró CTA -------------------------------------------------------------- */
.cta-card {
  margin-top: 3rem; text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem; padding: 1.75rem 1.5rem;
}
.cta-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem; font-weight: 700; margin: 0 0 0.5rem;
}
.cta-card p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8125rem 1.5rem;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  color: #fff; font-weight: 600; font-size: 0.9375rem;
  text-decoration: none; border-radius: 0.75rem;
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.28);
  transition: filter 0.25s ease;
}
.cta-btn:hover { filter: brightness(1.08); }
.cta-btn svg { width: 1rem; height: 1rem; }

/* --- Lábléc ---------------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 3rem; padding: 2rem 1.25rem 2.5rem; text-align: center;
}
.site-footer .age {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem; color: var(--muted);
}
.site-footer .age b { color: var(--accent); font-weight: 600; }
.site-footer .copy { margin-top: 0.875rem; font-size: 0.75rem; color: var(--dim); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .page { padding: 2rem 1.125rem 3rem; }
  article p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
