/*
 * BYTEPOINT.HU — Közös stíluslap
 * v2.4.6 · 2026
 * ----------------------------------------
 * Tartalom:
 *   1. CSS változók (dark / light)
 *   2. Reset & alap
 *   3. Tipográfia segédosztályok
 *   4. Layout (.container)
 *   5. Topmeta
 *   6. Header + Nav
 *   7. Hamburger + Mobile menu
 *   8. Badge
 *   9. Szekció fejléc
 *  10. Kártya grid + Kártya
 *  11. Tesztek szekció
 *  12. Iparági lista
 *  13. Newsletter
 *  14. Footer
 *  15. Segédaniámciók
 *  16. Light mode overrides
 *  17. Reszponzív
 */

/* ============================================================
   1. CSS VÁLTOZÓK
   ============================================================ */
:root {
  --accent: #00ff9d;
  --accent-dim: #00cc7e;
  --hardware: #4dabff;
  --ai: #c084fc;
  --gaming: #ff4d6d;
  --tests: #ffd93d;
  --industry: #ff8c42;
  --transition: 180ms cubic-bezier(0.2, 0, 0, 1);
}

[data-theme="dark"] {
  --bg: #050608;
  --bg-elevated: #0d1015;
  --bg-card: #0a0d12;
  --bg-hover: #11151c;
  --border: #1a1f29;
  --border-strong: #2a3140;
  --text: #e8edf2;
  --text-secondary: #8a93a3;
  --text-muted: #4a5160;
  --scanline: rgba(0,255,157,0.03);
}

[data-theme="light"] {
  --bg: #f0f2f5;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #e8ebf0;
  --border: #dde1e8;
  --border-strong: #c4cad4;
  --text: #0d1117;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --accent: #009960;
  --accent-dim: #007a4d;
  --scanline: rgba(0,153,96,0.015);
}

/* ============================================================
   2. RESET & ALAP
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ============================================================
   3. TIPOGRÁFIA
   ============================================================ */
.mono { font-family: 'Geist Mono', monospace; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   5. TOPMETA
   ============================================================ */
.topmeta {
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
}
.topmeta-inner {
  display: flex;
  justify-content: space-between;
  padding: 6px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.topmeta-left { display: flex; gap: 20px; }
.status-online { color: var(--accent); }
.status-online::before { content: '●'; animation: blink 1.5s infinite; margin-right: 4px; }

/* ============================================================
   6. HEADER + NAV
   ============================================================ */
header.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 18px 32px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}
.logo {
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-bracket { color: var(--accent); }
.logo-version {
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  margin-left: 4px;
}
nav.main-nav { display: flex; gap: 2px; flex: 1; }
nav.main-nav a {
  padding: 8px 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition);
  border: 1px solid transparent;
}
nav.main-nav a:hover { color: var(--text); border-color: var(--border-strong); }
nav.main-nav a.active { color: var(--accent); border-color: var(--accent); }
nav.main-nav a .nav-num { color: var(--text-muted); margin-right: 4px; font-size: 10px; }

.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 14px; height: 14px; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0 12px;
  height: 34px;
  gap: 8px;
  width: 240px;
  transition: border-color var(--transition);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  flex: 1;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box svg { width: 12px; height: 12px; color: var(--text-muted); }
.search-kbd {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 1px 5px;
}

/* Breadcrumb */
.breadcrumb {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 10px 0;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.breadcrumb-inner a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }

/* ============================================================
   7. HAMBURGER + MOBILE MENU
   ============================================================ */
.hamburger {
  display: none;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { border-color: var(--accent); color: var(--accent); }
.hamburger span {
  display: block;
  width: 16px; height: 1px;
  background: currentColor;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu-close {
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 16px;
}
.mobile-menu-close:hover { border-color: var(--accent); color: var(--accent); }
.mobile-nav { flex: 1; padding: 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--accent); border-color: var(--border); background: var(--bg-elevated); padding-left: 20px; }
.mobile-nav a .mobile-nav-num { font-size: 12px; color: var(--text-muted); min-width: 24px; }
.mobile-menu-footer { padding: 20px; border-top: 1px solid var(--border); flex-shrink: 0; }
.mobile-menu-search {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0 14px;
  height: 44px;
  gap: 10px;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.mobile-menu-search:focus-within { border-color: var(--accent); }
.mobile-menu-search input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: 'Geist Mono', monospace; font-size: 14px; flex: 1;
}
.mobile-menu-search input::placeholder { color: var(--text-muted); }
.mobile-menu-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.mobile-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   8. BADGE
   ============================================================ */
.badge {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid;
  display: inline-block;
}
.badge.hardware { color: var(--hardware); border-color: var(--hardware); background: color-mix(in srgb, var(--hardware) 10%, transparent); }
.badge.ai       { color: var(--ai);       border-color: var(--ai);       background: color-mix(in srgb, var(--ai) 10%, transparent); }
.badge.gaming   { color: var(--gaming);   border-color: var(--gaming);   background: color-mix(in srgb, var(--gaming) 10%, transparent); }
.badge.tests    { color: var(--tests);    border-color: var(--tests);    background: color-mix(in srgb, var(--tests) 10%, transparent); }
.badge.industry { color: var(--industry); border-color: var(--industry); background: color-mix(in srgb, var(--industry) 10%, transparent); }

/* ============================================================
   9. SZEKCIÓ FEJLÉC
   ============================================================ */
.section { padding: 56px 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}
.section-title-wrap { display: flex; align-items: baseline; gap: 16px; }
.section-marker {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.section-title {
  font-family: 'Geist Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.section-title-bracket { color: var(--accent); font-weight: 400; }
.section-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   10. KÁRTYA GRID + KÁRTYA
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.card {
  cursor: pointer;
  background: var(--bg-card);
  padding: 18px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 400ms;
}
.card:hover::before { width: 100%; }
.card:hover { background: var(--bg-hover); }
.card:hover .card-img { transform: scale(1.04); filter: brightness(1.1); }
.card:hover .card-title { color: var(--accent); }

.card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: all 500ms; }
.card-img-overlay {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transition: color var(--transition);
}
.card-lead {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
}
.card-read { color: var(--accent); }

/* ============================================================
   11. TESZTEK SZEKCIÓ
   ============================================================ */
.tests-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  position: relative;
}
.tests-section::before {
  content: 'BENCHMARK_DATA';
  position: absolute;
  top: -8px; left: 32px;
  background: var(--bg-elevated);
  padding: 0 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.tests-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.test-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.test-card:hover {
  border-color: var(--tests);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--tests);
}
.test-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.test-content { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.test-score-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.score-num {
  font-family: 'Geist Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--tests);
  line-height: 1;
  letter-spacing: -0.02em;
}
.score-bar-wrap { flex: 1; }
.score-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.score-bar { height: 4px; background: var(--border); overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--tests); box-shadow: 0 0 8px var(--tests); }

/* ============================================================
   12. IPARÁGI LISTA
   ============================================================ */
.industry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.industry-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
  align-items: center;
}
.industry-item:hover { background: var(--bg-hover); }
.industry-item:hover .industry-title { color: var(--accent); }
.industry-num { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text-muted); }
.industry-content { min-width: 0; }
.industry-title { font-size: 14px; font-weight: 500; line-height: 1.35; margin-bottom: 4px; transition: color var(--transition); }
.industry-meta { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.industry-time { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--accent); white-space: nowrap; }

/* ============================================================
   13. NEWSLETTER
   ============================================================ */
.newsletter {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-inner { max-width: 540px; margin: 0 auto; text-align: center; position: relative; }
.newsletter-prefix {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.newsletter h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.1; }
.newsletter p { color: var(--text-secondary); margin-bottom: 28px; font-size: 14px; }
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.newsletter-form:focus-within { border-color: var(--accent); }
.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  outline: none;
}
.btn-primary {
  padding: 14px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--accent-dim); }

/* ============================================================
   14. FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--text-secondary); max-width: 340px; line-height: 1.55; }
.footer-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-col a::before { content: '> '; color: var(--text-muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   15. ANIMÁCIÓK
   ============================================================ */
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }
@keyframes car-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.3; transform:scale(.7); } }

/* ============================================================
   16. LIGHT MODE OVERRIDES
   ============================================================ */
[data-theme="light"] header.main-header {
  background: rgba(240,242,245,0.92);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .search-box { background: #fff; }
[data-theme="light"] .card { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
[data-theme="light"] .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
[data-theme="light"] .card-grid { background: #e8ebf0; }
[data-theme="light"] .card::before { background: var(--accent); }
[data-theme="light"] .card:hover .card-title { color: var(--accent); }
[data-theme="light"] .card-read { color: var(--accent); }
[data-theme="light"] .industry-list { background: #e8ebf0; }
[data-theme="light"] .industry-time { color: var(--accent); }
[data-theme="light"] .status-online { color: var(--accent); }
[data-theme="light"] .footer-col a:hover { color: var(--accent); }
[data-theme="light"] .section-link:hover { color: var(--accent); border-color: var(--accent); }
[data-theme="light"] .tests-section { border-top-color: var(--accent); }
[data-theme="light"] .newsletter::before {
  background: radial-gradient(ellipse at center, rgba(0,153,96,0.06) 0%, transparent 70%);
}
[data-theme="light"] .mobile-menu { background: #f0f2f5; }
[data-theme="light"] .mobile-nav a:hover,
[data-theme="light"] .mobile-nav a.active { background: #fff; }

/* ============================================================
   17. RESZPONZÍV
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .header-inner, .topmeta-inner { padding-left: 20px; padding-right: 20px; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tests-grid { grid-template-columns: 1fr; }
  .industry-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .search-box { width: 160px; }
}
@media (max-width: 640px) {
  .container, .header-inner, .topmeta-inner, .breadcrumb-inner { padding-left: 16px; padding-right: 16px; }
  .topmeta-left span:nth-child(n+3) { display: none; }
  .topmeta-inner { flex-direction: column; gap: 4px; padding: 8px 16px; font-size: 10px; }
  .topmeta-left { flex-wrap: wrap; gap: 6px 12px; }
  .header-inner { padding: 12px 16px; gap: 12px; }
  .logo { font-size: 14px; }
  .logo-version { display: none; }
  .search-box { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .section-title { font-size: 16px; }
  .test-card { grid-template-columns: 1fr; }
  .test-card img { aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .newsletter { padding: 48px 0; }
  .newsletter h2 { font-size: 26px; }
}

/* ============================================================
   CAROUSEL FEED
   ============================================================ */
.carousel-section {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a1218 0%, #050608 70%);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .carousel-section {
  background: linear-gradient(180deg, #e4eaf4 0%, #f0f2f5 100%);
}
.carousel-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 23%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 87% 14%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 34% 78%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 67% 56%, rgba(0,255,157,0.25), transparent),
    radial-gradient(1px 1px at 92% 37%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 8%  65%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}
[data-theme="light"] .carousel-section::before { display: none; }

.carousel-label {
  position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--accent);
  backdrop-filter: blur(8px);
  font-family: 'Geist Mono', monospace;
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap;
}
[data-theme="light"] .carousel-label { background: rgba(255,255,255,0.92); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.carousel-label::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  animation: car-pulse 1.4s infinite;
  box-shadow: 0 0 10px var(--accent);
}

.carousel-stage {
  position: absolute; inset: 56px 0 0 0;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.carousel-cylinder {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.c-card {
  position: absolute;
  width: 340px;
  left: -170px;
  top: -115px;
  transform-style: preserve-3d;
  cursor: pointer;
}
.c-card-inner {
  width: 340px;
  background: #0a0d12;
  border: 1px solid #1a1f29;
  overflow: hidden;
  position: relative;
  transition: border-color 300ms, box-shadow 300ms;
}
[data-theme="light"] .c-card-inner {
  background: #fff; border-color: #dde1e8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.c-card.is-active .c-card-inner {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0,255,157,0.2), 0 20px 60px rgba(0,0,0,0.7);
}
[data-theme="light"] .c-card.is-active .c-card-inner {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0,153,96,0.15), 0 8px 32px rgba(0,0,0,0.1);
}
.c-card-inner::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,255,157,0.03) 0px, rgba(0,255,157,0.03) 1px, transparent 1px, transparent 3px);
  pointer-events: none; z-index: 4;
}
[data-theme="light"] .c-card-inner::after { display: none; }
.c-card-inner::before {
  content: '';
  position: absolute; top: 8px; right: 8px;
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: car-pulse 2s infinite; z-index: 5;
}
.c-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.c-card.is-active .c-img { transform: scale(1.03); transition: transform 600ms; }
.c-img-overlay {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.92) 100%);
  pointer-events: none; z-index: 2;
}
.c-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px; z-index: 3; color: white;
}
.c-cat {
  font-family: 'Geist Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 4px;
}
[data-theme="light"] .c-cat { text-shadow: none !important; }
.c-title {
  font-size: 14px; font-weight: 600; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;
}
.c-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: space-between;
}
[data-theme="light"] .c-meta { color: rgba(0,0,0,0.4); }
.c-read { color: var(--accent); opacity: 0; transition: opacity 200ms; }
.c-card.is-active .c-read { opacity: 1; }

.carousel-controls {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  z-index: 20;
}
.car-btn {
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms; backdrop-filter: blur(8px);
}
.car-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }
[data-theme="light"] .car-btn { background: rgba(255,255,255,0.92); border-color: #dde1e8; color: #4a5568; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
[data-theme="light"] .car-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.car-btn svg { width: 14px; height: 14px; }
.car-dots { display: flex; gap: 5px; align-items: center; }
.car-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer; transition: all 200ms; border: none;
}
[data-theme="light"] .car-dot { background: rgba(0,0,0,0.15); }
.car-dot.active {
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  width: 18px; border-radius: 3px;
}
[data-theme="light"] .car-dot.active { box-shadow: 0 0 6px rgba(0,153,96,0.4); }

@media (max-width: 1024px) { .carousel-section { height: 420px; } }
@media (max-width: 640px) {
  .carousel-section { height: 360px; }
  .c-card { width: 260px; margin-left: -130px; }
  .c-card-inner { width: 260px; }
}



/* ============================================================
   MOBILE HOTFIX 2.4.7
   ============================================================ */
html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {

  .carousel-section {
    height: 320px;
    overflow: hidden;
  }

  /* Orientationchange fix: perspektíva stabilizálása */
  @supports (height: 100vh) {
    .carousel-section {
      height: max(320px, 100vw * 0.4);
    }
  }

  @media (orientation: landscape) {
    .carousel-section { height: 240px; }
    
    /* Landscape: szűkebb kártyák */
    .c-card { width: 200px; left: -100px; top: -75px; }
    .c-card-inner { width: 200px; }
    .c-title { font-size: 12px; -webkit-line-clamp: 1; }
    .c-meta { font-size: 9px; }
    
    .carousel-stage { perspective: 900px; }
  }

  .carousel-stage,
  .carousel-track {
    width: 100%;
    overflow: visible;
  }

  .c-card {
    width: calc(100vw - 64px);
    max-width: 280px;
    left: 50%;
    margin-left: calc((100vw - 64px) / -2);
    top: -40px;
  }

  .c-card-inner {
    width: 100%;
  }

  .carousel-label {
    width: calc(100vw - 48px);
    max-width: 520px;
    font-size: 12px;
    text-align: center;
  }

  .carousel-controls {
    bottom: 18px;
  }

  .section-header {
    overflow: hidden;
  }

  .section-title {
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
  }

  .card,
  .card-grid,
  .container {
    min-width: 0;
  }
}


/* Search form submit is visually hidden but keeps native form behavior working */
.search-submit-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}



/* ============================================================
   MOBILE SEARCH RESULTS FIX 2.6.5
   ============================================================ */
@media (max-width: 768px) {

  .search-results article,
  .search-results .post-card,
  .search-results .news-card {
      margin-bottom: 28px !important;
  }

  .search-results img,
  .search-results .post-thumbnail img,
  .search-results .wp-post-image {
      height: 180px !important;
      width: 100% !important;
      object-fit: cover !important;
      display: block !important;
  }

  .search-results .entry-title,
  .search-results h2 {
      font-size: 20px !important;
      line-height: 1.35 !important;
      font-weight: 700 !important;
      margin: 10px 0 8px !important;
  }

  .search-results .entry-excerpt,
  .search-results p {
      font-size: 14px !important;
      line-height: 1.55 !important;
      opacity: .82;
      margin: 0 !important;

      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .search-results .post-meta,
  .search-results .entry-meta {
      font-size: 11px !important;
      letter-spacing: 1px;
  }
}



/* ============================================================
   SECTION LABEL CLEANUP 2.6.5
   ============================================================ */
.section-kicker,
.section-prefix {
  display: none !important;
}

@media (max-width: 768px) {
  .section-header {
    gap: 10px !important;
  }

  .section-title {
    margin-left: 0 !important;
  }
}



/* ============================================================
   PAGE TEMPLATE 2.6.5
   ============================================================ */
.bp-page-wrap {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.bp-page {
  border: 1px solid var(--border);
  background: rgba(9, 12, 17, .72);
  padding: 40px;
}

[data-theme="light"] .bp-page {
  background: rgba(255,255,255,.9);
}

.bp-page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.bp-page-kicker {
  font-family: 'Geist Mono', monospace;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}

.bp-page-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 0;
}

.bp-page-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}

.bp-page-content h2,
.bp-page-content h3 {
  color: var(--text);
  margin-top: 36px;
}

.bp-page-content a {
  color: var(--accent);
}

@media (max-width: 768px) {
  .bp-page-wrap {
    width: min(100% - 32px, 980px);
    padding: 44px 0 72px;
  }

  .bp-page {
    padding: 24px;
  }

  .bp-page-content {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* Hard cleanup: old SECTION labels */
.section-kicker,
.section-prefix,
[class*="section-kicker"],
[class*="section-prefix"] {
  display: none !important;
}



/* ============================================================
   FINAL SECTION + MOBILE CAROUSEL POSITION FIX 2.6.5
   ============================================================ */

/* biztosan ne jelenjen meg section debug/kicker */
.section-kicker,
.section-prefix,
.section-count,
.section-label,
[class*="section-kicker"],
[class*="section-prefix"],
[class*="section-count"],
[class*="section-label"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Mobil fejlécben ne maradjon üres hely a kiszedett SECTION után */
@media (max-width: 768px) {
  .section-header,
  .category-section .section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .section-title {
    margin-left: 0 !important;
  }
}



/* ============================================================
   MOBILE 3D CAROUSEL — TISZTA, EGYETLEN BLOKK 2.6.8
   Felülír mindent egy darab konzisztens szabályrendszerrel.
   ============================================================ */
@media (max-width: 768px) {

  /* Section: csak ez vág, hogy a forgó kártyák felső/alsó pereme
     ne lógjon ki a hero alatt. */
  body .carousel-section {
    height: 280px !important;
    min-height: 280px !important;
    max-height: 280px !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Stage: perspective root, KELL hogy látható legyen, hogy
     az oldalsó (forgó) kártyák lássanak ki. 
     A felső 32px szabad — oda kerül a carousel-label. */
  body .carousel-stage {
    position: absolute !important;
    inset: 32px 0 0 0 !important;
    width: 100% !important;
    height: calc(100% - 32px) !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    perspective: 850px !important;
    perspective-origin: 50% 50% !important;
    overflow: visible !important;
  }

  /* Cylinder: 0×0 középen, gyermekek 3D-ben forognak. */
  body .carousel-cylinder,
  body #bp-cylinder {
    position: relative !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 auto !important;
    transform-style: preserve-3d !important;
    transform-origin: center center !important;
    transform: none !important;
  }

  /* Kártya: 220×140, margin negative-en centrálva a cylinderen.
     A JS `transform`-ot ír (rotateY/translateZ) — ezt nem kell
     felülírni CSS-ben transform-mal. */
  body .carousel-cylinder .c-card,
  body #bp-cylinder .c-card {
    position: absolute !important;
    width: 220px !important;
    height: 140px !important;
    max-width: 220px !important;
    max-height: 140px !important;
    left: 0 !important;
    top: 0 !important;
    margin: -70px 0 0 -110px !important;
    padding: 0 !important;
    transform-style: preserve-3d !important;
  }

  body .carousel-cylinder .c-card .c-card-inner,
  body #bp-cylinder .c-card .c-card-inner {
    width: 220px !important;
    height: 140px !important;
    max-width: 220px !important;
    max-height: 140px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  body .carousel-cylinder .c-card img.c-img,
  body #bp-cylinder .c-card img.c-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  body .c-content {
    padding: 8px 10px !important;
  }
  body .c-title {
    font-size: 12px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }
  body .c-meta {
    font-size: 8px !important;
  }

  /* Vezérlők alul */
  body .carousel-controls {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) scale(.85) !important;
    z-index: 10 !important;
  }

  body .carousel-label {
    display: flex !important;
    top: 6px !important;
    padding: 4px 10px !important;
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
    max-width: calc(100vw - 32px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 420px) {
  body .carousel-section {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }

  body .carousel-cylinder .c-card,
  body #bp-cylinder .c-card {
    width: 200px !important;
    height: 125px !important;
    max-width: 200px !important;
    max-height: 125px !important;
    margin: -62px 0 0 -100px !important;
  }
  body .carousel-cylinder .c-card .c-card-inner,
  body #bp-cylinder .c-card .c-card-inner {
    width: 200px !important;
    height: 125px !important;
  }
}
