/* ============================================================
   Landing-style header for PHP inner pages.
   Mirrors the glass pill header from landing.html without
   pulling the whole Tailwind/CDN stack into app pages.
   ============================================================ */

/* Shared visual primitives (same values as landing.css) */
.glass {
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 12px 40px -14px rgba(27, 171, 180, .22), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn-pill {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, background .35s;
}
.btn-pill:active { transform: scale(.97); }
.btn-pill .btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .2);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .35s;
}
.btn-pill:hover .btn-icon {
  transform: translateX(-3px) scale(1.06);
  background: rgba(255, 255, 255, .3);
}
html[dir="ltr"] .btn-pill:hover .btn-icon { transform: translateX(3px) scale(1.06); }

/* Scroll progress */
#lh-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 70;
  height: 3px;
  width: 0;
  background: #EB852B;
  border-end-end-radius: 999px;
  pointer-events: none;
}

/* Header shell — sticky keeps it in flow so inner-page layout is unchanged */
#site-header.lh-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  width: 100%;
}
.lh-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 12px 16px 0;
  transition: padding-top .4s cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 640px) {
  .lh-wrap { padding: 20px 24px 0; }
}
#site-header.is-scrolled .lh-wrap { padding-top: 8px; }

.lh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  transition: padding .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s;
}
@media (min-width: 640px) {
  .lh-nav { padding: 12px 24px; }
}
#site-header.is-scrolled .lh-nav {
  padding-block: 9px;
  box-shadow: 0 10px 30px -14px rgba(27, 171, 180, .45);
}

/* Brand */
.lh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #3E3F41;
}
.lh-brand:hover { color: #3E3F41; }
.lh-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
}
.lh-brand-text { display: none; line-height: 1.25; }
@media (min-width: 640px) {
  .lh-brand-text { display: block; }
  .lh-logo { width: 44px; height: 44px; }
}
.lh-brand-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #3E3F41;
}
.lh-brand-text small {
  display: block;
  font-size: 10px;
  color: rgba(62, 63, 65, .55);
}
@media (min-width: 640px) {
  .lh-brand-text strong { font-size: 14px; }
  .lh-brand-text small { font-size: 11px; }
}

/* Desktop links */
.lh-menu {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .lh-menu { display: flex; }
}
.lh-link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(62, 63, 65, .75);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.lh-link:hover {
  background: rgba(27, 171, 180, .10);
  color: #1BABB4;
  text-decoration: none;
}

/* Actions */
.lh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lh-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
}
.lh-lang a {
  padding: 6px 7px;
  border-radius: 999px;
  color: rgba(62, 63, 65, .5);
  transition: background .2s, color .2s;
}
.lh-lang a:hover { color: #1BABB4; text-decoration: none; }
.lh-lang a.is-active { background: rgba(27, 171, 180, .12); color: #15787F; }

.lh-donate {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #1BABB4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 24px 70px -28px rgba(27, 171, 180, .45);
}
@media (min-width: 640px) {
  .lh-donate { display: inline-flex; }
}
.lh-donate:hover {
  background: #168f97;
  color: #fff;
  text-decoration: none;
}

.lh-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(27, 171, 180, .2);
  background: transparent;
  color: #1BABB4;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .lh-toggle { display: none; }
}

/* Mobile menu */
.lh-mobile {
  display: none;
  margin-block-start: 8px;
  padding: 12px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}
.lh-mobile.is-open { display: block; }
@media (min-width: 1024px) {
  .lh-mobile.is-open { display: none; }
}
.lh-mobile .lh-m-link {
  display: block;
  padding: 12px 16px;
  border-radius: 16px;
  color: #3E3F41;
  transition: background .2s, color .2s;
}
.lh-mobile .lh-m-link:hover {
  background: rgba(27, 171, 180, .10);
  color: #1BABB4;
  text-decoration: none;
}
.lh-mobile .lh-m-donate {
  display: block;
  margin-block-start: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #1BABB4;
  color: #fff;
  text-align: center;
}
.lh-mobile .lh-m-donate:hover { background: #168f97; color: #fff; text-decoration: none; }
.lh-mobile .lh-m-lang {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 16px 4px;
  font-size: 12px;
}
.lh-mobile .lh-m-lang a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(27, 171, 180, .10);
  color: #15787F;
}
.lh-mobile .lh-m-lang a.is-active { background: #1BABB4; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .lh-wrap, .lh-nav, .btn-pill, .btn-pill .btn-icon { transition: none; }
}
