/* ── SHARED STYLES — ChallengeCoinsCollector.com ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #9C7A2E;
  --dark: #0D0D0D;
  --dark-2: #141414;
  --dark-3: #1C1C1C;
  --dark-4: #242424;
  --dark-5: #2C2C2C;
  --text: #E8E0D0;
  --text-muted: #9A9080;
  --border: rgba(201,168,76,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo span { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
  letter-spacing: 1.5px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--dark) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.7;
  margin-top: 10px;
}
.footer-col h5 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ── SHARED COMPONENTS ── */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  margin: 0 auto 20px;
}
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 36px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 36px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
  background: none;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-1px); }

/* ── TYPE BADGE ── */
.type-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
}

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  padding: 120px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, #111008 0%, var(--dark-2) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
.nav-auth-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-auth-btn:hover { color: var(--gold); }

.msg-badge {
  display: inline-block;
  margin-left: 5px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1.4;
}

@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,10,10,0.98); padding: 20px; gap: 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-hamburger { display: flex; }
}
