/* === Longtail AI Foundation — Brand Tokens ================================ */
/* Mirrors learnisl/server/static/shared/brand.css. Keep tokens in sync. */

:root {
  --brand-primary: #9245e3;
  --brand-primary-dark: #7a2bc7;
  --brand-primary-light: #f3e5f5;
  --brand-secondary: #03b5a9;
  --brand-gradient: linear-gradient(to right, #9245E3, #CF95E2, #F4A8F3);

  --text-body: #57647c;
  --text-heading: #1a1a1a;

  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --btn-radius: 9999px;
  --btn-radius-small: 24px;

  --z-sticky: 100;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family);
  background: #fff;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
}
a:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}

/* === Shared Site Header =================================================== */

.site-header {
  background: white;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
  flex-shrink: 0;
}

.site-header .brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-heading);
  flex-shrink: 0;
}

.site-header .brand-link img {
  height: 28px;
  width: auto;
}

.site-header .brand-link span {
  font-family: var(--font-family);
  font-size: 1.15rem;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-header nav a {
  padding: 5px 16px;
  border-radius: 9999px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-body);
  transition: background 0.15s, color 0.15s;
}

.site-header nav a:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.site-header nav a.active {
  background: var(--brand-primary);
  color: white;
}

/* --- Hamburger toggle (hidden on desktop) --------------------------------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-body);
  flex-shrink: 0;
}

/* === Shared Site Footer =================================================== */

.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 14px 24px;
  font-family: var(--font-family);
  flex-shrink: 0;
  flex-grow: 0;
}

.site-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.site-footer .footer-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.site-footer .footer-logo-link:hover {
  opacity: 1;
}

.site-footer .footer-inner img {
  height: 28px;
  width: auto;
  filter: brightness(1.3);
}

.site-footer .footer-divider {
  width: 1px;
  height: 22px;
  background: #3a3a55;
}

.site-footer .footer-tagline {
  font-size: 0.85rem;
  color: #bbb;
  font-style: italic;
}

.site-footer .footer-copy {
  font-size: 0.75rem;
  color: #9a9a9a;
  white-space: nowrap;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--brand-gradient); color: white; }
.btn-primary:hover { background: var(--brand-primary-dark); color: white; text-decoration: none; }

.btn-large { padding: 14px 32px; font-size: 1rem; }

/* === Responsive ============================================================ */

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; }
  .site-header { flex-wrap: wrap; padding: 8px 16px; }
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
    margin-left: 0;
    order: 10;
    border-top: 1px solid #eee;
    align-items: stretch;
  }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  .site-header nav a:hover { background: #f5f5f5; }
  .site-header .brand-link span { font-size: 1rem; }

  .site-footer { padding: 12px 16px; }
  .site-footer .footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 10px 14px;
  }
  .site-footer .footer-divider { display: none; }
  .site-footer .footer-tagline { font-size: 0.8rem; }
  .site-footer .footer-copy { width: 100%; font-size: 0.7rem; }
}
