:root {
  --bg: #06101b;
  --bg-soft: #0b1827;
  --surface: rgba(12, 24, 38, 0.86);
  --surface-2: rgba(16, 33, 51, 0.92);
  --line: rgba(110, 150, 190, 0.18);
  --text: #eef5ff;
  --muted: #9fb0c3;
  --primary: #28d17c;
  --primary-strong: #17b868;
  --accent: #0f2d4a;
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(40, 209, 124, 0.08), transparent 26%),
    linear-gradient(180deg, #040a13 0%, #07111d 50%, #06101b 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(4, 10, 19, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-inner {
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand span {
  font-size: 0.84rem;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #04110a;
  box-shadow: 0 12px 28px rgba(40, 209, 124, 0.28);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
}

.btn-outline {
  background: transparent;
  border-color: rgba(40, 209, 124, 0.4);
  color: var(--text);
}

.btn-ghost {
  background: rgba(15, 45, 74, 0.45);
  border-color: rgba(102, 140, 180, 0.16);
}

.btn[disabled],
.btn.disabled,
.btn.inactive,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.shop-control {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.shop-status {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.full {
  width: 100%;
}

.hero {
  padding-top: 72px;
}

.hero-grid,
.split-grid,
.contact-wrap {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
}

.hero-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.lead,
.feature-card p,
.info-card p,
.list-card li,
.contact-copy p,
.status-card p {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}

.hero-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(40, 209, 124, 0.12);
}

.hero-panel,
.feature-card,
.list-card,
.contact-wrap,
.info-card,
.status-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  border-radius: 28px;
}

.glow-card {
  background: linear-gradient(180deg, rgba(9, 24, 40, 0.96) 0%, rgba(12, 28, 46, 0.86) 100%);
}

.status-card {
  padding: 22px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(40, 209, 124, 0.13);
  margin-bottom: 16px;
}

.mini-grid,
.cards {
  display: grid;
  gap: 18px;
}

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

.info-card,
.feature-card,
.list-card {
  padding: 24px;
  border-radius: var(--radius);
}

.info-card.wide {
  grid-column: 1 / -1;
}

.info-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(40, 209, 124, 0.12);
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.split-grid h2,
.contact-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card h3,
.info-card h3,
.list-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.accent-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(20, 41, 62, 0.2) 100%);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.split-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.list-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.contact-wrap {
  grid-template-columns: 1fr 0.9fr;
  padding: 28px;
  border-radius: 28px;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.site-footer {
  padding: 26px 0 40px;
  color: var(--muted);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

/* ── Mobil navigáció ── */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 14px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--text);
  background: rgba(40, 209, 124, 0.08);
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-grid,
  .split-grid,
  .contact-wrap,
  .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 46px;
  }

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

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-wrap,
  .hero-panel,
  .info-card,
  .feature-card,
  .list-card {
    padding: 20px;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

.product-grid,
.forecast-list,
.weather-summary {
  display: grid;
  gap: 20px;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.product-card,
.weather-card,
.cart-panel,
.forecast-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.product-card h3,
.weather-card h3,
.forecast-item h4 {
  margin: 0 0 0.75rem;
}

.product-card p,
.weather-card p,
.forecast-item p,
.cart-panel p {
  color: var(--muted);
}

.product-card ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.product-card li {
  margin-bottom: 0.6rem;
}

.product-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
}

.cart-panel {
  position: sticky;
  top: 104px;
  align-self: start;
}

.cart-panel h3,
.cart-panel .cart-total {
  margin: 0 0 1rem;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cart-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  margin-top: 18px;
}

.weather-summary {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.weather-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.weather-metric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.weather-metric div {
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 16px;
}

.weather-metric strong {
  display: block;
  margin-bottom: 0.4rem;
}

.forecast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forecast-item div {
  display: grid;
  gap: 6px;
}

.weather-note,
.shop-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .product-grid,
  .weather-summary,
  .forecast-list {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

/* ══════════════════════════════════════════════
   Hírek rovat, cikkoldalak, login – pótolt blokk
   (a refaktornál kimaradt osztályok)
   ══════════════════════════════════════════════ */

.section.tight {
  padding: 48px 0;
}

/* ── Morzsamenü ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 600;
}

/* ── Szekció fejléc gombbal ── */
.section-heading:has(> .heading-text) {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.heading-text {
  min-width: 0;
}

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

/* ── Kategóriasáv ── */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.category-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-strip a:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ── Hírkártyák ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 209, 124, 0.45);
  box-shadow: var(--shadow);
}

.news-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.news-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.news-card .date,
.article-meta .date {
  color: var(--muted);
  font-size: 0.8rem;
}

.news-card .more {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Címke (tag badge) ── */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(110, 150, 190, 0.12);
  color: var(--muted);
}

.tag-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.tag-iparagi  { background: rgba(40, 209, 124, 0.14); color: #4be398; }
.tag-penzugyi { background: rgba(240, 196, 25, 0.13); color: #f0c419; }
.tag-idojaras { background: rgba(56, 189, 248, 0.14); color: #5cc9f8; }
.tag-foci     { background: rgba(249, 115, 22, 0.14); color: #fb923c; }
.tag-hardver  { background: rgba(138, 180, 255, 0.14); color: #9dbcff; }
.tag-mcu      { background: rgba(192, 132, 252, 0.14); color: #c99af9; }
.tag-tool     { background: rgba(45, 212, 191, 0.14); color: #4adec9; }
.tag-blog     { background: rgba(244, 114, 182, 0.14); color: #f584bd; }

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.empty-note {
  color: var(--muted);
  font-size: 0.92rem;
  opacity: 0.75;
  margin-top: 14px;
}

/* ── Cikkoldal ── */
.container.narrow {
  max-width: 780px;
}

.article-header {
  margin-bottom: 22px;
}

.article-header h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  margin: 12px 0 10px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.article-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 14px 0 6px;
}

.article-body {
  color: var(--text);
  line-height: 1.7;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 30px 0 10px;
}

.article-body h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 0.98rem;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--primary-strong);
}

.article-footnote {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.8;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--primary-strong);
}

.news-article,
.pill-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 18px;
}

.news-body p {
  color: var(--muted);
  line-height: 1.65;
}

.news-todo,
.todo {
  background: rgba(240, 196, 25, 0.08);
  border: 1px solid rgba(240, 196, 25, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  color: #f0c419;
  font-size: 0.92rem;
  margin-top: 12px;
}

.feature-list {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Megosztás sáv ── */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.share-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ── Bejelentkezés / regisztrált tartalom ── */
.auth-page {
  max-width: 640px;
}

.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 20px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.login-form input {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.login-form input:focus {
  border-color: var(--primary);
}

.login-alert {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7fd4fa;
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-instructions {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.restricted-link {
  position: relative;
  opacity: 0.75;
}

.restricted-link::after {
  content: "🔒";
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ── Hasznos holmik / blog rács ── */
.resource-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.resource-card,
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 209, 124, 0.45);
}

.resource-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ── Reszponzív kiegészítés ── */
@media (max-width: 680px) {
  .news-grid,
  .resource-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-heading:has(> .heading-text) {
    flex-direction: column;
    align-items: flex-start;
  }
}
