/* ── NightWatch Global Stylesheet ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void:     #100d08;
  --dark:     #0d0b07;
  --card:     #1e1810;
  --card2:    #201608;
  --border:   rgba(201,168,76,.18);
  --gold:     #c9a84c;
  --gold-lt:  #f0c475;
  --purple:   #8b5cf6;
  --pink:     #ec4899;
  --cyan:     #22d3ee;
  --text:     #f2e8d8;
  --muted:    rgba(242,232,216,.55);
  --font-h:   'Jost', system-ui, sans-serif;
  --font-b:   'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--void); color: var(--text); line-height: 1.65; }

/* ══ NAVBAR ══ */
.nightnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: .85rem 0;
  background: rgba(6,6,14,.82); backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nightnav.scrolled { background: rgba(6,6,14,.97); }
.nightnav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  font-family: var(--font-h); font-size: 1.35rem; font-weight: 700;
  color: var(--gold); text-decoration: none; letter-spacing: -.4px;
}
.nav-brand span { color: var(--text); }
.nav-brand .dot { color: var(--pink); }

.navbar-nav { list-style: none; gap: .1rem; }
.navbar-nav .nav-link {
  color: rgba(232,232,240,.65); text-decoration: none;
  font-size: .86rem; font-weight: 500; padding: .42rem 1rem;
  border-radius: 50px; transition: all .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-explore {
  background: linear-gradient(135deg, var(--gold), #e8b84b) !important;
  color: #0c0c1a !important; font-weight: 700 !important;
  padding: .42rem 1.2rem !important; border-radius: 50px !important;
}
.nav-explore:hover { opacity: .9; transform: translateY(-1px); }

/* ══ CONTAINERS ══ */
.container { max-width: 1260px; margin: 0 auto; padding: 0 1.5rem; }

/* ══ HOME HERO ══ */
.home-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--void); padding-top: 80px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 5%,  rgba(139,92,246,.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 85% 80%,  rgba(236,72,153,.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 25% at 10% 85%,  rgba(34,211,238,.09) 0%, transparent 55%);
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1px 1px   at 78% 14%, rgba(255,255,255,.3)  0%, transparent 100%),
    radial-gradient(2px 2px   at 52% 38%, rgba(201,168,76,.55)  0%, transparent 100%),
    radial-gradient(1px 1px   at 33% 65%, rgba(255,255,255,.4)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 52%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px   at 65% 82%, rgba(255,255,255,.5)  0%, transparent 100%),
    radial-gradient(2px 2px   at 20% 88%, rgba(139,92,246,.4)   0%, transparent 100%),
    radial-gradient(1px 1px   at 96% 30%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px   at 72% 62%, rgba(236,72,153,.35)  0%, transparent 100%);
}
.home-hero .container { position: relative; z-index: 1; text-align: center; }

.hero-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.28);
  border-radius: 50px; padding: .35rem 1.1rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.hero-pill .dot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: glow-pulse 2.2s ease-in-out infinite; }
@keyframes glow-pulse { 0%,100% { opacity:1; box-shadow:0 0 6px var(--gold); } 50% { opacity:.3; box-shadow:none; } }

.hero-h1 {
  font-size: clamp(2.8rem, 7.5vw, 5.8rem); font-weight: 900;
  font-family: var(--font-h); line-height: 1.08; margin-bottom: 1.3rem; color: var(--text);
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin: 0 auto 2.8rem; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: #0c0c1a; font-weight: 700; font-size: .95rem;
  padding: .9rem 2.3rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .22s; box-shadow: 0 4px 20px rgba(201,168,76,.25);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(201,168,76,.35); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(255,255,255,.18); font-weight: 600; font-size: .95rem;
  padding: .9rem 2.3rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem; transition: all .22s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.45); transform: translateY(-3px); }

/* ══ STAT STRIP ══ */
.stat-strip {
  background: rgba(255,255,255,.025); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.8rem 0;
}
.stat-strip .inner { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.stat-num { font-family: var(--font-h); font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.stat-lbl { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-top: .1rem; }

/* ══ SECTION HEADERS ══ */
.sec-head { text-align: center; margin-bottom: 3rem; }
.sec-head .label {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .55rem; display: block;
}
.sec-head h2 { font-family: var(--font-h); font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.sec-head p { color: var(--muted); max-width: 600px; margin: 0 auto; }

section { padding: 3rem 0; }

/* ══ RANKING CARDS ══ */
.ranking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.2rem; }

.ranking-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.5rem; display: flex; gap: 1.1rem; align-items: flex-start;
  text-decoration: none; color: var(--text); transition: all .22s;
}
.ranking-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.3); box-shadow: 0 12px 40px rgba(0,0,0,.4); }

.rank-num {
  font-family: var(--font-h); font-size: 2rem; font-weight: 900;
  color: rgba(201,168,76,.5); min-width: 2.4rem; line-height: 1; padding-top: .1rem;
}
.rank-num.gold { color: var(--gold); font-size: 2.6rem; }

.rank-info h4 { font-family: var(--font-h); font-size: 1rem; font-weight: 700; margin-bottom: .22rem; }
.rank-city { font-size: .78rem; color: var(--gold); font-weight: 600; margin-bottom: .45rem; display: flex; align-items: center; gap: .3rem; }
.rank-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.rank-badge {
  display: inline-block; margin-top: .6rem;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.25);
  color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .18rem .65rem; border-radius: 50px;
}
.rank-badge.new { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.25); color: var(--cyan); }

/* ══ CONTINENT CARDS ══ */
.continent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.continent-card {
  position: relative; border-radius: 20px; overflow: hidden;
  min-height: 230px; display: block; text-decoration: none; color: var(--text);
  transition: transform .3s;
}
.continent-card:hover { transform: scale(1.025); }
.cc-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s;
}
.continent-card:hover .cc-img { transform: scale(1.08); }
.cc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,14,.92) 0%, rgba(6,6,14,.45) 55%, rgba(6,6,14,.15) 100%);
}
.cc-body {
  position: relative; z-index: 1; padding: 1.5rem;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
}
.cc-emoji { font-size: 1.8rem; margin-bottom: .4rem; }
.cc-name { font-family: var(--font-h); font-size: 1.55rem; font-weight: 700; margin-bottom: .2rem; }
.cc-cities { font-size: .8rem; color: rgba(232,232,240,.6); }
.cc-arrow {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: background .22s;
}
.continent-card:hover .cc-arrow { background: var(--gold); color: #0c0c1a; }

/* ══ PAGE BANNER (sub-pages) ══ */
.page-banner {
  padding: 1.6rem 0 1.2rem;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(201,168,76,.16) 0%, transparent 70%), linear-gradient(160deg, #100d08 0%, #080604 100%);
  border-bottom: 1px solid rgba(201,168,76,.25);
  text-align: center;
}
.page-banner .eyebrow {
  display: inline-block;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.28);
  border-radius: 50px; padding: .25rem 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem;
}
.page-banner h1 {
  font-family: 'Jost', sans-serif; font-weight: 300; text-transform: uppercase;
  letter-spacing: .12em; font-size: 2.2rem; color: var(--gold); margin-bottom: .3rem;
}
.page-banner p.lead { font-size: .92rem; color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ══ CITY SECTIONS ══ */
.city-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.city-section:last-child { border-bottom: none; }

.city-head { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; }

.city-thumb {
  width: 270px; flex-shrink: 0; border-radius: 16px; overflow: hidden; position: relative;
}
.city-thumb img { width: 100%; height: 185px; object-fit: cover; display: block; }
.city-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: .6rem 1rem;
  background: linear-gradient(to top, rgba(6,6,14,.9), transparent);
  font-family: var(--font-h); font-size: 1.05rem; font-weight: 700;
}

.city-meta { flex: 1; min-width: 220px; }
.city-name { font-family: var(--font-h); font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: .25rem; }
.city-country {
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: .75rem;
}
.city-desc { color: var(--muted); font-size: .88rem; line-height: 1.75; margin-bottom: 1rem; }

.vibe-tags { display: flex; gap: .45rem; flex-wrap: wrap; }
.vibe-tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .22rem .75rem; border-radius: 50px;
}
.vibe-tag.purple { background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.3); color: #a78bfa; }
.vibe-tag.gold   { background: rgba(201,168,76,.12);  border: 1px solid rgba(201,168,76,.28);  color: var(--gold); }
.vibe-tag.pink   { background: rgba(236,72,153,.12);  border: 1px solid rgba(236,72,153,.28);  color: #f472b6; }
.vibe-tag.cyan   { background: rgba(34,211,238,.1);   border: 1px solid rgba(34,211,238,.25);  color: var(--cyan); }

/* ══ BAR CARDS ══ */
.bar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }

.bar-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: all .22s;
}
.bar-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,.35); box-shadow: 0 12px 36px rgba(0,0,0,.45); }
.bar-img { width: 100%; height: 145px; object-fit: cover; display: block; }
.bar-body { padding: .95rem 1.1rem 1.2rem; }
.bar-name { font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.bar-type {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gold); margin-bottom: .5rem;
}
.bar-desc { font-size: .81rem; color: var(--muted); line-height: 1.65; }
.bar-rank {
  display: inline-flex; align-items: center; gap: .3rem; margin-top: .65rem;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.22);
  color: var(--gold); font-size: .68rem; font-weight: 700;
  padding: .18rem .65rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em;
}
.bar-rank.purple { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.25); color: #a78bfa; }
.bar-rank.pink   { background: rgba(236,72,153,.1);  border-color: rgba(236,72,153,.25);  color: #f472b6; }

/* ══ CTA BAND ══ */
.cta-band {
  background: linear-gradient(135deg, rgba(139,92,246,.15) 0%, rgba(236,72,153,.1) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3.5rem 0; text-align: center;
}
.cta-band h2 { font-family: var(--font-h); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
.cta-band p { color: var(--muted); margin-bottom: 2rem; }
.cta-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-purple {
  background: var(--purple); color: #fff; font-weight: 700; font-size: .92rem;
  padding: .82rem 2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem; transition: all .22s;
}
.btn-purple:hover { background: #7c3aed; transform: translateY(-2px); }

/* ══ FOOTER ══ */
.nightfoot { background: var(--dark); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; }
.foot-brand { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.foot-brand span { color: var(--text); }
.foot-tag { color: var(--muted); font-size: .84rem; margin: .5rem 0 0; max-width: 260px; }
.foot-col h6 {
  color: var(--text); font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 1rem;
}
.foot-link {
  display: block; color: var(--muted); text-decoration: none;
  font-size: .83rem; margin-bottom: .48rem; transition: color .2s;
}
.foot-link:hover { color: var(--gold); }
.foot-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0 1.2rem; }
.foot-bottom { font-size: .79rem; color: var(--muted); }
.foot-copy { display: flex; justify-content: space-between; align-items: center; flex-wrap: gap-2; gap: .75rem; }

/* ══ SCROLL TOP ══ */
#scrollTop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold); color: #0c0c1a; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s;
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
}
#scrollTop.visible { opacity: 1; visibility: visible; }
#scrollTop:hover { background: var(--gold-lt); transform: translateY(-3px); }

/* ══ RESPONSIVE ══ */
@media (max-width: 992px) {
  .continent-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .continent-grid { grid-template-columns: 1fr; }
  .city-thumb { width: 100%; }
  .city-thumb img { height: 200px; }
  .stat-strip .inner { gap: 2rem; }
  section { padding: 3.5rem 0; }
  .page-banner { padding: 1.2rem 0 1rem; }
  .page-banner h1 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .ranking-grid { grid-template-columns: 1fr; }
}
