/* PC Pult IdleRPG - web-stiluslap
   A paletta es a tipografia a pcpult.hu arculatabol szarmazik
   (plans/09 16.2-16.3: bg-primary, bg-card, bg-card-hover,
   text-primary/secondary/muted, border, accent-csalad, banner-border).
   Kulso fuggoseg CSAK a ket betu (Bebas Neue + DM Sans, Google Fonts);
   minden mas helyi. */

:root {
  --bg: #FAF8F9;
  --surface: #FFFFFF;
  --surface-alt: #FAF5F7;
  --text: #1A0A0E;
  --muted: #6B5560;
  --faint: #A06878;
  --border: #F0E8EB;
  --banner-border: #3D2028;
  --accent: #E8364E;
  --accent-hover: #C42D42;
  --accent-text: #E8364E;
  --on-accent: #FFFFFF;
  --good: #3D7A4A;
  --danger: #C42D42;
  --focus: #E8364E;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #150C0E;
  --surface: #1F1215;
  --surface-alt: #2B191D;
  --text: #F3EAEB;
  --muted: #CBB3BA;
  --faint: #A68A92;
  --border: #3C262B;
  --banner-border: #7A3F4D;
  --accent: #E8364E;
  --accent-hover: #C42D42;
  --accent-text: #FF5A72;
  --on-accent: #FFFFFF;
  --good: #8FC498;
  --danger: #FF5A72;
  --focus: #E8364E;
  color-scheme: dark;
}

/* rendszer-default: sotet ha az op rendszer is az (kezi valaszto felulir) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #150C0E;
    --surface: #1F1215;
    --surface-alt: #2B191D;
    --text: #F3EAEB;
    --muted: #CBB3BA;
    --faint: #A68A92;
    --border: #3C262B;
    --banner-border: #7A3F4D;
    --accent: #E8364E;
    --accent-hover: #C42D42;
    --accent-text: #FF5A72;
    --on-accent: #FFFFFF;
    --good: #8FC498;
    --danger: #FF5A72;
    --focus: #E8364E;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------ alap */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: "Bebas Neue", system-ui, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p { margin: 0 0 12px; }

a { color: var(--accent-text); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

code {
  font-family: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas,
               monospace;
  font-size: 0.92em;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

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

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.szam, .esemeny-ido, .friss-adat, td.szam {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ keret */

.fejlec {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.fejlec-belso {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}
.fejlec-marka {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}
.fejlec-ikon { width: 32px; height: 32px; border-radius: 8px; }

.nav { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
}

.fejlec-gombok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.theme-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 10px 8px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s;
}
.theme-toggle:hover { color: var(--accent-text); }
.theme-icon { display: none; }
.theme-toggle[data-mode="light"] .theme-icon-light,
.theme-toggle[data-mode="dark"] .theme-icon-dark,
.theme-toggle[data-mode="system"] .theme-icon-system { display: block; }

.tartalom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
@media (min-width: 760px) {
  .fejlec-belso, .tartalom { padding-left: 32px; padding-right: 32px; }
  .tartalom { padding-top: 32px; }
}

/* ------------------------------------------------------------ panelek */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(26, 10, 14, 0.04);
}
.kiemelt-panel { border-color: var(--banner-border); }

.allapot-panel { max-width: 640px; margin: 48px auto; text-align: center; }

/* ------------------------------------------------------------ frisseseg */

.elavult-jel {
  background: var(--surface-alt);
  border: 1px solid var(--banner-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 16px;
}

.friss-sor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.friss-adat { font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.chip-friss { color: var(--good); border-color: var(--good); }
.chip-elavult { color: var(--danger); border-color: var(--danger); }
.chip-figyelmeztetes { color: var(--danger); border-color: var(--danger); }
.chip-piheno { margin-left: 8px; }

/* ------------------------------------------------------------ gombok */

.gomb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.gomb-fo { background: var(--accent); color: var(--on-accent); }
.gomb-fo:hover { background: var(--accent-hover); color: var(--on-accent); }
.gomb-masodlagos {
  border-color: var(--accent);
  color: var(--accent-text);
  background: transparent;
}
.gomb-masodlagos:hover { color: var(--accent-hover); }
.gomb-kesztyus { margin-left: 12px; }
.gomb-hely { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------ hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 8px 0 24px;
}
.hero-szoveg {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-ikon { width: 64px; height: 64px; border-radius: 12px; }
.hero-szoveg h1 { font-size: 40px; margin: 0; }
.bevezeto {
  font-size: 20px;
  color: var(--muted);
  max-width: 65ch;
  margin: 0;
}
.hero-gombok { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-terkep {
  flex: 1 1 480px;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ------------------------------------------------------------ "most" panel */

.birodalom-most .most-jatekos { color: var(--muted); }
.most-oszlopok {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .most-oszlopok { grid-template-columns: 1fr 1fr; }
}
.most-elem {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.most-elem:last-child { margin-bottom: 0; }
.most-elem h3 { margin-bottom: 6px; }
.most-elem p { margin: 0 0 8px; }
.most-elem .kicsi { color: var(--faint); font-size: 14px; }

.haladas {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.haladas > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.lepesek { padding-left: 20px; margin: 0; }
.lepesek li { margin-bottom: 10px; }

/* ------------------------------------------------------------ tablak */

.tabla-gordito {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* a tablazat UTANI bekezdes kohnye szunetet kap (felhasznalo jelzes:
   ne legyen zsufolt a tabla es a kovetkezo szoveg kozt) */
.tabla-gordito + p { margin-top: 16px; }
.toplista, .parancs-tabla {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.toplista th, .toplista td, .parancs-tabla th, .parancs-tabla td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.toplista thead th, .parancs-tabla thead th {
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toplista tbody tr:last-child td,
.parancs-tabla tbody tr:last-child td { border-bottom: none; }
.toplista tr.top-3 .nev {
  color: var(--accent-text);
  font-weight: 700;
}

.nev-potty {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: baseline;
  border: 1px solid var(--border);
}
.osztaly { color: var(--muted); }

.jellem-jo { color: var(--good); }
.jellem-gonosz { color: var(--danger); }
.jellem-semleges { color: var(--muted); }

.halvany { color: var(--muted); }

.countdown { white-space: nowrap; }
.megallt-jel { color: var(--faint); font-size: 13px; white-space: nowrap; }

.megjegyzes {
  color: var(--faint);
  font-size: 14px;
  max-width: 65ch;
}

/* ------------------------------------------------------------ terkep */

.terkep-kep {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.terkep-oszlopok {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .terkep-oszlopok { grid-template-columns: 1fr 1fr; }
}
.jegyzek { padding-left: 20px; margin: 0; }
.jegyzek li, .nevjegyzek li { margin-bottom: 6px; }
.nevjegyzek { padding-left: 20px; margin: 0; }

/* ------------------------------------------------------------ kartyak */

.eredmeny-sor { color: var(--muted); }
.kartya-racs {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 16px 0;
}
@media (min-width: 640px) { .kartya-racs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .kartya-racs { grid-template-columns: repeat(3, 1fr); } }
.kartya {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 0;
}
.kartya h2 { font-size: 22px; }
.kartya .flavor { color: var(--muted); font-style: italic; }
.kartya-adat { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.kartya-adat dt { color: var(--faint); font-size: 14px; }
.kartya-adat dd { margin: 0; }

/* ------------------------------------------------------------ esemenyek */

/* a hirfolyam a tobbi oldallal azonos tartalomszelesseget tolt ki
   (felhasznaloi dontes - a terv 800 px-es korlatja kikerult) */
.nap-fej { font-size: 22px; margin: 24px 0 8px; }
.esemenyek {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.esemeny-sor {
  display: flex;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.esemeny-sor:last-child { border-bottom: none; }
.esemeny-ido {
  color: var(--faint);
  font-size: 14px;
  white-space: nowrap;
  padding-top: 2px;
}
.esemeny-jel { flex: none; }
.esemeny-szoveg { min-width: 0; }

.lapozo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.ures-uzenet {
  color: var(--muted);
  font-size: 18px;
}

/* ------------------------------------------------------------ lablec */

.lablec {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.lablec-belso {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
@media (min-width: 760px) {
  .lablec-belso { padding-left: 32px; padding-right: 32px; }
}
.lablec a { color: var(--muted); }
.lablec a:hover { color: var(--accent-text); }
.frissites-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 10px 8px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s;
}
.frissites-toggle:hover { color: var(--accent-text); }
.frissites-toggle[data-be="1"] { color: var(--accent-text); }
.frissites-toggle[data-be="0"] { color: var(--muted); }

/* keszulleki kenyelmseg: 320 px-tol nincs oldal-szintu tulcsordulas */
@media (max-width: 380px) {
  .fejlec-ikon { width: 24px; height: 24px; }
  .hero-szoveg h1 { font-size: 32px; }
}

/* ------------------------------------------------------------ profil (W2) */

.profil-fej-sor {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nev-potty.nagy { width: 36px; height: 36px; border-radius: 50%; }
.profil-nev-blokk h1 { margin-bottom: 4px; }
.osztaly-sor { margin: 0; color: var(--muted); }
.kiemelt-cim { color: var(--accent-text); font-weight: 700; }

.profil-szamok {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.profil-szamok > div { display: flex; flex-direction: column; gap: 2px; }
.cimke { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.ertek { font-weight: 700; font-variant-numeric: tabular-nums; }

.profil-oszlopok {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
/* a bal oldali oszlop (Allapot + Kituntetesek egyutt): igy a
   Kituntetesek KOZVETLENUL az Allapot ala kerul, akkor is, ha a
   jobboldali Felszereles magasabb (felhasznalo jelzes, 2026-11-10) */
.profil-bal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
@media (min-width: 900px) {
  .profil-oszlopok { grid-template-columns: 1fr 2fr; align-items: start; }
}
.felszereles { width: 100%; border-collapse: collapse; }
.felszereles th, .felszereles td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.felszereles tr:last-child th, .felszereles tr:last-child td { border-bottom: none; }
.felszereles th { color: var(--muted); font-weight: 500; width: 40%; }
.kicsi-szam { color: var(--faint); font-size: 14px; }
.cimek { list-style: none; padding: 0; margin: 0; }
.cimek li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.cimek li:last-child { border-bottom: none; }

.nev-link { color: inherit; text-decoration: none; }
.nev-link:hover { color: var(--accent-text); text-decoration: underline; }
.toplista .nev-link, .kartya .nev-link { color: var(--text); }
.toplista tr.top-3 .nev-link { color: var(--accent-text); }

/* ------------------------------------------------------------ valtozasnaplo */

.verzio-link { color: var(--muted); text-decoration: none; }
.verzio-link:hover { color: var(--accent-text); text-decoration: underline; }

.naplo-elem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}
.naplo-fej {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  margin-bottom: 6px;
}
.naplo-verzio {
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: 20px;
  color: var(--accent-text);
}
.naplo-datum { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.naplo-elem ul { margin: 0; padding-left: 20px; }
.naplo-elem li { margin-bottom: 4px; }

/* profil allapot-sor szinek */
.statusz-online { color: var(--good); font-weight: 700; }
.statusz-offline { color: var(--muted); }
