/* PodcaCity - the one top bar (includes/site-header.php), on the home page and
 * every app screen alike, so nothing in it moves between pages.
 *
 * The bar is right to left: the menu (a phone) or the person (a computer),
 * the call to action, the nav, the session strip, and the logo pushed to the
 * far end. Where the bar sits - inside an app's phone column, pinned over the
 * home page - is the page's own stylesheet's to say; this file says what is in
 * it and how it reads. The session strip's own look is pc-menu.css's
 * (.pc-livebar), beside the drawer's card it mirrors.
 */

/* ── Phone ─────────────────────────────────────────────────────────────────── */
.pc-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  border-bottom: 1px solid #131920;
  font-family: 'Heebo', sans-serif;
}

.pc-header__menu {
  width: 38px; height: 38px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #131920;
  border: 1px solid #1E2530;
  color: #A3B2C2;
  cursor: pointer;
}
.pc-header__menu:active { transform: scale(.96); }

/* The call to action - booking, or for a stranger the way in. The same
   gradient as the page's own calls to action, a size down for the bar. */
.pc-header__cta {
  flex: none;
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,#00E5FF 0%,#8B2FFF 50%,#FF2D8C 100%);
  box-shadow: 0 4px 20px rgba(0,229,255,0.22);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: filter .16s ease, transform .16s ease;
}
.pc-header__cta:hover { filter: brightness(1.08); }
.pc-header__cta:focus-visible { outline: 2px solid #00E5FF; outline-offset: 2px; }

/* The logo, at the far (left) end whatever else the bar holds. Physical
   margins here and on the strip: the logo is dir="ltr", where an inline-start
   margin would be its left one. The bar itself is always right to left. */
.pc-header__logo {
  margin-right: auto;
  flex: none;
  font-family: 'Exo 2', sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}
.pc-header__podca,
.pc-header__city {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pc-header__podca { background-image: linear-gradient(135deg,#00E5FF,#00AACC); filter: drop-shadow(0 0 14px rgba(0,229,255,0.35)); }
.pc-header__city  { background-image: linear-gradient(135deg,#FF2D8C,#CC1A6B); filter: drop-shadow(0 0 14px rgba(255,45,140,0.35)); }

/* A computer's alone: on a phone the drawer holds the screens, the profile
   and the session running now. */
.pc-header .pc-account,
.pc-header__nav { display: none; }

/* ── Computer (≥1024px) ────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .pc-header {
    height: 56px;
    gap: 20px;
    padding: 0 max(32px, calc((100% - 1080px) / 2));
    border-bottom-color: #1E2530;
  }
  .pc-header__menu { display: none; }
  .pc-header__logo { font-size: 21px; }

  /* The person: the profile, and from there the way out. */
  .pc-header .pc-account {
    width: 34px; height: 34px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #131920; border: 1px solid #1E2530; color: #C8CCD0;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
  }
  .pc-header .pc-account:hover { color: #66F0FF; border-color: #2E3846; background: #1A222C; }
  .pc-header .pc-account.is-active { color: #00E5FF; border-color: rgba(0,229,255,0.45); }
  .pc-header .pc-account:focus-visible { outline: 2px solid #00E5FF; outline-offset: 2px; }

  .pc-header__nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
  .pc-header__link { color: #C8CCD0; white-space: nowrap; text-decoration: none; transition: color .16s ease; }
  .pc-header__link:hover { color: #66F0FF; }
  .pc-header__link.is-active { color: #00E5FF; font-weight: 700; }
  /* The divider before the admin's own items. */
  .pc-header__sep { width: 1px; height: 13px; background: #1E2530; flex: none; }

  /* The session strip in the middle of what is left: its margin and the
     logo's share the free space between them. */
  .pc-header .pc-livebar { margin-right: auto; }
}
