/* juno.hu – reszponzív nyitóoldal (index_resp.php), 2026-10-07
   Mobil: 1 hasáb, ≥760px: 2 hasáb, ≥1140px: 3 hasáb (mint a klasszikus index.php).
   A hirdetési konténerekre (#hirdetes) csak külső térközt adunk – a hirdetést nem vágjuk, nem takarjuk. */

:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #1d2733;
  --muted: #5f6b7a;
  --line: #e2e8f0;
  --accent: #1565c0;
  --accent-soft: #e3eefb;
  --hot: #e53935;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 'Roboto', Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Felső gyorslinkek ---------- */
.quickbar {
  background: #0d47a1;
  color: #fff;
  font-size: 13px;
}
.quickbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.quickbar a { color: #fff; opacity: .92; }
.quickbar a:hover { opacity: 1; }
.quickbar .nameday { margin-left: auto; opacity: .9; }
.quickbar .nameday a { color: #fff; text-decoration: underline; }

/* ---------- Fejléc ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { margin: 0; line-height: 0; }
.brand img { display: block; width: 158px; height: auto; }

.search {
  flex: 1 1 320px;
  display: flex;
  max-width: 560px;
}
.search input[type=search] {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #c7d2e0;
  border-right: 0;
  border-radius: 21px 0 0 21px;
  font: inherit;
  background: #f8fafc;
}
.search input[type=search]:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); background: #fff; }
.search button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 0 21px 21px 0;
  background: var(--accent);
  color: #fff;
  font: 500 15px 'Roboto', Arial, sans-serif;
  cursor: pointer;
}

.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.btn-home {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 21px;
  background: var(--hot);
  color: #fff;
  font-weight: 500;
}
.btn-home:hover { text-decoration: none; background: #c62828; }

/* ---------- Hasábok ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 24px;
}
/* Mobilon a hasábok "feloldódnak", így a blokkok sorrendje az order-rel állítható. */
.col { display: contents; }
.col > * { order: 3; min-width: 0; }
.col > .m-first { order: 1; }
.col > .m-second { order: 2; }

@media (min-width: 760px) {
  .layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .col > *, .col > .m-first, .col > .m-second { order: 0; }
  .col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (min-width: 1140px) {
  .layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .col-right { grid-column: auto; display: flex; flex-direction: column; align-items: stretch; }
}

/* ---------- Kártyák ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.card h2 {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  font: 700 16px/1.25 'Roboto Condensed', 'Roboto', Arial, sans-serif;
  letter-spacing: .2px;
}

/* Ikonos linkrács */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
}
.links a:hover { color: var(--accent); text-decoration: none; }
.links img {
  width: 100%;
  max-width: 90px;
  aspect-ratio: 9 / 7;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}

/* ---------- Hírek ---------- */
.news-card .hirsor { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.news-card .hirsor:last-of-type { border-bottom: 0; }
.news-card br { display: none; }
.news-card a.news { color: var(--text); font-weight: 500; }
.news-card a.news:hover { color: var(--accent); }
.more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--accent-soft);
  font-weight: 500;
}
.more:hover { text-decoration: none; background: #d3e3f8; }

/* A cron által generált news_cache/*.html dobozok (top_news.php) */
.cachebox > div {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}
.cachebox > div:last-child { margin-bottom: 0; }
.cachebox br { display: none; }
.cachebox b { display: block; margin-bottom: 6px; font: 700 13px 'Roboto Condensed', Arial, sans-serif; letter-spacing: .6px; color: var(--hot); }
.cachebox a.news { display: block; padding: 6px 0; border-top: 1px solid var(--line); color: var(--text); }
.cachebox a.news:hover { color: var(--accent); }
.cachebox a.hircim, .cachebox a.hircimbulvar { display: block; font: 700 18px/1.3 'Roboto', Arial, sans-serif; color: var(--text); }
.cachebox .kepes_doboz_new_bulvar a { font-size: 16px; font-weight: 500; }
.cachebox a.morelink_red { display: block; padding: 3px 0; color: var(--hot); font-size: 14px; }

/* Admin által feltöltött képes doboz */
.feature img { display: block; width: 100%; aspect-ratio: 360 / 200; object-fit: cover; border-radius: 8px; }
.feature .title { display: block; margin-top: 8px; font: 700 18px/1.3 'Roboto', Arial, sans-serif; color: var(--text); }
.feature .morelink { display: inline-block; margin-top: 6px; color: var(--hot); font-size: 14px; }

/* ---------- Widgetek (valuta, lottó, szótár, kedvencek) ---------- */
.valutatabla, .lotto { width: 100%; border-collapse: collapse; font-size: 14px; }
.valutatabla td, .lotto td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.valutatabla td.valutaeladas { text-align: right; font-variant-numeric: tabular-nums; }
.lotto td.lottotipus { color: var(--muted); width: 45%; }
.lotto td.lottoszamok { font-weight: 500; }
.microtipo { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); }

form.dictionary { display: grid; gap: 8px; }
form.dictionary div { display: flex; gap: 8px; flex-wrap: wrap; }
.dictword, .myfavorite_input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #c7d2e0;
  border-radius: 8px;
  font: inherit;
}
.dictselect { flex: 1 1 120px; height: 36px; border: 1px solid #c7d2e0; border-radius: 8px; background: #fff; font: inherit; }
.dictsubmit, .lakhely_button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 19px;
  background: var(--accent);
  color: #fff;
  font: 500 14px 'Roboto', Arial, sans-serif;
  cursor: pointer;
}
.favorites { font-size: 14px; }
.favorites form { display: flex; gap: 8px; margin-top: 6px; }
.favorites a.ownlink { font-weight: 500; }
.favorites img { vertical-align: middle; }

/* ---------- Hirdetési konténerek: csak térköz, középre igazítás ---------- */
.ad-slot { text-align: center; }
.ad-slot #hirdetes { margin: 0 auto; }

/* ---------- Lábléc ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { padding-top: 6px; padding-bottom: 24px; text-align: center; }
.site-footer #footer a { display: inline-block; margin: 4px 8px; }
.site-footer .classic { margin-top: 10px; }
