/* coversurface – váz: üveges fejléc, oldalsáv, tartalomterület, mobil lapozósáv */

/* --- Háttér a belépés utáni felületen -----------------------------------
   A megadott színátmenetes kép rögzítve, teljes lefedéssel. Ez az, amit az
   üveglapok átengednek — enélkül az üvegesség nem látszana. */
.shell { min-height: 100dvh; position: relative; }
.shell::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("/static/img/hatter.png") center / cover no-repeat fixed;
}
/* --- Fejléc ----------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--h-header);
  display: flex; align-items: center; gap: var(--s-5);
  padding: 0 var(--s-6);
  /* Nincs perem: a fejléc és az oldalsáv egyetlen, összefüggő üvegfelület. */
  border-radius: 0; border-width: 0;
}
/* A .glass árnyéka és felső fényéle is elmarad: azok választanák el a két
   felületet egymástól, pedig épp az a cél, hogy egybemosódjanak. */
.header, .sidebar { box-shadow: none; }
.brand { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.brand__name { display: block; font-size: var(--fs-lg); font-weight: 750; letter-spacing: .02em; line-height: 1.1; }
.brand__tag {
  display: block;
  font-size: 9px; letter-spacing: .18em; color: var(--c-ink-2);
  text-transform: uppercase; margin-top: 2px;
}
.header__slogan {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-ink-2); flex: none;
}
.search {
  flex: 1; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--s-3);
  height: 40px; padding: 0 var(--s-4);
  border-radius: var(--r-pill);
  background: var(--glass-inner); border: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: var(--fs-sm); color: var(--c-ink); }
.header__right { display: flex; align-items: center; gap: var(--s-4); flex: none; margin-left: auto; }
.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.bell:hover { background: var(--c-line); }
.bell__dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--c-card); }
.user__chevron { color: var(--c-ink-3); }
.user { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); border-radius: var(--r-pill); border: 1px solid transparent; background: transparent; cursor: pointer; }
.user:hover { border-color: var(--c-line); }
.user__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c-line); object-fit: cover; }
.user__meta { text-align: left; line-height: 1.2; }
.user__hi { font-size: var(--fs-xs); color: var(--c-ink-2); }
.user__name { font-size: var(--fs-sm); font-weight: 650; }

/* --- Törzs ------------------------------------------------------------ */
.body {
  display: grid; grid-template-columns: var(--w-sidebar) 1fr; align-items: start;
  min-height: calc(100dvh - var(--h-header));
  position: relative;
}
/* A fejléc és az oldalsáv együtt egy L alakú üvegfelület. Ennek a BELSŐ sarka
   derékszögű volna — ez az egyetlen hegyes pont a felületen, miközben minden
   más lekerekített. A sarkot egy negyedkör tölti ki: a körön kívül üveg, belül
   átlátszó, így a felület ugyanazzal a sugárral fordul be, mint a kártyák. */
.body::before {
  /* RÖGZÍTETT, nem a tartalommal együtt mozgó: a fejléc és az oldalsáv is a
     helyén marad görgetéskor, tehát a sarkuknak is maradnia kell. Ha a
     tartalommal együtt gördülne, az első görgetésre felcsúszna a fejléc alá,
     és visszatérne a hegyes sarok. */
  content: ""; position: fixed; top: var(--h-header); left: var(--w-sidebar);
  z-index: var(--z-sidebar);
  width: var(--r-card); height: var(--r-card); pointer-events: none;
  background: radial-gradient(circle at 100% 100%,
              transparent calc(var(--r-card) - 0.5px), var(--glass-bg) var(--r-card));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  -webkit-mask: radial-gradient(circle at 100% 100%,
                transparent calc(var(--r-card) - 0.5px), #000 var(--r-card));
  mask: radial-gradient(circle at 100% 100%,
        transparent calc(var(--r-card) - 0.5px), #000 var(--r-card));
}
@media (max-width: 767px) { .body::before { display: none; } }

/* --- Oldalsáv --------------------------------------------------------- */
.sidebar {
  position: sticky; top: var(--h-header);
  height: calc(100dvh - var(--h-header));
  display: flex; flex-direction: column;
  padding: var(--s-4) var(--s-3);
  border-radius: 0; border-width: 0;
  overflow-y: auto; overscroll-behavior: contain;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: var(--s-3);
  height: 38px; padding: 0 var(--s-3);
  border-radius: 10px; color: var(--c-ink-2);
  font-size: var(--fs-sm); font-weight: 550; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__item:hover { background: rgba(224,24,45,.07); color: var(--c-ink); }
.nav__item[aria-current="page"] { background: var(--c-red); color: #fff; font-weight: 650; }
.nav__item[aria-current="page"] .icon { opacity: 1; }
.nav__item .icon { width: 18px; height: 18px; flex: none; opacity: .8; }
.sidebar__foot { margin-top: auto; padding: var(--s-5) var(--s-3) var(--s-3); }
/* Egy sorban áll: a betűköz akkora, amekkora még kifér az oldalsáv szélességébe. */
.sidebar__slogan { font-size: 9px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-ink-3); line-height: 1.6; white-space: nowrap; }
.sidebar__mark { margin-top: var(--s-4); width: 40px; height: 40px; border-radius: 50%; background: var(--c-red); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* --- Tartalom --------------------------------------------------------- */
.main { padding: var(--s-6); min-width: 0; }
/* A tartalomterület programból kap fókuszt oldalváltáskor (képernyőolvasónak),
   de ettől nem rajzolunk köré fókuszgyűrűt – az a billentyűs navigációé. */
.main:focus { outline: none; }
.page__head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
/* A fülsor sosem töri szét az elrendezést: ha nem fér ki egy sorba, tördel —
   hét füllel (szolgáltatónként egy) ez a reális eset. Nagyon szűk helyen
   vízszintesen görgethető marad. */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); row-gap: var(--s-2);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
@media (max-width: 520px) { .tabs { flex-wrap: nowrap; overflow-x: auto; } }
.page__title { font-size: var(--fs-xl); }
.page__sub { color: var(--c-ink-2); font-size: var(--fs-md); }
.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(12, 1fr); }
/* Mind a 12 osztály kell: hiányzó osztálynál a kártya `span 1`-be esik,
   és a sor több keskeny hasábra szakad szét. */
.col-1 { grid-column: span 1; }  .col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }  .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }  .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }  .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }  .col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; }

.placeholder {
  display: grid; place-items: center; gap: var(--s-3);
  min-height: 320px; text-align: center; color: var(--c-ink-2);
  border: 1px dashed var(--c-line); border-radius: var(--r-card);
}
.placeholder__num { font-size: var(--fs-num-lg); font-weight: 750; color: var(--c-red-200); }

/* --- Mobil lapozósáv -------------------------------------------------- */
.tabbar { display: none; }

/* --- Töréspontok ------------------------------------------------------ */
@media (max-width: 1439px) { .col-3 { grid-column: span 4; } }
@media (max-width: 1279px) {
  .col-5 { grid-column: span 6; } .col-7 { grid-column: span 6; }
}
@media (max-width: 1023px) {
  .body { grid-template-columns: var(--w-sidebar-narrow) 1fr; }
  .nav__item { justify-content: center; padding: 0; }
  .nav__item span:not(.icon) { display: none; }
  .sidebar__slogan, .header__slogan { display: none; }
  .col-3, .col-4, .col-5, .col-7 { grid-column: span 6; }
}
@media (max-width: 767px) {
  .body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: var(--s-4) var(--s-4) 84px; }
  .header { gap: var(--s-2); padding: 0 var(--s-3); }
  /* A kereső ikonná zsugorodik – így a fejléc nem lóg ki a képernyőből. */
  .search { flex: none; width: 40px; padding: 0; justify-content: center; margin: 0 0 0 auto; }
  .search input { display: none; }
  .header__right { gap: var(--s-1); margin-left: 0; }
  .user__meta, .brand__tag, .user__chevron { display: none; }
  .brand__name { font-size: var(--fs-md); }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11 { grid-column: span 12; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: var(--s-2) var(--s-2) max(var(--s-2), env(safe-area-inset-bottom));
    border-radius: 0; border-width: 1px 0 0 0;
  }
  .tabbar__item {
    display: grid; place-items: center; gap: 2px;
    padding: var(--s-2) 0; border: 0; border-radius: 10px;
    background: transparent; cursor: pointer;
    font-size: 10px; font-family: inherit; color: var(--c-ink-2);
  }
  .tabbar__item[aria-current="page"] { color: var(--c-red); }
  .tabbar__item .icon { width: 20px; height: 20px; }
}

/* --- Felhasználói menü ------------------------------------------------ */
.usermenu { position: relative; }
.usermenu__pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  padding: var(--s-2); border-radius: var(--r-inner); z-index: var(--z-modal);
  display: grid; gap: 2px;
}
.usermenu__pop[hidden] { display: none; }   /* a szerzői display felülírná a böngésző [hidden] szabályát */
.usermenu__item {
  display: block; width: 100%; text-align: left;
  padding: var(--s-3) var(--s-4); border: 0; border-radius: 8px;
  background: transparent; font: inherit; color: var(--c-ink); cursor: pointer;
}
.usermenu__item:hover { background: rgba(224,24,45,.08); color: var(--c-red); }

/* --- TrueYou profilfej ------------------------------------------------- */
.profilfej { display: flex; align-items: flex-start; gap: var(--s-6); flex-wrap: wrap; }
.profilfej__av {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  background: var(--c-red-soft); color: var(--c-red);
  display: grid; place-items: center; font-size: 30px; font-weight: 750;
  box-shadow: 0 0 0 3px var(--c-card), 0 0 0 5px var(--c-red);
}
.profilfej__t { flex: 1; min-width: 220px; }
.profilfej__nev { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xl); font-weight: 700; }
.profilfej__motto { margin-top: var(--s-3); font-style: italic; color: var(--c-ink-2); }
.profilfej__szamok { display: flex; gap: var(--s-7); margin-top: var(--s-5); }
.profilfej__szamok b { display: block; font-size: var(--fs-lg); font-weight: 750; }
.profilfej__szamok span { font-size: var(--fs-xs); color: var(--c-ink-2); }
.profilfej__btn { flex: none; }
.badge-unverified {
  display: inline-flex; align-items: center; padding: 4px var(--s-3);
  border-radius: var(--r-pill); border: 1px solid var(--c-line);
  color: var(--c-ink-2); font-size: var(--fs-xs); font-weight: 600;
}

/* --- Adatlista (TrueYou) ---------------------------------------------- */
.adatlista { display: grid; gap: var(--s-2); }
.adatsor { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-3) 0; }
.adatsor + .adatsor { border-top: 1px solid var(--c-line); }
.adatsor__ikon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--c-red-soft); color: var(--c-red); display: grid; place-items: center;
}
.adatsor__ikon .icon { width: 17px; height: 17px; }
.adatsor__cim { display: block; font-weight: 600; }
.adatsor__ertek { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); }
.adatsor__ok { font-style: normal; color: var(--c-ok); font-size: var(--fs-xs); margin-left: var(--s-2); }

/* --- Értesítés-menü ---------------------------------------------------- */
.ertesito { position: relative; }
.ertesito__pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px));
  border-radius: var(--r-inner); z-index: var(--z-modal); overflow: hidden;
}
.ertesito__pop[hidden] { display: none; }
.ertesito__fej {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line);
  font-weight: 650; font-size: var(--fs-sm);
}
.ertesito__fej .btn { height: 28px; font-size: var(--fs-xs); }
.ertesito__lista { max-height: 380px; overflow-y: auto; }
.ertesito__sor {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line);
}
.ertesito__sor:last-child { border-bottom: 0; }
.ertesito__sor:hover { background: rgba(224,24,45,.06); }
.ertesito__sor--uj { background: var(--c-red-soft); }
.ertesito__ikon {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--c-line); color: var(--c-ink-2);
}
.ertesito__ikon[data-sulyossag="figyelem"] { background: var(--c-red); color: #fff; }
.ertesito__t { flex: 1; min-width: 0; }
.ertesito__cim { display: block; font-weight: 600; font-size: var(--fs-sm); }
.ertesito__meta {
  display: block; font-size: var(--fs-xs); color: var(--c-ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ertesito__ido { font-size: 11px; color: var(--c-ink-3); white-space: nowrap; }

/* a harang jelzőpontja számot is mutathat */
.bell__dot {
  min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px;
  display: grid; place-items: center; font-size: 10px; font-weight: 750; color: #fff;
  top: 5px; right: 4px;
}
.bell__dot[hidden] { display: none; }
