/* === Cinema Noir – modern header + bal oldali ikonmenü + user dropdown === */

/* Alap oldalbeállítás */
body {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-left: 0; /* hely az ikon-only oldalsó menünek */
}

/* ================= BAL OLDALI NETFLIX-SZERŰ, CSAK IKONOS MENÜ ================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.04); /* nagyon finom, alig látszó sáv */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  gap: 16px;
  z-index: 999;
}

.sidebar a {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
  transition: transform 0.14s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.sidebar a:hover {
  background: rgba(30, 64, 175, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
  color: #f9fafb;
}

/* ================= FELSŐ HEADER – MODERN, VÉKONY KERETTEL, NEM ÁTLÁTSZÓ ================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0 16px;
  background: #020617;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
}

.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 32px;
  background: linear-gradient(120deg, #020617 0%, #020617 30%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.35); /* nagyon vékony keret */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* BRAND BAL OLDALT */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: conic-gradient(from 150deg, #facc15, #eab308, #f97316, #facc15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #111827;
}

.brand__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* JOBB OLDALI NAV – üzenetek + user blokk */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ÜZENETEK LINK – ikon + badge */
.nav__messages {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.08s ease;
}

.nav__messages:hover {
  background: radial-gradient(circle at left, rgba(234, 179, 8, 0.24), rgba(15, 23, 42, 1));
  border-color: rgba(250, 204, 21, 0.9);
  transform: translateY(-1px);
}

.nav__messages-icon {
  font-size: 15px;
}

.nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

/* USER MENÜ DROPDOWN */

.nav__user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
  font-size: 12px;
  cursor: pointer;
}

.user-avatar {
  font-size: 14px;
}

.user-name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-caret {
  font-size: 12px;
  opacity: 0.8;
}

/* Dropdown panel */
.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 200px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
  padding: 6px 0;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 200;
}

/* Hover / fókusz esetén legyen látható */
.nav__user-menu:hover .user-dropdown,
.nav__user-menu:focus-within .user-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #e5e7eb;
  text-decoration: none;
}

.user-dropdown a:hover {
  background: rgba(31, 41, 55, 0.95);
}

.user-dropdown__icon {
  font-size: 15px;
}

/* GOMBOK (Belépés / Regisztráció, ha nincs bejelentkezve) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  background: rgba(24, 24, 27, 0.98);
  color: #e5e7eb;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.08s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(90deg, #3b82f6, #a855f7, #facc15);
  border-color: rgba(250, 204, 21, 0.9);
  color: #020617;
}

.btn--outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.85);
  color: #e5e7eb;
}

/* TARTALOM */

.page {
  max-width: 1180px;
  width: 100%;
  margin: 26px auto 40px;
  padding: 0 20px 40px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  body {
    padding-left: 0;
  }

  .sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.04); /* nagyon finom, alig látszó sáv */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  gap: 16px;
  z-index: 999;
}

  .topbar__inner {
    border-radius: 0;
  }
}


/* === Override / kiegészítés: sidebar ikon-only + csúszó címkék + unread színezés === */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.04); /* nagyon finom, alig látszó sáv */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  gap: 16px;
  z-index: 999;
}

.sidebar__item {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  overflow: visible;
}

.sidebar__item .icon {
  font-size: 22px;
}

/* Csúszó címke jobbra az ikon mellé */
.sidebar__label {
  position: absolute;
  left: 56px;
  top: 50%;
  transform: translate(-4px, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.sidebar__item:hover {
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.2), rgba(24, 24, 27, 0.96));
  transform: translateY(-2px);
  color: #facc15;
}

.sidebar__item:hover .sidebar__label {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Üzenet badge a sidebar ikonon */
.sidebar__badge {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #022c22;
}

/* Ha vannak olvasatlan üzenetek, a messages ikon legyen erősebb színű */
.sidebar__item--has-unread {
  background: radial-gradient(circle at center, rgba(250,204,21,0.4), rgba(24,24,27,1));
  color: #facc15;
}

/* Headerben is színezés, ha van olvasatlan üzenet */
.nav__messages--has-unread {
  background: radial-gradient(circle at left, rgba(250,204,21,0.28), rgba(15,23,42,1));
  border-color: rgba(250,204,21,0.95);
  color: #fef9c3;
}


body.has-sidebar { padding-left: 80px; }
@media (max-width:900px){ body, body.has-sidebar{padding-left:0;} }
