/* =========================================================
   NDQUEST — COMPONENTS.CSS
   Shared building blocks for the NDQuest landing: navbar, hero,
   card, buttons, tag, footer. Independent file, own copy — not
   imported from root or academy.
   ========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: var(--gradient-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===============================
   NAVBAR
   =============================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: transparent;
  transition: background .25s, box-shadow .25s;
}

.navbar.navbar-solid {
  background: rgba(7, 27, 48, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--color-surface-border);
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.nav-links a:hover {
  color: var(--color-text);
}

.language-switch {
  display: flex;
  gap: 4px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-surface-border);
  border-radius: 999px;
  padding: 3px;
}

.language-switch button {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
}

.language-switch button.active {
  background: var(--color-gold);
  color: #2b1600;
}

/* ===============================
   CATEGORY TABS
   =============================== */

.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-tab {
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-surface-border);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.category-tab:hover {
  border-color: var(--color-gold);
  color: var(--color-text);
}

.category-tab.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #2b1600;
}

.category-empty {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===============================
   TAG
   =============================== */

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

/* ===============================
   HERO
   =============================== */

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-logo img {
  height: 52px;
  width: auto;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  margin: 0 0 16px;
  color: var(--color-text);
}

.hero-description {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 38px;
  }
}

/* ===============================
   CARD
   =============================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ===============================
   BUTTONS
   =============================== */

.btn {
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-gold);
  color: #2b1600;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-surface-border);
}

/* ===============================
   REVEAL (scroll-in)
   =============================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s, transform .6s;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-surface-border);
  margin-top: 64px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand span {
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}
