/* PREMIUM_MENU.css
   Kizarolag a menuhoz kapcsolodo stilusok.
   Az index oldalon a PREMIUM_DESIGN.css utan kell betolteni. */

/* Desktop aktiv menujeloles (menu.js: .is-active / aria-current) */
.nav-desktop a.is-active,
.nav-desktop a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(102, 85, 255, 0.34), rgba(49, 126, 255, 0.26));
  border-radius: 999px;
  padding: 7px 12px;
}

/* Ketsoros markablokk a szolgaltatasi aloldalakon (SzagStop + alcim) */
.site-header .brand {
  align-items: center;
}

.site-header .brand .brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}

.site-header .brand .brand-copy .brand-name {
  line-height: 1;
}

.site-header .brand .brand-copy .alcim {
  display: block;
  margin-top: 1px;
  line-height: 1.1;
}

/* Desktop menu: szellosebb, jobban szeparalt, premium megjelenes */
@media (min-width: 1201px) {
  .site-header .header-inner {
    gap: clamp(12px, 1.4vw, 22px);
  }

  .site-header .nav-desktop {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
  }

  .site-header .nav-desktop .nav {
    flex-wrap: nowrap;
  }

  /* Finom luxury glassmorph kiemeles a teljes nav savnak */
  .site-header .header-inner {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(223, 241, 255, 0.14);
    background:
      radial-gradient(140% 220% at 0% 0%, rgba(228, 245, 255, 0.12), rgba(228, 245, 255, 0) 54%),
      linear-gradient(180deg, rgba(12, 25, 42, 0.72), rgba(7, 18, 33, 0.62));
    box-shadow:
      inset 0 1px 0 rgba(242, 250, 255, 0.22),
      inset 0 0 0 1px rgba(96, 150, 211, 0.12),
      0 10px 30px rgba(2, 10, 24, 0.36);
    -webkit-backdrop-filter: blur(12px) saturate(128%);
    backdrop-filter: blur(12px) saturate(128%);
  }

  .site-header .header-inner::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(238, 248, 255, 0.58), rgba(238, 248, 255, 0));
    pointer-events: none;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .nav-desktop .nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0 !important;
  }

  .nav-desktop .nav li {
    position: relative;
    display: flex;
    align-items: center;
  }

  .nav-desktop .nav li + li {
    margin-left: clamp(8px, 0.9vw, 14px);
    padding-left: clamp(14px, 1.5vw, 24px);
  }

  .nav-desktop .nav li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: linear-gradient(
      180deg,
      rgba(162, 213, 255, 0),
      rgba(162, 213, 255, 0.46),
      rgba(162, 213, 255, 0)
    );
  }

  .nav-desktop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px !important;
    border-radius: 999px;
    color: #d6e8f9;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 1px rgba(1, 12, 28, 0.55);
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  }

  .nav-desktop a:hover,
  .nav-desktop a:focus-visible {
    color: #f3f9ff;
    background: linear-gradient(180deg, rgba(53, 118, 214, 0.28), rgba(25, 81, 168, 0.22));
    box-shadow: 0 8px 18px rgba(5, 29, 74, 0.3);
    outline: none;
    transform: translateY(-1px);
  }

  .nav-desktop a.is-active,
  .nav-desktop a[aria-current="page"] {
    color: #ffffff !important;
    background:
      linear-gradient(140deg, rgba(117, 96, 255, 0.5), rgba(57, 132, 255, 0.38)) !important;
    box-shadow:
      inset 0 1px 0 rgba(236, 245, 255, 0.26),
      inset 0 0 0 1px rgba(152, 204, 255, 0.2),
      0 10px 24px rgba(38, 29, 101, 0.36);
    border-radius: 999px;
    padding: 8px 10px !important;
  }
}

@media (min-width: 1600px) {
  .nav-desktop .nav li + li {
    margin-left: clamp(10px, 0.9vw, 16px);
    padding-left: clamp(16px, 1.25vw, 24px);
  }

  .nav-desktop a {
    font-size: clamp(0.72rem, 0.62vw, 0.82rem);
    letter-spacing: 0.115em;
    padding: 8px 12px !important;
  }
}

/* Alaphelyzet: mobil menu elemek rejtve */
.nav-toggle,
.nav-mobile,
.nav-scrim {
  display: none;
}

@media (max-width: 1200px) {
  /* A header-inner backdrop-filter uj stacking contextet hoz letre.
     Emiatt a benne levo nav-toggle hiaba kap magas z-indexet,
     a teljes blokk a mobil panel ala kerulhet.
     Itt explicit a mobil panel fole emeljuk a fejlec belso reteget. */
  .header-inner {
    position: relative;
    z-index: 10003;
    border: 1px solid rgba(220, 241, 255, 0.12);
    background:
      radial-gradient(140% 220% at 0% 0%, rgba(231, 246, 255, 0.1), rgba(231, 246, 255, 0) 56%),
      linear-gradient(180deg, rgba(10, 22, 38, 0.74), rgba(6, 16, 29, 0.64));
    box-shadow:
      inset 0 1px 0 rgba(241, 250, 255, 0.2),
      0 8px 22px rgba(1, 8, 20, 0.3);
    -webkit-backdrop-filter: blur(10px) saturate(124%);
    backdrop-filter: blur(10px) saturate(124%);
  }

  .nav-desktop {
    display: none !important;
  }

  .site-header .brand .brand-copy .alcim {
    display: none;
  }

  /* Hamburger gomb */
  .nav-toggle {
    display: inline-grid !important;
    place-items: center;
    width: 46px;
    height: 42px;
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(8, 14, 23, 0.9);
    cursor: pointer;
    z-index: 10004;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
  }

  .nav-toggle:active {
    transform: scale(0.96);
  }

  .nav-toggle .bar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: #d9e8f8;
    display: block;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-toggle .bar:nth-child(1) {
    transform: translate(-50%, -8px);
  }

  .nav-toggle .bar:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .nav-toggle .bar:nth-child(3) {
    transform: translate(-50%, 6px);
  }

  /* Nyitott allapot: a 3 vonal X-e alakul */
  .nav-toggle[aria-expanded="true"] {
    background: rgba(225, 29, 72, 0.96);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* Sotetito reteg */
  .nav-scrim {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(1, 7, 18, 0.64);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
  }

  .nav-scrim.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobil menu panel */
  .nav-mobile {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3, 9, 16, 0.97);
    transform: translateY(-100%);
    transition: transform 0.28s ease;
    padding-top: calc(var(--header-h, 86px) + env(safe-area-inset-top) + 12px);
    overflow-y: auto;
  }

  .nav-mobile.open {
    transform: translateY(0);
  }

  .nav-mobile ul {
    list-style: none;
    margin: 0;
    padding: 34px 28px;
    display: grid;
    gap: 16px;
  }

  .nav-mobile a {
    display: block;
    color: #dcecff;
    text-decoration: none;
    border: 1px solid rgba(118, 188, 255, 0.28);
    border-radius: 16px;
    padding: 15px 18px;
    font-weight: 700;
    letter-spacing: 0.015em;
    background:
      linear-gradient(180deg, rgba(22, 48, 88, 0.46), rgba(9, 24, 46, 0.4)),
      radial-gradient(120% 160% at 0% 0%, rgba(95, 175, 255, 0.1), rgba(95, 175, 255, 0) 48%);
    box-shadow:
      inset 0 1px 0 rgba(202, 232, 255, 0.08),
      inset 0 0 0 1px rgba(18, 52, 102, 0.35),
      0 10px 20px rgba(1, 8, 20, 0.28);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  }

  .nav-mobile a:hover,
  .nav-mobile a:focus-visible {
    transform: translateY(-1px);
    color: #f3f9ff;
    border-color: rgba(149, 212, 255, 0.58);
    background:
      linear-gradient(180deg, rgba(34, 97, 194, 0.35), rgba(18, 58, 128, 0.29)),
      radial-gradient(140% 180% at 0% 0%, rgba(145, 209, 255, 0.2), rgba(145, 209, 255, 0) 52%);
    box-shadow:
      inset 0 1px 0 rgba(220, 240, 255, 0.17),
      0 12px 24px rgba(1, 12, 30, 0.34),
      0 0 0 1px rgba(72, 151, 242, 0.24);
    outline: none;
  }

  .nav-mobile a.is-active,
  .nav-mobile a[aria-current="page"] {
    background:
      linear-gradient(145deg, rgba(116, 96, 255, 0.46), rgba(56, 130, 255, 0.34)),
      radial-gradient(130% 180% at 0% 0%, rgba(183, 226, 255, 0.28), rgba(183, 226, 255, 0) 54%);
    color: #ffffff;
    border-color: rgba(191, 227, 255, 0.76);
    box-shadow:
      inset 0 1px 0 rgba(236, 247, 255, 0.28),
      0 10px 24px rgba(34, 28, 93, 0.38),
      0 0 0 1px rgba(136, 194, 255, 0.34);
  }

  body.no-scroll {
    overflow: hidden;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle .bar,
  .nav-mobile,
  .nav-scrim {
    transition: none !important;
  }
}
