/* ===========================
   mindenara.hu — globális stílusok
   =========================== */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --color-bg: #ffffff;
  --color-surface: #f8f7f4;
  --color-border: #e8e6e1;
  --color-text: #1a1917;
  --color-text-muted: #6b6965;
  --color-accent: #e84d3d;
  --color-accent-light: #fff0ee;
  --color-green: #16a34a;
  --color-green-light: #f0fdf4;
  --color-amber: #d97706;
  --color-amber-light: #fffbeb;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigáció ---- */
.nav { border-bottom: 1px solid var(--color-border); background: var(--color-bg); position: sticky; top: 0; z-index: 100; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.nav__logo { font-size: 1.1rem; font-weight: 700; text-decoration: none; color: var(--color-text); letter-spacing: -0.02em; }
.nav__logo span { color: var(--color-accent); }
.nav__links { display: flex; gap: 4px; list-style: none; }
.nav__links a { font-size: 0.85rem; color: var(--color-text-muted); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.nav__links a:hover { background: var(--color-surface); color: var(--color-text); }
.nav__mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: 0.2s; }
.nav__mobile { display: none; border-top: 1px solid var(--color-border); background: var(--color-bg); }
.nav__mobile ul { list-style: none; padding: 12px 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.nav__mobile a { display: block; padding: 10px 12px; color: var(--color-text); text-decoration: none; border-radius: var(--radius-sm); font-size: 0.95rem; }
.nav__mobile a:hover { background: var(--color-surface); }
.nav__mobile.is-open { display: block; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 0.8rem; color: var(--color-text-muted); padding: 14px 0 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-text); text-decoration: underline; }
.breadcrumb__sep { opacity: 0.4; }

/* ---- Hero ár doboz ---- */
.price-hero { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px 32px; margin: 24px 0; display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.price-hero__label { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 500; margin-bottom: 6px; }
.price-hero__value { font-size: 2.6rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.03em; line-height: 1; }
.price-hero__unit { font-size: 1rem; color: var(--color-text-muted); margin-left: 4px; }
.price-hero__range { margin-left: auto; text-align: right; font-size: 0.85rem; color: var(--color-text-muted); line-height: 1.8; }

/* ---- Táblázat ---- */
.price-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 16px 0; }
.price-table th { text-align: left; padding: 10px 14px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); border-bottom: 2px solid var(--color-border); }
.price-table td { padding: 13px 14px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-surface); }
.price-table .td-price { font-weight: 600; }
.price-table .td-city a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.price-table .td-city a:hover { color: var(--color-accent); text-decoration: underline; }

/* ---- Kártya grid ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 18px; text-decoration: none; color: var(--color-text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; display: block; }
.card:hover { border-color: #c0bdb8; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transform: translateY(-1px); }
.card__city { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.card__megye { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 10px; }
.card__price { font-size: 1.1rem; font-weight: 700; }
.card__price-sub { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 2px; }

/* ---- Badge ---- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.badge--green { background: var(--color-green-light); color: var(--color-green); }
.badge--amber { background: var(--color-amber-light); color: var(--color-amber); }
.badge--red   { background: var(--color-accent-light); color: var(--color-accent); }

/* ---- Tipográfia ---- */
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; margin-top: 16px; }
h2 { font-size: 1.2rem; font-weight: 600; margin: 36px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
p  { margin-bottom: 14px; line-height: 1.7; }
.lead { font-size: 1.05rem; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 24px; }
a { color: var(--color-accent); }

/* ---- Info doboz ---- */
.info-box { background: var(--color-surface); border-left: 3px solid var(--color-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 20px 0; font-size: 0.9rem; line-height: 1.65; color: var(--color-text-muted); }
.info-box strong { color: var(--color-text); }

/* ---- FAQ ---- */
.faq { margin: 0; }
.faq summary { cursor: pointer; font-weight: 500; padding: 15px 0; border-top: 1px solid var(--color-border); list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--color-text-muted); font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq__body { padding: 4px 0 18px; font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.75; }
.faq__body p:last-child { margin-bottom: 0; }

/* ---- AdSense ---- */
.ad-slot { background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius-md); min-height: 90px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--color-text-muted); margin: 28px 0; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--color-border); padding: 48px 0 0; margin-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.footer__brand p { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 8px; max-width: 240px; }
.footer__nav { display: flex; gap: 48px; }
.footer__col strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); display: block; margin-bottom: 12px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 0.88rem; color: var(--color-text-muted); text-decoration: none; }
.footer__col a:hover { color: var(--color-text); }
.footer__bottom { border-top: 1px solid var(--color-border); margin-top: 40px; padding: 16px 0; }
.footer__bottom p { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  .price-hero { padding: 20px; gap: 16px; }
  .price-hero__value { font-size: 2rem; }
  .price-hero__range { margin-left: 0; text-align: left; }
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__nav { gap: 32px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .container--wide { padding: 0 16px; }
  h1 { font-size: 1.35rem; }
  .card-grid { grid-template-columns: 1fr; }
  .price-table { font-size: 0.85rem; }
  .price-table th, .price-table td { padding: 10px 8px; }
  .footer__nav { flex-direction: column; gap: 24px; }
}

/* ---- Core Web Vitals optimalizáció ---- */
img { max-width: 100%; height: auto; display: block; }
* { text-rendering: optimizeSpeed; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
