/* ============================================================
   TVReviewer.com — Global Navigation
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #c9a84c;
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .5em 1em;
  z-index: 999;
  border-radius: 0 0 3px 3px;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 0; }

/* ── NAV BAR ───────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0a0e16;
  border-bottom: 1px solid rgba(201,168,76,.18);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav { -ms-overflow-style: none; scrollbar-width: none; }
body {
  padding-top: 44px;
}

/* ── LOGO ──────────────────────────────────── */
.top-nav .site-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .82rem;
  color: var(--accent);
  font-style: italic;
  white-space: nowrap;
  padding-right: .6rem;
  margin-right: .3rem;
  border-right: 1px solid rgba(201,168,76,.15);
  text-decoration: none;
  transition: color .2s;
  flex-shrink: 0;
}
.top-nav .site-link em { color: var(--gold); font-style: italic; }
.top-nav .site-link:hover { color: var(--gold-lt); }

/* ── NAV LINKS WRAPPER ─────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  height: 100%;
  min-width: 0;
}

/* ── TOP-LEVEL LINKS ───────────────────────── */
.nav-links > a {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  padding: 0 .55rem;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition: color .2s;
  flex-shrink: 0;
}
.nav-links > a:hover { color: var(--gold); }

/* ── DROPDOWN GROUP ────────────────────────── */
.nav-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-drop-btn {
  font-family: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 .55rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: .25em;
  white-space: nowrap;
  transition: color .2s;
  position: relative;
  flex-shrink: 0;
}
.nav-drop-btn:hover { color: var(--gold); }
.nav-group.open .nav-drop-btn { color: var(--gold); }

.nav-caret {
  font-size: .45rem;
  transition: transform .2s;
  display: inline-block;
}
.nav-group.open .nav-caret { transform: rotate(180deg); }

/* ── DROPDOWN PANEL ────────────────────────── */
.nav-dropdown {
  position: fixed;
  top: 44px;
  left: auto;
  min-width: 180px;
  background: #111820;
  border: 1px solid rgba(201,168,76,.2);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 1px rgba(201,168,76,.15);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
.nav-group.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Awards dropdown: multi-column */
.nav-dropdown.nav-dd-awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 340px;
  padding: .5rem;
  gap: 0;
}

.nav-dd-col {
  padding: .25rem .6rem;
}
.nav-dd-col + .nav-dd-col {
  border-left: 1px solid rgba(201,168,76,.1);
}

.nav-dd-head {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  padding: .5rem .6rem .3rem;
  margin-bottom: .1rem;
}
.nav-dd-col .nav-dd-head:first-child { padding-top: .25rem; }

/* Dropdown links */
.nav-dropdown a {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  padding: .35rem .6rem;
  border-radius: 3px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: rgba(201,168,76,.1);
  color: var(--text);
}
.nav-dropdown a.dd-active {
  color: var(--gold);
  background: rgba(201,168,76,.08);
}

.nav-dd-divider {
  height: 1px;
  background: rgba(201,168,76,.1);
  margin: .4rem .6rem;
}

.nav-dd-allshows {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(201,168,76,.1);
  margin-top: .3rem;
  padding-top: .3rem;
  display: flex;
  justify-content: center;
  gap: .2rem .6rem;
  flex-wrap: wrap;
}
.nav-dd-allshows a {
  text-align: center;
  color: var(--gold);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .5rem;
}

/* Explore mega-menu */
.nav-dropdown.nav-dd-explore {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 520px;
  max-width: calc(100vw - 1rem);
  padding: .5rem;
  gap: 0;
  left: 0;
}
/* Awards dropdown */
.nav-dropdown.nav-dd-awards {
  max-width: calc(100vw - 1rem);
}
@media (max-width: 600px) {
  .nav-dropdown.nav-dd-explore {
    grid-template-columns: 1fr;
    min-width: 0;
    width: calc(100vw - 1rem);
  }
  .nav-dropdown.nav-dd-awards {
    grid-template-columns: 1fr;
    min-width: 0;
    width: calc(100vw - 1rem);
  }
  .nav-dd-col + .nav-dd-col {
    border-left: none;
    border-top: 1px solid rgba(201,168,76,.1);
    margin-top: .3rem;
    padding-top: .3rem;
  }
}

/* Rich links with descriptions */
.dd-rich-link {
  display: flex !important;
  flex-direction: column;
  padding: .5rem .6rem !important;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0 !important;
  transition: background .15s, border-color .15s, color .15s !important;
}
.dd-rich-link:hover {
  border-left-color: var(--gold) !important;
  background: rgba(201,168,76,.08) !important;
}
.dd-link-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.dd-rich-link:hover .dd-link-title { color: var(--gold-lt); }
.dd-link-desc {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.3;
  margin-top: .1rem;
  opacity: .7;
}
.dd-rich-link:hover .dd-link-desc { opacity: 1; }

/* ── OSCAR LIVE BADGE ──────────────────────── */
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.nav-live-badge {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  padding: .12em .45em;
  border-radius: 2px;
  margin-left: .4em;
  animation: live-pulse 1.5s ease-in-out infinite;
  line-height: 1;
}

/* ── THEME TOGGLE ──────────────────────────── */
.theme-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 3px;
  cursor: pointer;
  color: var(--muted);
  padding: .3em .5em;
  font-size: .65rem;
  line-height: 1;
  transition: color .2s, border-color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: .25em;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,.4);
  background: rgba(201,168,76,.06);
}

/* ── SEARCH BAR ────────────────────────────── */
.nav-search-wrap, .nav-search {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: .5rem;
}
.nav-search-input, .nav-search input[type="search"] {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: 3px;
  color: var(--text);
  font-size: .72rem;
  font-family: inherit;
  padding: .32em .75em;
  width: 160px;
  outline: none;
  transition: border-color .2s, width .25s, background .2s;
  -webkit-appearance: none;
}
.nav-search-input:focus, .nav-search input[type="search"]:focus {
  border-color: rgba(201,168,76,.45);
  background: rgba(255,255,255,.08);
  width: 220px;
}
.nav-search-input::-webkit-search-cancel-button,
.nav-search-input::-webkit-search-decoration,
.nav-search input::-webkit-search-cancel-button,
.nav-search input::-webkit-search-decoration { display: none; }
.nav-search-dropdown, .nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: #141b26;
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  z-index: 200;
}

/* ── HAMBURGER (hidden — nav is always visible) ── */
.nav-hamburger {
  display: none !important;
}

/* ── LIGHT MODE ────────────────────────────── */
html.light .top-nav {
  background: #f5f0e8;
  border-bottom-color: rgba(201,168,76,.2);
}
html.light .nav-dropdown {
  background: #fff;
  border-color: rgba(201,168,76,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
html.light .nav-dropdown a:hover {
  background: rgba(201,168,76,.08);
}
html.light .nav-search-input,
html.light .nav-search input[type="search"] {
  background: rgba(0,0,0,.04);
  color: var(--text);
}
html.light .nav-search-dropdown,
html.light .nav-search-results { background: #fff; }

/* ── NARROW SCREENS ───────────────────────── */
@media (max-width: 600px) {
  .top-nav { padding: 0 .5rem; }
  .nav-search-wrap, .nav-search { display: none; }
}
