/* ================================================================
   Xagau Exchange Labs — Shared Navigation + Ticker Tape
   nav.css  ·  single source of truth for all pages
================================================================ */

/* ── TICKER TOPBAR ── */
.topbar {
  background: #C9A227;
  color: #0D0D0D;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 34px;
  position: relative;
  z-index: 101;
}

/* Dark XAGAU label pinned to the left */
.topbar-label {
  background: #0D0D0D;
  color: #F0C040;
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 1.1rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  border-right: 2px solid rgba(240,192,64,0.35);
  user-select: none;
}

/* Scrolling area */
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

/* The moving track — duplicated content enables seamless loop */
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: xag-ticker 44s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-set {
  display: inline-flex;
  align-items: center;
}

/* Individual message segment */
.tick-seg {
  padding: 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0D0D0D;
}

.tick-seg a {
  color: #0D0D0D;
  text-decoration: none;
  font-weight: 700;
}
.tick-seg a:hover {
  text-decoration: underline;
}

.tick-seg strong { font-weight: 800; }

/* Bullet separator between items */
.tick-sep {
  color: rgba(0, 0, 0, 0.28);
  font-size: 0.42rem;
  flex-shrink: 0;
  user-select: none;
}

@keyframes xag-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVIGATION BAR ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  color: #444;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover  { color: #9A7D1A; }
.nav-links a.active { color: #9A7D1A; font-weight: 700; }

.nav-cta {
  background: linear-gradient(135deg, #F0C040, #C9A227);
  color: #0D0D0D;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-price-sheet {
  display: none;
  color: #9A7D1A;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid #C9A227;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-price-sheet:hover { background: rgba(201, 162, 39, 0.1); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links       { display: none; }
  .nav-price-sheet { display: block; }
  .nav-cta-num     { display: none; }
}

@media (max-width: 480px) {
  .topbar-label { display: none; }
}
