/* ==========================================================================
   MASTER INDEX.CSS (Főoldal + Impresszum + Adatkezelés + Cikkek)
   ========================================================================== */

:root {
  --bg: #0a0a0e;
  --bg-2: #101016;
  --card: #16161f;
  --card-2: #1d1d28;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --ink: #f5f5f8;
  --muted: #9b9bab;
  --muted-2: #6f6f80;
  --muted-light: #b4b4c1; /* Cikkek belső, picit világosabb szürke tónusa */
  --red: #ff2d46;
  --red-deep: #d8001e;
  --gold: #f6c453;
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ha a lapon van cikk-doboz, a sorköz megnő a kényelmesebb olvasáshoz */
body:has(.article-shell) {
  line-height: 1.74;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.display { font-family: "Archivo", sans-serif; }


/* ---------- 1. HEADER ---------- */

header.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,14,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 11px;
  font-family: "Archivo"; font-weight: 900; letter-spacing: -.02em; font-size: 18px;
}
.logo .tag {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .06em;
}
nav.top { display: flex; align-items: center; gap: 26px; }
nav.top a {
  color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s;
}
nav.top a:hover { color: var(--ink); }


/* ---------- 2. HERO SZEKCIÓ (Főoldal vs. Aloldal intelligens váltás) ---------- */

.hero {
  position: relative; padding: 74px 0 56px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 80% at 80% -10%, rgba(255,45,70,.22), transparent 60%),
    radial-gradient(50% 70% at 0% 110%, rgba(246,196,83,.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px;
  font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
h1.hero-title {
  font-family: "Archivo"; font-weight: 900; letter-spacing: -.03em; line-height: .92;
  font-size: clamp(54px, 12vw, 150px); text-transform: uppercase;
}
h1.hero-title .out {
  color: transparent; -webkit-text-stroke: 2px var(--red);
  text-shadow: 0 0 40px rgba(255,45,70,.25);
}
.hero-sub {
  max-width: 540px; margin-top: 22px; font-size: clamp(16px, 2.4vw, 19px); color: var(--muted);
}

/* Ha a lapon van .article-shell, a Hero felveszi a belső oldali stílusát: */
body:has(.article-shell) .hero {
  padding: 80px 0 70px;
}
body:has(.article-shell) .hero::after {
  content: "BLACK FRIDAY"; position: absolute; right: -.08em; bottom: -.25em;
  font-family: "Archivo"; font-weight: 900; font-size: clamp(74px, 15vw, 210px);
  line-height: .82; letter-spacing: -.05em; text-transform: uppercase;
  color: rgba(255,255,255,.025); white-space: nowrap; pointer-events: none;
}
body:has(.article-shell) h1.hero-title {
  max-width: 980px; letter-spacing: -.045em; line-height: .93;
  font-size: clamp(44px, 8vw, 120px);
}
body:has(.article-shell) .hero-sub {
  max-width: 760px; font-size: clamp(16px, 2.4vw, 20px);
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 14px;
}


/* ---------- 3. GOMBOK ÉS PILL-EK ---------- */

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; transition: transform .15s ease, background .2s, border-color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); border-radius: 999px; padding: 7px 12px;
  font-weight: 700; color: var(--ink);
}
.pill.red {
  background: rgba(255,45,70,.12); border-color: rgba(255,45,70,.32); color: #fff;
}


/* ---------- 4. FŐOLDALI MODULOK ---------- */

section { padding: 64px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { font-family: "Archivo"; font-weight: 800; letter-spacing: -.02em; font-size: clamp(26px,4vw,40px); line-height: 1.05; }
.sec-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block; }
.sec-head p { color: var(--muted); max-width: 440px; }
.link-arrow { color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* Brands */
.brands { margin-top: 54px; }
.brands .lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-bottom: 18px; }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.brand-chip {
  background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; height: 64px; width: 150px;
  display: flex; align-items: center; justify-content: center; padding: 0 22px; transition: border-color .2s, background .2s;
}
.brand-chip:hover { border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.brand-chip img { max-height: 26px; max-width: 100%; filter: brightness(0) invert(1); opacity: .85; }

/* Deals */
.deals { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.deal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, border-color .2s, box-shadow .2s; }
.deal:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.deal-media { position: relative; background: #f4f4f6; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 22px; }
.deal-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.save-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #1a1206; font-family: "Archivo"; font-weight: 900; font-size: 14px; padding: 5px 11px; border-radius: 9px; }
.deal-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal-brand { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.deal-name { font-family: "Archivo"; font-weight: 700; font-size: 17px; line-height: 1.2; }
.deal-spec { font-size: 13px; color: var(--muted); flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: 14px; }
.price-new { font-family: "Archivo"; font-weight: 900; font-size: 22px; color: #fff; }
.valid { font-size: 12px; color: var(--muted-2); }
.deal .btn { margin-top: 12px; justify-content: center; width: 100%; font-size: 14px; padding: 11px; }

/* Promos */
.promos { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.promo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--card-2); }
.promo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.promo:hover img { transform: scale(1.05); }
.promo .overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(to top,rgba(0,0,0,.7),transparent 55%); }
.promo .overlay .btn { background: #fff; color: #0a0a0e; }
.promo .overlay .btn:hover { background: var(--gold); }

/* App CTA banner */
.app { background: linear-gradient(135deg,#1a1015,var(--card-2)); border: 1px solid var(--line); border-radius: 24px; padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; position: relative; overflow: hidden; }
.app::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle,rgba(255,45,70,.25),transparent 70%); }
.app .txt { position: relative; z-index: 1; max-width: 560px; }
.app h2 { font-family: "Archivo"; font-weight: 800; font-size: clamp(24px,3.4vw,32px); line-height: 1.1; margin-bottom: 14px; }
.app p { color: var(--muted); }
.badges { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.badges img { height: 46px; width: auto; }

/* Magazine */
.mag { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .18s ease; display: flex; flex-direction: column; gap: 10px; }
.article:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.article .num { font-family: "Archivo"; font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .1em; }
.article h3 { font-family: "Archivo"; font-weight: 700; font-size: 20px; line-height: 1.25; }
.article p { color: var(--muted); font-size: 14px; }
.article .more { color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 4px; }

/* About */
.about { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.about-col h3 { font-family: "Archivo"; font-weight: 700; font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.about-col h3::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--red); }
.about-col p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }


/* ---------- 5. ALOLDALI (CIKK) STRUKTÚRA ÉS TARTALOM ---------- */

section.main { padding: 64px 0; }

/* Intelligens Layout: Alapból 1 oszlopos, de ha van mellette <aside>, 2 oszlopos rács lesz */
.layout {
  display: block; max-width: 980px; margin: 0 auto;
}
.layout:has(aside) {
  display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: start;
  max-width: 1180px; 
}

.article-shell {
  background: linear-gradient(180deg, var(--card), #12121a);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 28px 80px -48px rgba(0,0,0,.95);
}

.featured { position: relative; aspect-ratio: 16/8; overflow: hidden; background: var(--card-2); border-bottom: 1px solid var(--line); }
.featured img { width: 100%; height: 100%; object-fit: cover; opacity: .86; filter: saturate(1.05) contrast(1.06); }
.featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(10,10,14,.78),transparent 62%); }
.featured-caption { position: absolute; left: 24px; bottom: 20px; z-index: 2; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.content { padding: clamp(26px, 4.4vw, 58px); }

/* Cikk belső tipográfiája (Szigorúan levédve, hogy a főoldalba ne kössön bele) */
.article-shell .lead { font-size: clamp(18px, 2.2vw, 21px); color: #dedee7; max-width: 900px; margin-bottom: 22px; }
.article-shell p { color: var(--muted-light); margin-bottom: 18px; }

.article-shell h2 {
  font-family: "Archivo"; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(28px, 3.6vw, 48px); margin: 58px 0 20px; color: var(--ink); text-transform: uppercase;
}
.article-shell h2:first-child, .article-shell h2:first-of-type { margin-top: 0; }

.article-shell h3 {
  font-family: "Archivo"; font-weight: 700; line-height: 1.2; font-size: clamp(20px, 2.4vw, 26px);
  margin: 30px 0 12px; color: #fff; display: flex; align-items: center; gap: 12px;
}
.article-shell h3::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--red); flex: 0 0 auto; }

.article-shell ul { list-style: none; margin: 18px 0 28px; }
.article-shell li { position: relative; padding: 9px 0 9px 30px; color: var(--muted-light); }
.article-shell li::before { content: "•"; position: absolute; left: 6px; top: 7px; color: var(--gold); font-weight: 900; font-size: 20px; line-height: 1; }

/* Közös doboz: a .tip és az .info-box dizájnja egy és ugyanaz volt */
.info-box, .tip {
  position: relative; margin: 30px 0; padding: 22px 22px 22px 24px;
  border: 1px solid rgba(246,196,83,.22); border-radius: 18px;
  background: linear-gradient(135deg, rgba(246,196,83,.12), rgba(255,45,70,.08)); overflow: hidden;
}
.info-box::before, .tip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.info-box p:last-child, .tip p:last-child { margin-bottom: 0; }
.tip strong { color: var(--gold); }

.legal-section { padding-top: 8px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 44px; }
.plain-link { color: var(--gold); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Adattáblák (Impresszum / Adatkezelés) */
.data-card { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 20px 0; }
.data-card p:last-child { margin-bottom: 0; }
.data-row { display: grid; grid-template-columns: 230px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.data-row:first-child { border-top: 0; padding-top: 0; }
.data-row:last-child { padding-bottom: 0; }
.label { font-weight: 800; color: #fff; font-family: "Archivo"; letter-spacing: -.01em; }
.value { color: var(--muted); }
.value a { color: var(--gold); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Quick Grid (Készülj fel) */
.quick-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin: 34px 0 10px; }
.quick-card { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .18s ease, border-color .2s; }
.quick-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.quick-card .num { font-family: "Archivo"; font-weight: 900; color: var(--red); font-size: 14px; letter-spacing: .12em; margin-bottom: 8px; }
.quick-card h4 { font-family: "Archivo"; font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.quick-card p { font-size: 14px; margin: 0; color: var(--muted); }

/* Tartalomjegyzék */
.toc a { display: block; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; transition: color .2s; }
.toc a:hover { color: var(--gold); }

/* Aloldali alsó banner */
.cta { background: linear-gradient(135deg,#1a1015,var(--card-2)); border: 1px solid var(--line); border-radius: 24px; padding: 34px; display: block; margin-top: 42px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(255,45,70,.25),transparent 70%); }
.cta h2 { font-size: clamp(25px,3vw,34px); margin: 0 0 12px; }
.cta p { max-width: 620px; margin: 0; }


/* ---------- 6. SIDEBAR (OLDALSÁV) ---------- */

aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: linear-gradient(135deg,#1a1015,var(--card-2)); border: 1px solid var(--line); border-radius: 24px; padding: 26px; position: relative; overflow: hidden; }
.side-card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(255,45,70,.25),transparent 70%); }
.side-card > * { position: relative; z-index: 1; }
.side-logo { font-family: "Archivo"; font-weight: 900; font-size: 26px; letter-spacing: -.03em; line-height: .92; text-transform: uppercase; margin-bottom: 18px; }
.side-logo span { display: block; color: transparent; -webkit-text-stroke: 1px var(--red); }
.side-card h2 { font-family: "Archivo"; font-weight: 800; font-size: 24px; line-height: 1.1; margin: 0 0 12px; text-transform: none; }
.checklist { list-style: none; margin-top: 16px; }
.checklist li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--gold); font-weight: 900; font-size: 14px; }


/* ---------- 7. FOOTER ---------- */

footer { border-top: 1px solid var(--line); padding: 46px 0 56px; background: var(--bg-2); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-logo { font-family: "Archivo"; font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.foot-logo span { color: var(--red); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.foot-mail { color: var(--muted-2); font-size: 13px; margin-top: 18px; }


/* ---------- 8. EGYESÍTETT MEDIA QUERIES (Reszponzivitás) ---------- */

@media (max-width: 980px) {
  .deals { grid-template-columns: repeat(2,1fr); }
  .layout:has(aside) { grid-template-columns: 1fr; }
  aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .promos, .about { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mag { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.top { display: none; }
  .hero { padding: 58px 0 50px; }
  body:has(.article-shell) .hero { padding: 58px 0 50px; }
  .featured { aspect-ratio: 16/11; }
  .content { padding: 24px; }
  .data-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .quick-grid, aside { grid-template-columns: 1fr; }
  .cta { padding: 26px; }
}

@media (max-width: 600px) {
  .brand-chip { width: calc(50% - 9px); }
}

@media (max-width: 520px) {
  .deals { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}