/*
 Theme Name: Hogyan Csinálják 2026
 Theme URI: https://hogycsinaljak.hu
 Author: Zsolt
 Description: Modern 2026-os magazin sablon – demo design alapján.
 Version: 2.0.1
 Text Domain: hogycsinaljak-2026
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-base:        #F7F8FA;
  --bg-alt:         #EEF1F5;
  --bg-card:        rgba(255,255,255,0.82);
  --bg-glass:       rgba(255,255,255,0.65);

  --primary:        #1E2A78;
  --primary-light:  #2D3E9E;
  --primary-glow:   rgba(30,42,120,0.18);

  --teal:           #3EC6B8;
  --teal-light:     rgba(62,198,184,0.12);
  --teal-glow:      rgba(62,198,184,0.25);

  --accent:         #E6782E;
  --accent-light:   rgba(230,120,46,0.12);
  --accent-glow:    rgba(230,120,46,0.3);

  --text:           #121417;
  --text-soft:      #6B7280;
  --text-muted:     #9CA3AF;

  --border:         rgba(18,20,23,0.08);
  --border-med:     rgba(18,20,23,0.12);

  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --radius-pill:    999px;

  --shadow-xs:      0 1px 3px rgba(18,20,23,0.06);
  --shadow-sm:      0 4px 12px rgba(18,20,23,0.07);
  --shadow-md:      0 8px 24px rgba(18,20,23,0.09);
  --shadow-lg:      0 16px 48px rgba(18,20,23,0.11);
  --shadow-xl:      0 24px 64px rgba(18,20,23,0.13);

  --font:           -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;

  --ease-spring:    cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:       cubic-bezier(0.22,1,0.36,1);

  /* Viewport / safe-area insets (valódi mobil UI-hoz) */
  --hc-vv-inset-top:    0px;
  --hc-vv-inset-right:  0px;
  --hc-vv-inset-bottom: 0px;
  --hc-vv-inset-left:   0px;

  --hc-safe-top:    env(safe-area-inset-top, 0px);
  --hc-safe-right:  env(safe-area-inset-right, 0px);
  --hc-safe-bottom: env(safe-area-inset-bottom, 0px);
  --hc-safe-left:   env(safe-area-inset-left, 0px);

  --hc-ui-inset-top:    max(var(--hc-safe-top), var(--hc-vv-inset-top));
  --hc-ui-inset-right:  max(var(--hc-safe-right), var(--hc-vv-inset-right));
  --hc-ui-inset-bottom: max(var(--hc-safe-bottom), var(--hc-vv-inset-bottom));
  --hc-ui-inset-left:   max(var(--hc-safe-left), var(--hc-vv-inset-left));
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: calc(24px + var(--hc-ui-inset-left));
  padding-right: calc(24px + var(--hc-ui-inset-right));
}

/* ============================================================
   TOPBAR / NAV
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247,248,250,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

/* Logo */
.topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.topbar__logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1.2;
}

.topbar__logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  text-transform: uppercase;
}

/* Nav chips */
.topbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  justify-content: center;
  overflow: hidden;
}
.topbar__nav .nav-chip {
  flex-shrink: 0;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.nav-chip:hover {
  background: var(--bg-alt);
  border-color: var(--border-med);
  color: var(--text);
}

.nav-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Search */
.topbar__search {
  position: relative;
  flex-shrink: 0;
}

.topbar__search-input {
  width: 200px;
  height: 36px;
  padding: 0 36px 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-med);
  background: var(--bg-card);
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, width 0.3s var(--ease-out);
}

.topbar__search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
  width: 240px;
}

.topbar__search-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

/* Mobile menu toggle */
.topbar__mobile-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
}

.topbar__mobile-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Topbar – felhasználói menü */
.topbar__user {
  position: relative;
  flex-shrink: 0;
}

.topbar__user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.topbar__user-btn:hover {
  border-color: var(--primary);
}

.topbar__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.topbar__user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 200;
  overflow: hidden;
  padding: 6px 0;
}

.topbar__user-dropdown[hidden] {
  display: none !important;
}

.topbar__user-name {
  padding: 8px 14px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s ease;
}

.topbar__user-link:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.topbar__user-link--logout {
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.topbar__user-link--logout:hover {
  color: #ef4444;
  background: #fef2f2;
}

/* Bejelentkezés gomb (nem bejelentkezve) */
.topbar__login-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar__login-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Mobile offcanvas */
.offcanvas {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.offcanvas.is-open { display: block; }

.offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18,20,23,0.4);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--bg-base);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  animation: slideInRight 0.3s var(--ease-out);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.offcanvas__close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.offcanvas__nav-chip {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.offcanvas__nav-chip:hover,
.offcanvas__nav-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: linear-gradient(135deg, #1E2A78 0%, #2a3a9e 40%, #1a4a6e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62,198,184,0.22) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,120,46,0.15) 0%, transparent 70%);
  bottom: -150px;
  left: 10%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__left { color: #fff; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero__kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero__title em {
  font-style: normal;
  color: var(--teal);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.hero__trust-item::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(62,198,184,0.2);
  border: 1px solid rgba(62,198,184,0.4);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Hero Right – swipe deck */
.hero__right {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__deck {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

/* Deck navigációs nyilak */
.deck__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 12px rgba(15,23,42,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.deck__nav:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(15,23,42,0.22);
  transform: translateY(-50%) scale(1.08);
}
.deck__nav:active { transform: translateY(-50%) scale(0.96); }
.deck__nav--prev { left: -16px; }
.deck__nav--next { right: -16px; }

/* Alap kártya stílus */
.deck__card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88%;
  height: 340px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.7);
  cursor: grab;
  user-select: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  /* JS állítja be a z-index-et és transform-ot, de alap: */
  transform-origin: bottom center;
  will-change: transform;
}

.deck__card:active { cursor: grabbing; }

/* Húzás közbeni "nope" / "like" hint */
.deck__card.is-dragging {
  transition: none;
}

.deck__card.is-leaving {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.45s ease;
  pointer-events: none;
}

.deck__card.is-snapping {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Döntési irány visszajelző */
.deck__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.deck__card.hint-right::before {
  background: linear-gradient(135deg, transparent 40%, rgba(52,211,153,0.18));
  opacity: 1;
}
.deck__card.hint-left::before {
  background: linear-gradient(225deg, transparent 40%, rgba(249,115,22,0.18));
  opacity: 1;
}

.hero-card__cat {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-card__cat--teal   { background: var(--teal-light); color: #0d9488; }
.hero-card__cat--accent { background: var(--accent-light); color: var(--accent); }

.hero-card__img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-card__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card__img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-alt), rgba(148,163,184,0.2)); }

.hero-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.hero-card__meta-dot { color: var(--border-med); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn--primary:hover {
  box-shadow: 0 10px 28px var(--accent-glow);
  background: #d4681f;
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

.btn--teal {
  background: var(--teal);
  color: var(--primary);
  box-shadow: 0 6px 20px var(--teal-glow);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.78rem;
}

/* ============================================================
   KATEGÓRIA DROPDOWN SZŰRŐ
   ============================================================ */
.filter-section {
  padding: 14px 0 12px;
  background: var(--bg-base);
  position: sticky;
  top: 64px;
  z-index: 800;
  border-bottom: 1px solid var(--border);
}

.filter-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.filter-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.filter-dropdown-btn:hover {
  background: var(--primary-dark, #1a35a0);
}
.filter-dropdown-caret {
  flex-shrink: 0;
  transition: transform 0.18s ease;
  color: #fff;
}
.filter-dropdown-btn[aria-expanded="true"] .filter-dropdown-caret {
  transform: rotate(180deg);
}
.filter-dropdown-label {
  color: #fff;
  white-space: nowrap;
}

.filter-dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-med);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
  list-style: none !important;
  margin: 0;
  padding: 6px;
  z-index: 900;
}
.filter-dropdown-list[hidden] { display: none !important; }
.filter-dropdown-list li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.filter-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.filter-dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.filter-dropdown-item.is-active {
  background: rgba(30,42,120,0.08);
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

.section__title span { color: var(--primary); }

.section__title-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.section__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: gap 0.15s ease;
}
.section__link:hover { gap: 8px; }

/* ============================================================
   ARTICLE CARD
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, border-color 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30,42,120,0.15);
}

.card__img {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-alt);
}

.card__img-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
  overflow: hidden;
}

.card__img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card:hover .card__img-inner { transform: scale(1.05); }

/* Badge */
.card__badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--blue   { background: rgba(30,42,120,0.08); color: var(--primary); }
.badge--teal   { background: var(--teal-light); color: #0d9488; }
.badge--orange { background: var(--accent-light); color: var(--accent); }
.badge--green  { background: rgba(34,197,94,0.1); color: #16a34a; }
.badge--purple { background: rgba(139,92,246,0.1); color: #7c3aed; }
.badge--pink   { background: rgba(236,72,153,0.1); color: #db2777; }

/* Body */
.card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

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

.card__meta-dot { color: var(--border-med); font-size: 0.7rem; }
.card__date     { font-size: 0.72rem; color: var(--text-muted); }
.card__read     { font-size: 0.72rem; color: var(--text-muted); }

.card__title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.card:hover .card__title { color: var(--primary); }

.card__excerpt {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Hover CTA */
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(30,42,120,0.06);
  border: 1px solid rgba(30,42,120,0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  text-decoration: none;
}
.card:hover .card__cta { opacity: 1; transform: translateY(0); }
.card__cta:hover { background: var(--primary); color: #fff; }

/* ============================================================
   TRENDING SZEKCIÓ
   ============================================================ */
.trending__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.card--featured {
  flex-direction: row;
  align-items: stretch;
  min-height: 280px;
}

.card--featured .card__img {
  width: 340px;
  min-width: 340px;
  height: auto;
  border-radius: 0;
}

.card--featured .card__img-inner {
  height: 100%;
  min-height: 280px;
}

.card--featured .card__title  { font-size: 1.25rem; -webkit-line-clamp: 3; }
.card--featured .card__excerpt { -webkit-line-clamp: 4; font-size: 0.88rem; }
.card--featured .card__body   { padding: 28px 28px 24px; justify-content: center; }

.trending__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending__stack .card--small .card__img { height: 120px; }
.trending__stack .card--small .card__img-inner { height: 120px; }
.trending__stack .card--small .card__title { font-size: 0.9rem; }

/* ============================================================
   MAIN LAYOUT + MAGAZINE GRID (Bento)
   ============================================================ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}

.card--large  { grid-column: span 4; grid-row: span 2; min-height: 420px; }
.card--medium { grid-column: span 2; grid-row: span 2; min-height: 420px; }
.card--tall   { grid-column: span 2; grid-row: span 3; min-height: 620px; }
.card--wide   { grid-column: span 4; grid-row: span 1; flex-direction: row; min-height: 200px; }
.card--small  { grid-column: span 2; grid-row: span 1; min-height: 200px; }

/* Wide card horizontal */
.card--wide .card__img        { width: 180px; min-width: 180px; flex-shrink: 0; height: auto; border-radius: 0; }
.card--wide .card__img-inner  { height: 100%; }
.card--wide .card__body       { padding: 20px 22px; }

/* Large card: image as hero background */
.card--large {
  position: relative;
  background: var(--primary);
  color: #fff;
  justify-content: flex-end;
  overflow: hidden;
  border: none;
}

.card--large .card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 0;
}

.card--large .card__img-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card--large::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,20,23,0.92) 0%, rgba(18,20,23,0.45) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.card--large .card__body {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: transparent;
  justify-content: flex-end;
}

.card--large .card__badge  { margin-bottom: 2px; }
.card--large .card__title  { color: #fff; font-size: 1.25rem; -webkit-line-clamp: 3; }
.card--large .card__excerpt { color: rgba(255,255,255,0.7); -webkit-line-clamp: 2; }
.card--large .card__date,
.card--large .card__read   { color: rgba(255,255,255,0.55); }
.card--large .card__meta-dot { color: rgba(255,255,255,0.25); }
.card--large .card__footer { border-top-color: rgba(255,255,255,0.1); }
.card--large .card__cta    { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25); color: #fff; }
.card--large .card__cta:hover { background: #fff; color: var(--primary); }
.card--large:hover { border-color: transparent; }

/* ============================================================
   OLDALSÁV
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 130px;
}

.sidebar-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.sidebar-block__title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-block__title::before {
  content: '';
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  display: block;
}

/* Népszerű / Trending lista */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.popular-item__num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.popular-item:hover .popular-item__num { background: var(--primary); color: #fff; }

.popular-item__title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.15s ease;
  cursor: pointer;
}
.popular-item:hover .popular-item__title { color: var(--primary); }

.popular-item__meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Kategória mini lista */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.cat-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.cat-list__item:hover,
.cat-list__item.is-current { background: var(--bg-alt); }

.cat-list__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.cat-list__count {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   ARCHÍV HERO (kategória / archív oldalak)
   ============================================================ */
.archive-hero {
  padding: 56px 0 48px;
  background: linear-gradient(135deg, #1E2A78 0%, #2a3a9e 100%);
  color: #fff;
}

.archive-hero__kicker {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(62,198,184,0.15);
  border: 1px solid rgba(62,198,184,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.archive-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.archive-hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin-bottom: 10px;
}

.archive-hero__count {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #1E2A78 0%, #2a3a9e 100%);
}

.single-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,22,41,0.92) 0%, rgba(15,22,41,0.5) 50%, rgba(15,22,41,0.1) 100%);
  z-index: 1;
}

.single-hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 0;
  max-width: 760px;
}

.single-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.single-hero__date,
.single-hero__views {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.single-hero__title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 20px;
}

.single-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
}

.single-hero__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Article content */
.article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.article-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2em 0 0.75em; letter-spacing: -0.02em; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75em 0 0.6em; }
.article-content p  { margin-bottom: 1.25em; }
.article-content ul,
.article-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
  border-left: 4px solid var(--teal);
  padding: 12px 20px;
  background: var(--teal-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-soft);
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}
.article-content a { color: var(--primary); text-decoration: underline; }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2em 0;
}

.article-tag {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border-med);
  color: var(--text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.article-tag:hover { background: var(--primary); color: #fff; border-color: transparent; }

/* Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.article-share__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}

.share-btn--fb { background: rgba(24,119,242,0.1); color: #1877f2; border: 1px solid rgba(24,119,242,0.2); }
.share-btn--fb:hover { background: #1877f2; color: #fff; }
.share-btn--tw { background: rgba(0,0,0,0.06); color: #000; border: 1px solid rgba(0,0,0,0.1); }
.share-btn--tw:hover { background: #000; color: #fff; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 24px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-card);
  border: 1.5px solid var(--border-med);
  transition: all 0.18s ease;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.pagination .next,
.pagination .prev {
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.pagination .next:hover,
.pagination .prev:hover {
  background: #d4681f;
  color: #fff;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

/* Comment list */
.comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.comment-body {
  display: flex;
  gap: 14px;
}

.comment-avatar { flex-shrink: 0; }
.comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.comment-inner { flex: 1; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-author-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.comment-date        { font-size: 0.72rem; color: var(--text-muted); }
.comment-text        { font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; }

.comment-reply-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
}
.comment-reply-link:hover { text-decoration: underline; }

.comment-media-thumb {
  max-width: 280px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  cursor: zoom-in;
  border: 1px solid var(--border);
}

.children {
  list-style: none;
  margin-top: 20px;
  padding-left: 40px;
  border-left: 2px solid var(--border);
}

/* Comment form */
.comment-form { margin-top: 40px; }
.comment-form label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comment-form select {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-med);
  background: var(--bg-card);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.comment-form textarea { resize: vertical; min-height: 120px; }

.comment-form .form-submit { margin-top: 8px; }

.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s ease;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.comment-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

/* Comment form media upload */
.comment-form-media input[type="file"] {
  padding: 8px;
  background: var(--bg-alt);
  cursor: pointer;
}
.comment-form-media small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Comment cookies */
.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.comment-form-cookies-consent input {
  width: auto !important;
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

/* ============================================================
   MODÁLOK (GDPR, Cikket kérek, Prompt)
   ============================================================ */
.ramodal {
  position: fixed;
  inset: 0;
  background: rgba(18,20,23,0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ramodal-content {
  background: var(--bg-base);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.ramodal-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.ramodal-content p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.ramodal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  transition: background 0.15s ease;
}
.ramodal-close:hover { background: var(--border-med); }

.ramodal-content label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-soft); margin-bottom: 6px; }
.ramodal-content input[type="text"],
.ramodal-content input[type="email"],
.ramodal-content textarea,
.ramodal-content select {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-med);
  background: var(--bg-card);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.18s ease;
}
.ramodal-content input:focus,
.ramodal-content textarea:focus,
.ramodal-content select:focus { border-color: var(--teal); }
.ramodal-content textarea { resize: vertical; min-height: 100px; }

.gdpr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--text-soft);
}
.gdpr-row input { width: auto; flex-shrink: 0; }

.voice-input-wrapper { position: relative; }
.voice-mic-btn {
  position: absolute;
  right: 10px;
  bottom: 26px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.voice-mic-btn.recording { background: rgba(230,120,46,0.15); border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0f1629;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  margin-top: 64px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer__brand-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.5);
}

.footer__col-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.15s ease; }
.footer__links a:hover { color: #fff; }

.footer__cta-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.footer__cta-title { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer__cta-desc  { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.55; margin-bottom: 16px; }

.footer__cta-input-row { display: flex; gap: 8px; }

.footer__cta-input {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  font-family: var(--font);
  font-size: 0.8rem;
  color: #fff;
  outline: none;
}
.footer__cta-input::placeholder { color: rgba(255,255,255,0.3); }
.footer__cta-input:focus { border-color: var(--teal); }

.footer__cta-btn {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--teal);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.footer__cta-btn:hover { transform: translateY(-1px); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  gap: 16px;
  flex-wrap: wrap;
}

.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,0.3); transition: color 0.15s ease; }
.footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.hc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 20px;
}
.hc-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-md); object-fit: contain; }

/* ============================================================
   CARD HIDDEN (filter)
   ============================================================ */
.card.is-hidden { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: ≤ 960px */
@media (max-width: 960px) {
  .topbar__nav    { display: none; }
  .topbar__search { display: none; }
  .topbar__mobile-btn { display: flex; }

  .hero { padding: 48px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__right { height: 300px; max-width: 480px; margin: 0 auto; }

  .filter-section { top: 64px; }

  .trending__grid { grid-template-columns: 1fr; }
  .card--featured { flex-direction: column; min-height: auto; }
  .card--featured .card__img { width: 100%; min-width: 0; height: 220px; }
  .card--featured .card__img-inner { min-height: 220px; }

  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

  .magazine-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
  .card--large  { grid-column: span 4; grid-row: span 2; }
  .card--medium { grid-column: span 2; grid-row: span 2; }
  .card--tall   { grid-column: span 2; grid-row: span 2; }
  .card--wide   { grid-column: span 4; grid-row: span 1; }
  .card--small  { grid-column: span 2; grid-row: span 1; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile: ≤ 640px */
@media (max-width: 640px) {
  html { font-size: 16px; }

  .hero__title { font-size: 2rem; }
  .hero__right { display: none; }
  .hero { padding: 40px 0; }

  .magazine-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }

  .card--large,
  .card--medium,
  .card--tall,
  .card--wide,
  .card--small { grid-column: span 1; grid-row: span 1; }

  .card--large { min-height: 280px; justify-content: flex-end; }
  .card--wide { flex-direction: column; }
  .card--wide .card__img { width: 100%; min-width: 0; height: 160px; border-radius: 0; }
  .card--wide .card__img-inner { height: 160px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   ENGAGEMENT FUNKCIÓK
   ============================================================ */

/* ---- Kategória feliratkozás gomb ---- */
.cat-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.cat-subscribe-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.cat-subscribe-btn.is-subscribed {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ---- Olvasási progress bar ---- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--teal) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Olvasási idő + könyvjelző a hero-ban ---- */
.single-hero__read-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-left: 8px;
}

.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  backdrop-filter: blur(4px);
  margin-left: 12px;
}

.bookmark-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

.bookmark-btn.is-bookmarked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- Reakciók ---- */
.reactions {
  margin: 32px 0 24px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.reactions__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.reactions__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-med);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.reaction-btn:hover {
  border-color: var(--primary);
  background: var(--bg-base);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.reaction-btn.is-active {
  border-color: var(--primary);
  background: rgba(30,42,120,0.07);
  color: var(--primary);
  font-weight: 700;
}

.reaction-btn__emoji { font-size: 1.1rem; line-height: 1; }
.reaction-btn__count {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* ---- Kapcsolódó cikkek grid ---- */
.related-grid {
  margin: 32px 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.related-grid__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.related-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  color: var(--text);
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card__img img {
  transform: scale(1.04);
}

.related-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  opacity: 0.5;
}

.related-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.related-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.related-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.related-card__time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
}

@media (max-width: 640px) {
  .related-grid__cards { grid-template-columns: 1fr; }
}

/* ---- Komment upvote ---- */
.comment-upvote {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-med);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.comment-upvote:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30,42,120,0.05);
}

.comment-upvote.is-voted {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(30,42,120,0.08);
}

/* ---- Folytatom az olvasást – banner ---- */
.continue-banner {
  position: fixed;
  bottom: calc(24px + var(--hc-ui-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 8888;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
  pointer-events: none;
}

.continue-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.continue-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: calc(100vw - 48px);
  overflow: hidden;
}

.continue-banner__text {
  font-size: 0.85rem;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.continue-banner__btn {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.12s ease;
}

.continue-banner__btn:hover {
  background: rgba(255,255,255,0.88);
}

.continue-banner__close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  padding: 0 0 0 4px;
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.continue-banner__close:hover {
  color: #fff;
}

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

/* ============================================================
   MOBIL BOTTOM NAV (belső oldalakon, ≤ 768px)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(148,163,184,0.12);
    padding-top: 8px;
    padding-bottom: max(24px, var(--hc-ui-inset-bottom));
    padding-left: var(--hc-ui-inset-left);
    padding-right: var(--hc-ui-inset-right);
    gap: 0;
  }

  .mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.15s ease;
    border: none;
    background: none;
    cursor: pointer;
  }

  .mobile-nav-item.is-active,
  .mobile-nav-item:active {
    color: #f97316;
  }

  /* Belső oldalakon a tartalom ne csússzon a bottom nav alá */
  body:not(.home) .footer {
    padding-bottom: calc(64px + max(24px, var(--hc-ui-inset-bottom)));
  }

  body:not(.home) .section:last-of-type,
  body:not(.home) .article-wrap,
  body:not(.home) .single-post-wrap {
    padding-bottom: calc(72px + max(24px, var(--hc-ui-inset-bottom)));
  }

  /* Topbar elrejtése mobilon belső oldalakon – helyette egyszerű mobilos megjelenés */
  body:not(.home) .topbar {
    position: sticky;
    top: 0;
    z-index: 900;
  }
}

/* ============================================================
   TIKTOK MOBILE FEED  (csak ≤ 768px)
   ============================================================ */
.tt-feed { display: none; }

@media (max-width: 768px) {

  /* Desktop főoldal elemek elrejtése – CSAK a főoldalon (body.home) */
  body.home .hero,
  body.home .filter-section,
  body.home .section.section--alt,
  body.home .continue-banner { display: none !important; }

  /* TikTok feed konténer – teljes viewport */
  .tt-feed {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000;
    overflow: hidden;
  }

  /* WP admin bar + body margin elrejtése mobilon */
  #wpadminbar { display: none !important; }
  html { margin-top: 0 !important; }
  body { margin-top: 0 !important; padding-top: 0 !important; }

  /* Top bar */
  .tt-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: max(12px, var(--hc-ui-inset-top));
    padding-right: calc(16px + var(--hc-ui-inset-right));
    padding-bottom: 10px;
    padding-left: calc(16px + var(--hc-ui-inset-left));
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 60%, transparent);
    flex-shrink: 0;
  }
  .tt-topbar__logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
  }
  .tt-topbar__tabs {
    display: flex;
    gap: clamp(12px, 4vw, 20px);
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
  .tt-tab {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: clamp(0.9rem, 3.2vw, 0.95rem);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
    transition: color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 46vw;
  }
  .tt-tab.is-active {
    color: #fff;
  }
  .tt-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .tt-topbar__search {
    color: #fff;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 6px;
  }

  /* Scroll konténer – snap */
  .tt-scroll {
    flex: 1 1 auto;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tt-scroll::-webkit-scrollbar { display: none; }

  /* Egy kártya = teljes scroll konténer magassága */
  .tt-card {
    position: relative;
    width: 100%;
    height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
  }

  /* Háttér kép */
  .tt-card__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1e2a78; /* fallback ha nincs kép */
  }
  .tt-card__bg--placeholder {
    background-image: linear-gradient(135deg, #1e2a78 0%, #0d9488 100%) !important;
  }
  .tt-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.35) 40%,
      transparent 70%
    );
  }

  /* Jobb oldali akció ikonok */
  .tt-actions {
    position: absolute;
    right: calc(20px + var(--hc-ui-inset-right));
    bottom: calc(140px + max(0px, calc(var(--hc-ui-inset-bottom) - 24px)));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    z-index: 5;
  }
  .tt-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    min-width: 44px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-action svg {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
  }
  .tt-action:active svg { transform: scale(0.85); }
  .tt-action--like.is-liked svg { fill: #fe2c55; stroke: #fe2c55; }
  /* Views ikon – nem kattintható, halványabb */
  .tt-action--views {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
  }
  .tt-action__count {
    font-size: 0.68rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    white-space: nowrap;
    display: block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 2px;
  }

  /* Alul: cím + meta */
  .tt-card__info {
    position: absolute;
    left: calc(16px + var(--hc-ui-inset-left));
    right: calc(96px + var(--hc-ui-inset-right));
    bottom: calc(94px + max(0px, calc(var(--hc-ui-inset-bottom) - 24px)));
    z-index: 5;
    display: flex;
    flex-direction: column;
  }
  .tt-card__badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .tt-card__title {
    display: block;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    margin-bottom: 6px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
  }
  .tt-card__meta {
    display: flex;
    gap: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
  }
  .tt-card__read-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease;
  }
  .tt-card__read-btn:active { background: rgba(255,255,255,0.28); }

  /* Kereső panel */
  .tt-search-panel[hidden] { display: none !important; }
  .tt-search-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .tt-search-panel__header {
    padding-top: calc(14px + var(--hc-ui-inset-top));
    padding-right: calc(16px + var(--hc-ui-inset-right));
    padding-bottom: 10px;
    padding-left: calc(16px + var(--hc-ui-inset-left));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tt-search-panel__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 14px;
  }
  .tt-search-panel__icon { color: rgba(255,255,255,0.5); flex-shrink: 0; }
  .tt-search-panel__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    caret-color: #fff;
  }
  .tt-search-panel__input::placeholder { color: rgba(255,255,255,0.4); }
  .tt-search-panel__clear {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
  }
  .tt-search-panel__clear[hidden] { display: none !important; }
  .tt-search-panel__results {
    flex: 1;
    overflow-y: auto;
    padding: 12px calc(16px + var(--hc-ui-inset-right)) 80px calc(16px + var(--hc-ui-inset-left));
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .tt-search-panel__hint {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 40px;
  }
  .tt-search-panel__empty {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 40px;
  }
  /* Találati elem */
  .tt-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-search-result:active { opacity: 0.7; }
  .tt-search-result__thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
  }
  .tt-search-result__thumb--placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e2a78, #0d9488);
  }
  .tt-search-result__body { flex: 1; min-width: 0; }
  .tt-search-result__cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
  }
  .tt-search-result__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tt-search-result__title mark {
    background: none;
    color: #facc15;
  }

  /* Kategória panel */
  .tt-cats-panel[hidden] { display: none !important; }
  .tt-cats-panel__back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 16px;
    margin-bottom: 4px;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-cats-panel__back:active { color: #fff; }
  .tt-cats-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    padding-top: calc(70px + var(--hc-ui-inset-top));
    padding-right: calc(16px + var(--hc-ui-inset-right));
    padding-bottom: 100px;
    padding-left: calc(16px + var(--hc-ui-inset-left));
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .tt-cats-panel__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
  }
  .tt-cats-panel__item:active,
  .tt-cats-panel__item.is-active { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); }
  .tt-cats-panel__count {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
  }

  /* Bottom navigation */
  .tt-bottom-nav {
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    z-index: 15;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 10px;
    padding-bottom: max(24px, var(--hc-ui-inset-bottom));
    padding-left: var(--hc-ui-inset-left);
    padding-right: var(--hc-ui-inset-right);
    background: rgba(0,0,0,0.85);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .tt-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 4px 12px;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-nav-item.is-active { color: #fff; }
  .tt-nav-item svg { transition: transform 0.15s ease; }
  .tt-nav-item:active svg { transform: scale(0.9); }

  /* Body scroll tiltása amíg a feed aktív */
  body.tt-active {
    overflow: hidden;
  }

  /* ── Komment drawer ── */
  .tt-comment-drawer[hidden] { display: none !important; }
  .tt-comment-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .tt-comment-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
  }
  .tt-comment-drawer__sheet {
    position: relative;
    z-index: 1;
    background: #1a1a1a;
    border-radius: 20px 20px 0 0;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
  }
  .tt-comment-drawer.is-open .tt-comment-drawer__sheet {
    transform: translateY(0);
  }
  .tt-comment-drawer__handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }
  .tt-comment-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .tt-comment-drawer__title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .tt-comment-drawer__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-comment-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 18px;
    -webkit-overflow-scrolling: touch;
  }
  .tt-comment-drawer__loading {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px 0;
  }
  .tt-comment-drawer__footer {
    padding: 10px 18px max(24px, var(--hc-ui-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .tt-comment-drawer__all-link {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 0;
  }
  .tt-comment-drawer__all-link:active { color: #fff; }

  /* Compose sáv */
  .tt-comment-drawer__compose {
    padding: 10px 14px max(24px, var(--hc-ui-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
  }
  .tt-comment-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 8px 8px 8px 14px;
  }
  .tt-comment-form__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
    caret-color: #fff;
  }
  .tt-comment-form__input::placeholder { color: rgba(255,255,255,0.35); }
  .tt-comment-form__send {
    background: #fe2c55;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-comment-form__send:active { transform: scale(0.9); }
  .tt-comment-form__send:disabled { opacity: 0.5; }
  .tt-comment-form__login-cta {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 8px 0;
  }
  .tt-comment-form__login-cta strong { color: #fff; }
  .tt-comment-form__login-cta:active { opacity: 0.7; }

  /* Komment elemek a drawerben */
  .tt-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .tt-comment-item:last-child { border-bottom: none; }
  .tt-comment-item__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
    object-fit: cover;
  }
  .tt-comment-item__body { flex: 1; min-width: 0; }
  .tt-comment-item__author {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
  }
  .tt-comment-item__text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    word-break: break-word;
  }
  .tt-comment-item__meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
  }
  .tt-comment-item__date {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
  }
  /* Akciók sor (like + válasz) */
  .tt-comment-item__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
  }
  /* Komment like gomb */
  .tt-comment-item__like {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-comment-item__like:active,
  .tt-comment-item__like:hover { color: rgba(255,255,255,0.85); }
  .tt-comment-item__like.is-liked { color: #ef4444; }
  .tt-comment-item__like-count { min-width: 14px; }
  /* Válasz gomb */
  .tt-comment-item__reply-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .tt-comment-item__reply-btn:active,
  .tt-comment-item__reply-btn:hover { color: rgba(255,255,255,0.85); }
  /* → @szerző mention (TikTok-stílus) */
  .tt-comment-item__mention {
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 2px;
  }
  /* Válasz csoport a szülő komment alatt */
  .tt-comment-replies {
    padding-left: 44px;
    border-left: 2px solid rgba(255,255,255,0.06);
    margin-left: 17px;
  }
  .tt-comment-replies .tt-comment-item {
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .tt-comment-replies .tt-comment-item:last-child { border-bottom: none; }
  /* Reply banner (forma tetején) */
  .tt-comment-reply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(249,115,22,0.15);
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
  }
  .tt-comment-reply-banner strong { color: #fb923c; }
  .tt-comment-reply-cancel {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 4px;
    -webkit-tap-highlight-color: transparent;
  }
  /* Avatar üres állapot */
  .tt-comment-item__avatar--empty {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
  }
  .tt-comment-drawer__empty {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px 0;
  }
}

/* ============================================================
   SINGLE PAGE – FLOATING ACTION BAR (mobilon, jobb oldal)
   ============================================================ */
.single-fab {
  display: none; /* desktop: rejtett */
}

/* Reakciók, kommentek, sidebar, footer: mobilon elrejtve single oldalon */
@media (max-width: 768px) {
  body.single .reactions,
  body.single .article-share,
  body.single #comments,
  body.single .footer,
  body.single .sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .single-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: calc(14px + var(--hc-ui-inset-right));
    bottom: calc(72px + max(24px, var(--hc-ui-inset-bottom)));
    z-index: 500;
    overflow: visible;
  }

  .single-fab__like-wrap {
    position: relative;
    overflow: visible;
  }

  /* Alap gomb stílus */
  .single-fab__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 0;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1),
                background 0.18s ease,
                border-color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    flex-shrink: 0;
  }

  .single-fab__btn:active {
    transform: scale(0.88);
  }

  /* Szám badge – gomb jobb felső sarkában */
  .single-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent, #E6782E);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
  }

  /* Üres count badge elrejtése */
  .single-fab__count:empty {
    display: none;
  }

  /* Like aktív (szív – piros, mint a feed) */
  .single-fab__btn--like.is-liked {
    color: #ef4444;
  }
  .single-fab__btn--like.is-liked svg {
    stroke: #ef4444;
    fill: #ef4444;
  }

  /* Bookmark aktív */
  .single-fab__btn--bookmark.is-active {
    background: rgba(56, 189, 248, 0.88);
    border-color: rgba(56, 189, 248, 0.5);
  }

  /* ---- Like sub-menu (4 reakció kibontódik balra) ---- */
  .single-fab__reactions {
    position: absolute;
    right: calc(100% + 10px);
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
  }

  .single-fab__reactions.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
  }

  /* Reakció gombok */
  .single-fab__react-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.14);
    font-size: 1.2rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1),
                background 0.15s ease;
    position: relative;
  }

  .single-fab__react-btn:active {
    transform: scale(0.85);
  }

  .single-fab__react-btn.is-active {
    background: rgba(249, 115, 22, 0.75);
    border-color: rgba(249, 115, 22, 0.5);
  }

  /* Tooltip label */
  .single-fab__react-btn::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,23,42,0.92);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .single-fab__react-btn:hover::after,
  .single-fab__react-btn:focus::after {
    opacity: 1;
  }
}

/* ============================================================
   AUTH DRAWER – bejelentkezés / regisztráció modal (mobilon)
   ============================================================ */
.hc-auth-drawer[hidden] { display: none !important; }
.hc-auth-drawer {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hc-auth-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.hc-auth-drawer.is-open .hc-auth-drawer__backdrop { opacity: 1; }

.hc-auth-drawer__sheet {
  position: relative;
  z-index: 1;
  background: #1a1f2e;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px max(28px, var(--hc-ui-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90dvh;
  overflow-y: auto;
}
.hc-auth-drawer.is-open .hc-auth-drawer__sheet { transform: translateY(0); }

.hc-auth-drawer__handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* Tabok */
.hc-auth-drawer__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}
.hc-auth-drawer__tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.hc-auth-drawer__tab.is-active {
  background: #f97316;
  color: #fff;
}

/* Form */
.hc-auth-form { display: flex; flex-direction: column; gap: 16px; }

.hc-auth-form__field { display: flex; flex-direction: column; gap: 6px; }

.hc-auth-form__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hc-auth-form__input-wrap { position: relative; }

.hc-auth-form__input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}
.hc-auth-form__input:focus {
  border-color: rgba(249, 115, 22, 0.6);
  background: rgba(255, 255, 255, 0.09);
}
.hc-auth-form__input-wrap .hc-auth-form__input { padding-right: 46px; }

.hc-auth-form__eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}
.hc-auth-form__eye.is-visible,
.hc-auth-form__eye:hover { color: rgba(255, 255, 255, 0.8); }

.hc-auth-form__error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #fca5a5;
}

.hc-auth-form__submit {
  padding: 14px;
  background: #f97316;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.hc-auth-form__submit:hover  { background: #ea580c; }
.hc-auth-form__submit:active { transform: scale(0.98); }
.hc-auth-form__submit:disabled {
  background: rgba(249, 115, 22, 0.4);
  cursor: not-allowed;
}

.hc-auth-form__forgot {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.hc-auth-form__forgot:hover { color: rgba(255, 255, 255, 0.75); }

/* Bottom nav / tt-nav button reset (link stílusra) */
button.mobile-nav-item,
button.tt-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
