/* ══════════════════════════
   MAIN CONTENT AREA
══════════════════════════ */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background .25s, border-color .25s;
}

.topbar-left  { display: flex; align-items: center; gap: 10px; }
.topbar-right { display: flex; align-items: center; gap: 9px; }

.topbar-mobile-logo {
  display: none;
  align-items: center;
  gap: 10px;
}

.topbar-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(224, 48, 48, .5));
}

.topbar-logo-awards {
  font-family: var(--font-display);
  font-size: clamp(16px, 3.5vw, 19px);
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(100deg, #e03030 0%, #e8b84b 40%, #e03030 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.2px;
}

.page-subtitle {
  font-size: clamp(11px, 0.85vw, 12px);
  color: var(--muted);
  font-family: var(--font-ui);
  margin-top: 1px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  transition: border-color .2s;
}

.search-pill:focus-within { border-color: rgba(240, 192, 64, .4); }

.search-pill input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(13px, 1vw, 14px);
  width: 190px;
}

.search-pill input::placeholder { color: var(--muted); }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: border-color .18s;
  position: relative;
}

.icon-btn:hover { border-color: var(--gold); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 1.5px solid var(--surface);
}

.notif-dot--hidden {
  display: none;
}

/* In-app toast — new reply to your contestant comment */
.reply-notif-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 72px);
  transform: translate3d(-50%, 120%, 0);
  max-width: min(420px, 92vw);
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  box-shadow: 0 12px 40px var(--shadow);
  z-index: 10050;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  pointer-events: auto;
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
  opacity: 0;
}

.reply-notif-toast--open {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

.reply-notif-toast__text {
  flex: 1;
  min-width: 0;
}

.reply-notif-toast__close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: color .15s, border-color .15s;
}

.reply-notif-toast__close:hover {
  color: var(--text);
  border-color: var(--border-md);
}

@media (min-width: 769px) {
  .reply-notif-toast {
    bottom: 28px;
  }
}

@media (max-width: 768px) {
  #reply-notif-btn {
    display: none;
  }
}

/* ── PAGE VIEW ── */
.page-view {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.page-view::-webkit-scrollbar { width: 4px; }
.page-view::-webkit-scrollbar-thumb { background: var(--panel); border-radius: 4px; }

/* page enter animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter { animation: fadeUp .32s cubic-bezier(.4, 0, .2, 1) both; }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.app-footer {
  height: 38px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: clamp(12px, 0.9vw, 13px);
  color: var(--muted);
}

.footer-track span { padding: 0 24px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════
   BOTTOM NAV (mobile)
══════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

.bottom-nav::before {
  display: none;   /* gradient border removed per design update */
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--muted);
  font-size: clamp(11px, 2.2vw, 12px);
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .18s;
  padding: 8px 4px;
  -webkit-tap-highlight-color: transparent;
}

.bn-item.active { color: var(--gold); }
.bn-emoji { font-size: clamp(20px, 5vw, 22px); line-height: 1; }

/* Mobile-only entry — mirrors top-bar reply alerts (topbar is hidden ≤768px) */
.bn-item--reply-alerts {
  position: relative;
}

@media (min-width: 769px) {
  .bn-item--reply-alerts {
    display: none;
  }
}

/* ── HIGHLIGHTS FLOATING RING (Meta AI / WhatsApp style) ── */
/* The nav slot itself is invisible — just holds space */
.bn-item--highlights {
  position: relative;
  overflow: visible;
  color: transparent;
  pointer-events: none;
}

.bn-highlights-label {
  display: none;
}

/* The floating ring — fixed to the right side, above the bottom nav */
.bn-highlights-ring {
  position: fixed;
  right: 16px;
  bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 14px);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  /* Same gradient as the desktop sidebar ring — solid disc, no cutout */
  background: linear-gradient(135deg, #e03030 0%, #8b5cf6 50%, #e8b84b 100%);
  /* Glow matching the gradient colours */
  box-shadow:
    0 0 0 1px rgba(232, 184, 75, .2),
    0 4px 18px rgba(139, 92, 246, .45),
    0 2px 8px rgba(224, 48, 48, .3),
    0 2px 6px rgba(0, 0, 0, .4);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  display: block;
  z-index: 110;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .2s;
}

.bn-highlights-ring:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 0 2px rgba(232, 184, 75, .35),
    0 6px 24px rgba(139, 92, 246, .6),
    0 3px 12px rgba(224, 48, 48, .4),
    0 2px 8px rgba(0, 0, 0, .4);
}

.bn-highlights-ring:active {
  transform: scale(.93);
}

/* Gold outline when Highlights page is active */
.bn-item--highlights.active .bn-highlights-ring {
  box-shadow:
    0 0 0 3px rgba(232, 184, 75, .5),
    0 6px 24px rgba(139, 92, 246, .6),
    0 3px 12px rgba(224, 48, 48, .4),
    0 2px 8px rgba(0, 0, 0, .4);
}

/* Inner circle removed — ring is now a solid gradient disc */
.bn-highlights-ring-inner { display: none; }

.bn-item--highlights.active .bn-highlights-ring {
  box-shadow:
    0 0 0 3px rgba(232, 184, 75, .5),
    0 6px 24px rgba(139, 92, 246, .6),
    0 3px 12px rgba(224, 48, 48, .4),
    0 2px 8px rgba(0, 0, 0, .4);
}

/* ══════════════════════════
   STAGGER HELPERS
══════════════════════════ */
.s1 { animation-delay: .05s; }
.s2 { animation-delay: .10s; }
.s3 { animation-delay: .15s; }
.s4 { animation-delay: .20s; }
.s5 { animation-delay: .25s; }

/* ══════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
══════════════════════════ */
@media (max-width: 768px) {
  .main-area {
    overflow: visible;
  }

  .page-view {
    overflow: visible;
    flex: none;
  }

  .bottom-nav {
    display: flex;
    /* Ensure it always sits above page content */
    z-index: 200;
  }

  .topbar-mobile-logo { display: flex; }
  .page-title          { display: none; }
  .search-pill         { display: none; }
  .topbar              { display: none; padding: 0 16px; height: 56px; }

  /* All page wrappers get bottom padding so content clears the nav */
  .vote-page,
  .selections_page,
  .apply-page,
  .contact-page,
  .sponsor-page,
  .news-page {
    padding-bottom: calc(var(--bottom-h) + 16px);
  }

  .app-footer { display: none; }
}

/* ══════════════════════════
   RESPONSIVE — PHONE (≤ 480px)
══════════════════════════ */
@media (max-width: 480px) {
  .topbar { height: 52px; }

  .icon-btn { width: 32px; height: 32px; font-size: 14px; }

  /* Bottom nav: keep labels visible, never shrink below 11px */
  .bn-item  { font-size: 11px; gap: 2px; letter-spacing: .2px; }
  .bn-emoji { font-size: 20px; }
}
