/* ══════════════════════════════════
   TOPBAR
══════════════════════════════════ */
.topbar {
  background: var(--ink);
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* subtle geometric lines inside topbar */
.topbar::before {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 200px; height: 100%;
  background: repeating-linear-gradient(
    -60deg,
    transparent,
    transparent 8px,
    rgba(91,63,166,0.18) 8px,
    rgba(91,63,166,0.18) 9px
  );
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar-left a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.topbar-left a:hover { color: rgba(255,255,255,0.85); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-dot {
  width: 5px; height: 5px;
  background: #e04545;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.topbar-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

.topbar-pill {
  background: rgba(91,63,166,0.55);
  border: 1px solid rgba(123,92,196,0.5);
  color: #c4b3f5;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
}

.header-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* LOGO — exact Option 3 */
.logo-wrap {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
}

.logo-black {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-purple {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--p);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-bottom: 2.5px solid var(--p);
  padding-bottom: 1px;
  line-height: 1;
  display: inline-block;
}

/* Search */
.header-search-wrap {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search-wrap svg.s-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink4);
  pointer-events: none;
}

.header-search {
  width: 100%;
  background: #f5f3fb;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 0.52rem 1rem 0.52rem 2.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  border-radius: 100px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.header-search:focus { border-color: var(--p2); background: var(--white); }
.header-search::placeholder { color: var(--ink4); }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink2);
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--p2); color: var(--p); }

.btn-cta {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  padding: 0.48rem 1.1rem;
  background: var(--p);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent, transparent 5px,
    rgba(255,255,255,0.06) 5px, rgba(255,255,255,0.06) 6px
  );
}
.btn-cta:hover { background: var(--p2); }

/* ── NAV ── */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--p3);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-item {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink3);
  padding: 0.85rem 1.1rem;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active {
  color: var(--p);
  border-bottom-color: var(--p);
  font-weight: 600;
}

/* Paid Posts item special */
.nav-item.paid {
  color: var(--p2);
}
.nav-item.paid::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--p);
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

/* ── TICKER ── */
.ticker {
  background: var(--p4);
  border-bottom: 1px solid var(--p3);
  padding: 0 2.5rem;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
}

.ticker-badge {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p);
  background: var(--p3);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-scroll {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.ticker-text {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink2);
  white-space: nowrap;
  animation: ticker-move 45s linear infinite;
  display: inline-block;
}
@keyframes ticker-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

