/* ================================================================
   People Dhanbad — Top bar (date, weather, social, language, account)
   Shared by layouts/public/topbar.blade.php on the main site AND the
   standalone Youth Icon landing page, so it must not rely on any other
   rule from public.css.
   ================================================================ */
.top-bar {
  background: var(--dark, #111827);
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar a { color: rgba(255,255,255,.55); }
.top-bar a:hover { color: #fff; }
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar-left { display: flex; align-items: center; gap: 1.25rem; }
.top-bar-date { display: flex; align-items: center; gap: .35rem; }
.top-bar-date i { font-size: .65rem; color: var(--red, #c51d36); }
.top-bar-temp { display: flex; align-items: center; gap: .35rem; }
.top-bar-temp i { color: var(--yellow, #f6bd35); font-size: .65rem; }
.top-bar-right { display: flex; align-items: center; gap: .875rem; }
.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
  font-size: .68rem;
  transition: all .15s;
}
.top-social a:hover { background: var(--red, #c51d36); color: #fff; }
.top-social { display: flex; align-items: center; gap: .3rem; }

/* ── City switcher (top bar) ──────────────────────────────────── */
.tb-city-wrap { display:flex; align-items:center; gap:.3rem; }
.tb-city-edit-btn {
  background: none; border: none; cursor: pointer; padding: .1rem .25rem;
  color: rgba(255,255,255,.35); font-size: .58rem; line-height:1;
  border-radius: 3px; transition: color .15s;
}
.tb-city-edit-btn:hover { color: rgba(255,255,255,.8); }
.tb-city-input-wrap {
  display: none; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .1rem .4rem;
}
.tb-city-input-wrap.open { display: flex; }
.tb-city-input {
  background: transparent; border: none; outline: none;
  color: #fff; font-size: .72rem; font-family: inherit;
  width: 100px;
}
.tb-city-input::placeholder { color: rgba(255,255,255,.35); }
.tb-city-ok {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.55); font-size: .7rem; padding: 0; line-height:1;
}
.tb-city-ok:hover { color: #fff; }

/* ── Language dropdown ────────────────────────────────────────── */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-dropdown-btn {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .22rem .55rem;
  color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 700;
  cursor: pointer; font-family: inherit; line-height: 1.4;
  transition: background .15s;
}
.lang-dropdown-btn:hover,
.lang-dropdown-btn.open { background: rgba(255,255,255,.18); color: #fff; }
.lang-dropdown-btn .ld-chevron { font-size: .5rem; transition: transform .15s; }
.lang-dropdown-btn.open .ld-chevron { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #3a0718; border: 1px solid rgba(255,223,160,.15);
  border-radius: 8px; min-width: 160px; z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,.4); overflow: hidden;
  animation: ld-in .15s ease;
}
.lang-dropdown.open { display: block; }
@keyframes ld-in { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
.lang-opt {
  display: flex; align-items: center; gap: .55rem;
  padding: .52rem .875rem; font-size: .8rem;
  color: rgba(255,255,255,.65); cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none; background: none; border-left: none; border-right: none; border-top: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  width: 100%; text-align: left; font-family: inherit;
}
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-opt.active { color: #fff; background: rgba(220,38,38,.2); }
.lang-opt.active::after { content: '✓'; margin-left: auto; font-size: .7rem; color: var(--red, #c51d36); }
.lang-opt-short { font-size: .65rem; color: rgba(255,255,255,.35); min-width: 22px; }

/* ── User account dropdown ──────────────────────────────────── */
.user-switcher { position: relative; flex-shrink: 0; }
.user-dropdown-btn {
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .18rem .45rem .18rem .3rem;
  color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 700;
  cursor: pointer; font-family: inherit; line-height: 1.4; transition: background .15s;
}
.user-dropdown-btn:hover,
.user-dropdown-btn.open { background: rgba(255,255,255,.18); color: #fff; }
.user-dropdown-btn .ud-chevron { font-size: .45rem; transition: transform .15s; }
.user-dropdown-btn.open .ud-chevron { transform: rotate(180deg); }
.user-av-chip {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red, #c51d36); color: #fff; font-weight: 800; font-size: .6rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name-label { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #3a0718; border: 1px solid rgba(255,223,160,.15);
  border-radius: 8px; min-width: 180px; z-index: 9999;
  box-shadow: 0 8px 28px rgba(0,0,0,.4); overflow: hidden;
  animation: ld-in .15s ease;
}
.user-dropdown-menu.open { display: block; }
.user-dropdown-header {
  display: flex; align-items: center; gap: .625rem;
  padding: .875rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.user-dropdown-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red, #c51d36); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-dropdown-name { font-weight: 700; font-size: .82rem; color: #fff; }
.user-dropdown-role { font-size: .65rem; color: rgba(255,255,255,.4); margin-top: .1rem; }
.user-dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; font-size: .8rem; color: rgba(255,255,255,.65);
  text-decoration: none; transition: background .1s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.user-dropdown-item:last-child { border-bottom: none; }
.user-dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.user-dropdown-item i { width: 14px; text-align: center; font-size: .78rem; }
.user-signin-link {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px; padding: .22rem .6rem;
  color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 700;
  text-decoration: none; transition: background .15s; white-space: nowrap;
}
.user-signin-link:hover { background: rgba(255,255,255,.18); color: #fff; }


/* Brand colours — same wine/gold palette as the Youth Icon landing page */
.top-bar {
  background: linear-gradient(90deg, #3e061b 0%, #6a0b28 55%, #27091b 100%);
  color: rgba(255,240,230,.7);
  border-bottom: 1px solid #ffdfa033;
  line-height: 1.5;
}
.top-bar a { color: rgba(255,240,230,.7); text-decoration: none; }
.top-bar a:hover { color: #fff; }
.top-bar-date i,
.top-bar-temp i { color: #f6bd35; }
.top-bar button { font-family: inherit; margin: 0; }

@media (max-width: 768px) {
  .top-bar-left .top-bar-temp { display: none; }  /* hide weather on tablet */
}

@media (max-width: 576px) {
  /* Keep top-bar visible on mobile — strip to lang + auth only */
  .top-bar { padding: .28rem 0; }
  .top-bar-left { display: none; }            /* hide date + weather */
  .top-social { display: none; }             /* hide social icons */
  .top-bar-epaper { display: none; }         /* hide e-paper link */
  .top-bar-inner { justify-content: flex-end; }
  /* Hide user name label so only the avatar chip shows */
  .user-name-label { display: none; }
  .ud-chevron { display: none; }
}
