/*
 * Thread — Flexcompute Brand System
 * Brand Book, May 2024
 */

:root {
  --fc-green: #00643C;
  --fc-teal: #61B29C;
  --fc-blue: #6DB5DD;
  --fc-blue-light: #7BBDF0;
  --fc-lace: #ECEBEA;
  --fc-black: #000000;
  --fc-white: #FFFFFF;

  --fc-gradient: linear-gradient(90deg, var(--fc-green), var(--fc-teal), var(--fc-blue));

  --nav-height: 48px;
}

/* ===== NAV BAR ===== */

.thread-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.9rem;
}

.thread-nav--light {
  background: rgba(255,255,255,0.88);
  color: #1A1A2E;
}

.thread-nav--dark {
  background: rgba(11,17,32,0.88);
  color: #E8ECF1;
  border-bottom-color: rgba(255,255,255,0.06);
}

.thread-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.thread-nav__logo svg {
  width: 24px;
  height: 24px;
}

.thread-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.thread-nav__links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.6;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}

.thread-nav__links a:hover {
  opacity: 1;
}

.thread-nav__links a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--fc-green);
}

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

.thread-footer {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  color: #8899A6;
  letter-spacing: 0.01em;
}

.thread-footer a {
  color: var(--fc-green);
  text-decoration: none;
}

.thread-footer a:hover {
  text-decoration: underline;
}

.thread-footer__bar {
  height: 3px;
  background: var(--fc-gradient);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
  .thread-nav {
    padding: 0 1rem;
    font-size: 0.72rem;
  }
  .thread-nav__links {
    gap: 0.8rem;
  }
}
