/*
 * The header and footer every public aweradio.app page shares
 * (platform/partials/site-header.html + site-footer.html, stamped into each
 * page by backend/scripts/stamp-site-chrome.mjs). Namespaced .sc-* and
 * self-contained, so it sits on top of any page's own styles.
 */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/outfit-v15-latin.woff2') format('woff2');
}

.sc-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 22, 40, 0.82);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Outfit', system-ui, sans-serif;
}
.sc-header [hidden] { display: none !important; }
.sc-bar {
  max-width: 1120px; margin: 0 auto; height: 60px;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 28px;
}
.sc-brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: #E2E8F0; text-decoration: none;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.2px;
}
.sc-brand:hover { color: #fff; }
.sc-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.sc-nav a {
  color: rgba(203, 213, 225, 0.7); text-decoration: none;
  font-size: 0.9rem; font-weight: 400; line-height: 1;
  padding: 9px 12px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.sc-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.sc-nav a[aria-current="page"] { color: #fff; font-weight: 500; background: rgba(74, 222, 128, 0.1); }
.sc-account-menu { display: none; }
.sc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sc-account-bar {
  color: #E2E8F0; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 9px 12px; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.sc-account-bar:hover { color: #4ADE80; }
.sc-cta {
  background: #4ADE80; color: #0B1628; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; padding: 9px 18px; border-radius: 8px;
  transition: background 0.15s;
}
.sc-cta:hover { background: #38B866; }
.sc-menu {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: #E2E8F0;
}
.sc-menu-close { display: none; }
.sc-header.open .sc-menu-open { display: none; }
.sc-header.open .sc-menu-close { display: inline; }
.sc-header a:focus-visible, .sc-menu:focus-visible { outline: 2px solid #4ADE80; outline-offset: 2px; }

@media (max-width: 760px) {
  .sc-bar { gap: 12px; height: 56px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .sc-actions { margin-left: auto; }
  .sc-menu { display: inline-flex; }
  /* Owners and listeners keep their account link in the bar; signed-out
     visitors get Start a station there and Sign in in the menu. */
  .sc-header[data-auth="out"] .sc-account-bar { display: none; }
  .sc-header[data-auth="out"] .sc-account-menu { display: block; }
  .sc-cta { padding: 8px 14px; }
  .sc-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px;
    background: #0B1628;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
  .sc-header.open .sc-nav { display: flex; }
  .sc-nav a { font-size: 1rem; padding: 14px 12px; }
}
@media (max-width: 380px) {
  .sc-brand span { display: none; }
}

.sc-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Outfit', system-ui, sans-serif;
  margin-top: 48px;
}
.sc-footer-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 32px max(20px, env(safe-area-inset-right, 0px)) max(36px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px;
}
.sc-footer-main, .sc-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.sc-footer-main a { color: rgba(203, 213, 225, 0.7); text-decoration: none; font-size: 0.88rem; }
.sc-footer-legal, .sc-footer-legal a { color: rgba(203, 213, 225, 0.4); text-decoration: none; font-size: 0.78rem; }
.sc-footer a:hover { color: #4ADE80; }
.sc-status { display: inline-flex; align-items: center; gap: 6px; }
.sc-status span { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
