/*
 * ============================================
 * LGP ENDORSER BAR + SHARED FOOTER
 * ============================================
 *
 * Requires lgp-tokens.css to be loaded first.
 *
 * Usage: Copy the HTML from lgp-endorser.html into your page.
 * This file provides the styles.
 *
 * Last updated: 2026-03-30
 */

/* ── Endorser Bar ── */
.lgp-endorser {
  background: var(--surface-1);
  border-bottom: 1px solid var(--surface-2);
  padding: var(--space-2) var(--space-6);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-clear);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.lgp-endorser-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-editorial);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.lgp-endorser-brand:hover {
  color: var(--text-primary);
}

.lgp-endorser-mark {
  width: 20px;
  height: 20px;
  background: var(--brand-teal);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-0);
  font-size: 11px;
  font-family: var(--font-editorial);
  font-weight: 600;
  flex-shrink: 0;
}

/* SVG icon variants for light/dark */
.lgp-endorser-icon { flex-shrink: 0; }
.lgp-endorser-icon--dark { display: none; }
[data-theme="dark"] .lgp-endorser-icon--light { display: none; }
[data-theme="dark"] .lgp-endorser-icon--dark { display: block; }

.lgp-endorser-nav {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.lgp-endorser-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-clear);
  font-size: var(--text-xs);
  font-weight: 400;
  transition: color 0.2s;
}

.lgp-endorser-nav a:hover {
  color: var(--text-primary);
}

.lgp-endorser-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 500;
}

/* Mobile: hide nav links, show brand only */
@media (max-width: 768px) {
  .lgp-endorser-nav {
    display: none;
  }
}

/* ── Shared Footer ── */
.lgp-footer {
  border-top: 1px solid var(--surface-2);
  padding: var(--space-16) var(--space-6) var(--space-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  font-family: var(--font-clear);
}

.lgp-footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  text-decoration: none;
}

.lgp-footer-mark {
  width: 28px;
  height: 28px;
  background: var(--brand-teal);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-0);
  font-size: 14px;
  font-family: var(--font-editorial);
  font-weight: 600;
  flex-shrink: 0;
}

/* SVG icon variants for light/dark */
.lgp-footer-icon { flex-shrink: 0; }
.lgp-footer-icon--dark { display: none; }
[data-theme="dark"] .lgp-footer-icon--light { display: none; }
[data-theme="dark"] .lgp-footer-icon--dark { display: block; }

.lgp-footer-brand span {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.lgp-footer-tagline {
  font-family: var(--font-clear);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-8);
}

.lgp-footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.lgp-footer-col h4 {
  font-family: var(--font-clear);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 var(--space-3) 0;
}

.lgp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lgp-footer-col li {
  margin-bottom: var(--space-2);
}

.lgp-footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.lgp-footer-col a:hover {
  color: var(--text-primary);
}

.lgp-footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  padding-top: var(--space-6);
  border-top: 1px solid var(--surface-2);
  margin: 0;
}

@media (max-width: 768px) {
  .lgp-footer-columns {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ── Cross-product CTA ── */
.lgp-cross-cta {
  border: 1px solid var(--surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-8);
  background: var(--surface-1);
}

.lgp-cross-cta-label {
  font-family: var(--font-clear);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.lgp-cross-cta-title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.lgp-cross-cta-desc {
  font-family: var(--font-clear);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.lgp-cross-cta-link {
  font-family: var(--font-clear);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.lgp-cross-cta-link:hover {
  text-decoration: underline;
}
