:root{
  --gold:#b98a4a;
  --gold2:#e2c9a1;
  --gold-soft:rgba(185,138,74,0.12);
  --gold-line:rgba(185,138,74,0.24);
  --gold-strong:rgba(185,138,74,0.42);

  --ink:#131313;
  --ink-soft:#555;
  --ink-mid:#666;
  --ink-light:#777;

  --card:rgba(255,255,255,0.88);
  --card-strong:rgba(255,255,255,0.94);
  --card-soft:rgba(255,255,255,0.76);

  --shadow:0 12px 30px rgba(0,0,0,0.18);
  --shadow-soft:0 8px 20px rgba(0,0,0,0.10);

  --radius:18px;
  --radius-sm:14px;

  --wrap:1100px;
}

/* =========================================================
   ALAPOK
========================================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background:#f3efe9;
  line-height:1.6;
}

a{
  color:var(--gold);
  text-decoration:none;
  transition:color .18s ease, opacity .18s ease;
}

a:hover{
  text-decoration:underline;
}

/* =========================================================
   HÁTTÉR
========================================================= */

.bg{
  position:fixed;
  inset:0;
  background:url("./background.png") center top / cover no-repeat;
  z-index:-2;
}

.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.58);
  z-index:-1;
}

/* =========================================================
   FEJLÉC / TOPBAR
========================================================= */

.topbar{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:22px 22px 18px;
  max-width:var(--wrap);
  margin:0 auto;
  text-align:center;
}

.logo{
  width:460px;
  max-width:100%;
  margin:8px 0 4px;
  height:auto;
  filter:drop-shadow(0 4px 14px rgba(0,0,0,0.08));
}

.title{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}

.title h1{
  margin:0;
  font-size:30px;
  line-height:1.2;
  color:var(--gold);
  letter-spacing:.3px;
  text-shadow:0 1px 0 rgba(255,255,255,0.65);
}

.title h3{
  margin:0;
  font-size:16px;
  color:#6a5537;
  font-weight:700;
}

.title p{
  margin:0;
  color:#5f5f5f;
  max-width:900px;
}

/* =========================================================
   ALAP ELRENDEZÉS
========================================================= */

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:12px 22px 60px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:start;
}

.twin{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:end;
}

.doc-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  align-items:start;
}

.doc-sidebar{
  position:sticky;
  top:14px;
  align-self:start;
}

/* =========================================================
   KÁRTYÁK
========================================================= */

.card{
  background:var(--card);
  border:1px solid var(--gold-line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 18px 12px;
  overflow:hidden;
  backdrop-filter:blur(8px);
}

.cardlite{
  margin-top:20px;
  background:var(--card-soft);
  border:1px solid rgba(185,138,74,0.18);
  border-radius:16px;
  padding:14px;
  min-width:0;
  box-shadow:var(--shadow-soft);
}

.card h2{
  margin:0 0 12px 0;
  color:var(--gold);
  font-size:20px;
  line-height:1.3;
}

.card h3{
  margin:0 0 8px 0;
  color:var(--gold);
  font-size:16px;
  line-height:1.35;
}

.card h4{
  margin:0 0 8px 0;
  color:#5a3c1f;
  font-size:14px;
  line-height:1.35;
}

.mini{
  min-height:80px;
}

/* =========================================================
   SZÖVEGES SEGÉDOSZTÁLYOK
========================================================= */

.small{
  font-size:12px;
  color:var(--ink-mid);
  white-space:pre-line;
  line-height:1.55;
}

.lead{
  font-size:14px;
  color:var(--ink-soft);
  margin:0;
}

.mono{
  font-family:Consolas, "Courier New", monospace;
}

/* =========================================================
   CHIP / BADGE ELEMEK
========================================================= */

.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.chip{
  background:var(--gold-soft);
  border:1px solid rgba(185,138,74,0.35);
  color:#5a3c1f;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}

.matrix-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  background:var(--gold-soft);
  border:1px solid rgba(185,138,74,0.28);
  color:#5a3c1f;
  white-space:nowrap;
}

.version-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(185,138,74,.12);
  color:#7b5b2f;
  font-size:12px;
  font-weight:700;
  margin-bottom:10px;
}

/* =========================================================
   NAVIGÁCIÓ
========================================================= */

.nav-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.nav-list a{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(185,138,74,0.18);
  color:#5a3c1f;
  font-weight:600;
  line-height:1.4;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.nav-list a:hover{
  background:rgba(185,138,74,0.10);
  border-color:rgba(185,138,74,0.28);
  text-decoration:none;
  transform:translateY(-1px);
}

.nav-list a.active{
  background:rgba(185,138,74,0.16);
  border:1px solid var(--gold-strong);
  box-shadow:0 4px 12px rgba(185,138,74,0.10);
}

/* =========================================================
   DOKUMENTÁCIÓS SZEKCIÓK
========================================================= */

.section-divider{
  grid-column:1 / -1;
  border:0;
  border-top:1px solid rgba(185,138,74,0.25);
  margin:8px 0;
}

.doc-section{
  scroll-margin-top:18px;
}

/* =========================================================
   ENDPOINT BLOKKOK
========================================================= */

.endpoint-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.endpoint-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.endpoint-title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.method{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:68px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  color:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.method.get{
  background:#4f89c7;
}

.method.post{
  background:#2e9c60;
}

.method.delete{
  background:#ba5b52;
}

.path{
  font-family:Consolas, "Courier New", monospace;
  font-size:15px;
  font-weight:700;
  color:#3f2b16;
  word-break:break-word;
}

.endpoint-purpose{
  font-size:13px;
  color:var(--ink-mid);
  font-weight:600;
}

/* =========================================================
   INFO GRID / INFO BOX
========================================================= */

.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}

.info-box{
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(185,138,74,0.18);
  border-radius:14px;
  padding:12px;
  min-width:0;
}

.info-box ul{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:6px;
  color:var(--ink-soft);
  font-size:13px;
}

.info-box p{
  margin:0;
  color:var(--ink-soft);
  font-size:13px;
}

/* =========================================================
   TÁBLÁZATOK
========================================================= */

.table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid rgba(185,138,74,0.18);
  border-radius:14px;
  background:rgba(255,255,255,0.74);
  margin-top:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.4);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

th,
td{
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid rgba(185,138,74,0.14);
  font-size:13px;
}

th{
  background:rgba(185,138,74,0.10);
  color:#5a3c1f;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* =========================================================
   KÓDBLOKKOK
========================================================= */

pre{
  margin:12px 0 0;
  padding:12px 14px;
  overflow:auto;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(185,138,74,0.25);
  border-radius:14px;
  color:#333;
  font-size:12px;
  line-height:1.55;
}

code{
  font-family:Consolas, "Courier New", monospace;
}

/* =========================================================
   FOLYAMATBLOKKOK
========================================================= */

.flow{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.flow-step{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(185,138,74,0.18);
}

.flow-step strong{
  display:block;
  color:#5a3c1f;
  margin-bottom:4px;
}

/* =========================================================
   NOTE BOX
========================================================= */

.note-box{
  margin-top:12px;
  padding:12px 14px;
  border-left:4px solid var(--gold);
  border-radius:12px;
  background:rgba(255,255,255,0.74);
  border-top:1px solid rgba(185,138,74,0.18);
  border-right:1px solid rgba(185,138,74,0.18);
  border-bottom:1px solid rgba(185,138,74,0.18);
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.6;
}

/* =========================================================
   DOKUMENTÁCIÓ VERZIÓVÁLASZTÓ
========================================================= */

.doc-version-switch{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  padding:4px 0;
}

.doc-version-switch label{
  font-weight:700;
  color:var(--gold);
  font-size:14px;
}

.doc-version-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  min-width:280px;
  max-width:100%;
  padding:12px 44px 12px 14px;
  border-radius:14px;
  border:1px solid rgba(185,138,74,0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,247,242,0.96));
  color:#4b3520;
  font-size:14px;
  font-weight:600;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
  outline:none;
  cursor:pointer;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,247,242,0.96)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b98a4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat, no-repeat;
  background-position:0 0, right 14px center;
  background-size:100% 100%, 18px 18px;
}

.doc-version-select:hover{
  border-color:rgba(185,138,74,0.52);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform:translateY(-1px);
}

.doc-version-select:focus{
  border-color:rgba(185,138,74,0.72);
  box-shadow:
    0 0 0 4px rgba(185,138,74,0.14),
    0 8px 18px rgba(0,0,0,0.08);
}

.doc-version-help{
  margin-top:8px;
  color:var(--ink-mid);
  font-size:12px;
  line-height:1.55;
}

/* opcionális egységes select/input stílus dokumentációhoz */
select,
input,
textarea{
  font:inherit;
}

/* =========================================================
   FOOTER
========================================================= */

.footer{
  margin-top:40px;
  padding:18px 0;
  text-align:center;
  font-size:13px;
  color:var(--ink-light);
  border-top:1px solid rgba(0,0,0,0.08);
}

.footer-inner{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 22px;
}

/* =========================================================
   RESZPONZÍV
========================================================= */

@media (max-width: 860px){
  .grid,
  .twin,
  .doc-layout,
  .info-grid{
    grid-template-columns:1fr;
  }

  .doc-sidebar{
    position:static;
  }

  .title p{
    font-size:8pt;
  }

  .logo{
    width:85%;
  }

  .doc-version-select{
    width:100%;
    min-width:0;
  }
}