/* header.css – egyszerű stabil verzió (revert) */
:root {
  --hdr-bg: #10101c;
  --hdr-border: #1f232b;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  min-height: 56px;
  background: var(--hdr-bg);
  border-bottom: 1px solid var(--hdr-border);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header .brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: .4px;
  font-size: 16px;
}

.site-header .brand a {
  color: #f4f4ff;
  text-decoration: none;
}

.site-header .brand a:hover {
  color: #6c7bff;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.main-nav>ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.main-nav>ul>li {
  display: inline-flex;
  align-items: center;
}

/* Menü linkek */
.main-nav a.menu-card {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #ddd;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: .18s;
}

.main-nav a.menu-card:hover,
.main-nav a.menu-card.active {
  background: #222;
  border-color: #555;
  color: #fff;
}

/* Nyelvváltó */
.lang {
  position: relative;
}

.lang-btn {
  min-width: 42px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #333;
  background: #18181c;
  color: #f4f4ff;
  border-radius: 10px;
  cursor: pointer;
  transition: .18s;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: #23243a;
  color: #6c7bff;
  border-color: #6c7bff;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  display: none;
  flex-direction: column;
  min-width: 110px;
  background: #18181c;
  border: 1px solid #2a303a;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  z-index: 200;
}

.lang.open .lang-menu {
  display: flex;
}

.lang-menu a {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #f4f4ff;
  text-decoration: none;
  display: block;
  transition: .18s;
}

.lang-menu a:hover {
  background: #23243a;
  color: #6c7bff;
}

/* Vissza gomb */
.page-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px;
}

.page-toolbar .back-btn.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181c;
  border: 1px solid #333;
  color: #cfd5ff;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: background .18s, border-color .18s, color .18s, width .28s ease;
}

.page-toolbar .back-btn.pill:hover {
  background: #23243a;
  border-color: #555;
  color: #fff;
}

.page-toolbar .back-btn.pill:focus-visible {
  outline: 2px solid #6c7bff;
  outline-offset: 2px;
}

.page-toolbar .back-btn.pill svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.page-toolbar .back-btn.pill .label {
  position: absolute;
  left: 44px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  font-size: 14px;
  transition: opacity .25s ease, transform .25s ease;
  padding: 0 12px 0 10px;
  color: #d8dcff;
}

@media (hover:hover) {
  .page-toolbar .back-btn.pill:hover {
    width: 130px;
    border-radius: 28px;
  }

  .page-toolbar .back-btn.pill:hover .label {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width:900px) {
  .page-toolbar .back-btn.pill {
    width: 44px !important;
  }

  .page-toolbar .back-btn.pill .label {
    display: none;
  }
}


/* Accessibility skip link utility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
  background: #0b1e2c;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .03em;
  transition: left .2s, z-index .2s;
}

.skip-link:focus,
.skip-link:active {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  z-index: 1000;
  outline: 2px solid #6c7bff;
}