/* minimal extras; tailwind handles most styling */

/* —— LearnPALM header (aligned with index2 landing) —— */
:root {
  --lp-navy: #1f3040;
  --lp-header-transition: 220ms ease;
}

.lp-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  padding: 18px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(31, 48, 64, 0.08);
  box-shadow: 0 8px 20px rgba(31, 48, 64, 0.04);
  transition: background var(--lp-header-transition), border-color var(--lp-header-transition);
}

.dark .lp-header {
  background: rgba(17, 24, 39, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lp-brand-cluster {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
  justify-self: start;
}

.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #000000;
  white-space: nowrap;
}

.dark .lp-logo {
  color: #f9fafb;
}

.lp-logo-mark {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.lp-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #000000;
}

.dark .lp-logo-text {
  color: #f9fafb;
}

.lp-logo-text .lp-palm {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-self: center;
}

.lp-nav a {
  text-decoration: none;
  color: var(--lp-navy);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
  transition: background var(--lp-header-transition), color var(--lp-header-transition),
    transform var(--lp-header-transition);
}

.dark .lp-nav a {
  color: #e5e7eb;
}

.lp-nav a:hover {
  background: rgba(31, 48, 64, 0.07);
  transform: translateY(-1px);
}

.dark .lp-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lp-trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: end;
  min-width: 0;
}

.lp-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-lang-icon {
  font-size: 1rem;
  line-height: 1.25;
  opacity: 0.85;
}

.lp-select {
  appearance: none;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 48, 64, 0.18);
  padding: 0.55em 14px 0.6em;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.9);
  color: var(--lp-navy);
  cursor: pointer;
  transition: border-color var(--lp-header-transition), background var(--lp-header-transition);
}

.dark .lp-select {
  background: rgba(31, 41, 55, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
}

.lp-select:hover {
  border-color: rgba(46, 125, 50, 0.45);
}

.lp-settings-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lp-settings-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--lp-navy);
  transition: background var(--lp-header-transition);
}

.dark .lp-settings-btn {
  color: #e5e7eb;
}

.lp-settings-btn:hover {
  background: rgba(31, 48, 64, 0.07);
}

.dark .lp-settings-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lp-settings-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lp-auth-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lp-btn {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1;
  padding: 14px 22px;
  transition: transform var(--lp-header-transition), box-shadow var(--lp-header-transition),
    background var(--lp-header-transition), border-color var(--lp-header-transition),
    color var(--lp-header-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

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

.lp-btn:active {
  transform: translateY(0);
}

.lp-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(31, 48, 64, 0.22);
  color: var(--lp-navy);
  box-shadow: none;
}

.dark .lp-btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
}

.lp-btn-ghost:hover {
  border-color: rgba(46, 125, 50, 0.45);
  color: #2e7d32;
}

.dark .lp-btn-ghost:hover {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
}

.lp-btn-signup {
  background: #2e7d32;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(46, 125, 50, 0.24);
}

.lp-btn-signup:hover {
  box-shadow: 0 18px 34px rgba(46, 125, 50, 0.3);
}

#nav-user-btn {
  border-radius: 999px;
}

@media (max-width: 900px) {
  .lp-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px;
  }

  .lp-brand-cluster {
    gap: 14px;
    justify-self: stretch;
    width: 100%;
  }

  .lp-nav {
    justify-content: flex-start;
    justify-self: stretch;
    gap: 4px;
  }

  .lp-nav a {
    font-size: 1rem;
    padding: 10px 14px;
  }

  .lp-trailing {
    justify-content: flex-start;
    width: 100%;
  }
}
