/*
  Hand-written CSS for public-site widgets that aren't covered by the
  Tailwind utility classes already baked into output.css.

  Why this file exists: output.css is a FROZEN pre-built bundle, not a
  live Tailwind JIT build - only the utility classes that were already in
  use somewhere at the time it was generated actually exist in it. Adding
  a new Tailwind class to a template (e.g. `bottom-full`, `shadow-lg`)
  does nothing unless output.css gets regenerated, which nothing in this
  project's runtime does automatically. Rather than depend on someone
  remembering to rebuild output.css correctly, small new UI pieces on the
  public site are styled here instead, with plain CSS referencing the
  same design tokens (--gold, --border, --card, etc. - see :root in
  output.css) - guaranteed to render correctly regardless of the
  Tailwind build's state. This mirrors the same approach already used for
  the admin panel (static/admin/style.css) and the console's per-theme
  stylesheets, which are also hand-written for the same reason.
*/

/* Footer language switcher - see templates/public/partials/site-footer.html.
   Opens UPWARD (menu is positioned above the trigger, not below): the
   trigger sits at the very bottom of the page, so a downward-opening
   menu would render past the viewport edge. */
.lang-switcher { position: relative; }

.lang-switcher-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switcher-trigger:hover {
  border-color: var(--sage-light);
  color: var(--sage);
}

.lang-switcher-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 30;
  width: 10rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(74, 58, 34, 0.18);
  padding: 0.3rem;
}
.lang-switcher-menu[hidden] { display: none; }

.lang-switcher-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
}
.lang-switcher-menu button:hover {
  background: var(--cream-deep);
  color: var(--gold);
}

.lang-switcher-menu svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: var(--gold);
}


/* Invitation link that can't be used - see templates/public/invitation.html.
   Same anatomy as the console styleguide alert (icon / title / description
   in a bordered box), scaled up to stand alone on the page. */
.invite-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.25rem;
}

/* Logo in the top-left corner, matching the site header's position:
   max-w-6xl container, px-6, h-18. */
.invite-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: 72rem;
  height: 4.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
}
.invite-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.invite-brand-logo {
  height: 2.25rem;
  width: auto;
  transition: transform 0.5s;
}
.invite-brand:hover .invite-brand-logo { transform: rotate(-6deg); }
.invite-brand-name {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.125rem;
  letter-spacing: 0.34em;
  color: var(--gold);
}

.invite-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.875rem;
  row-gap: 0.25rem;
  width: 100%;
  max-width: 28rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--gold-light) 55%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold-light) 9%, var(--card));
  color: var(--foreground);
}
.invite-alert-icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold-light) 18%, transparent);
  color: var(--gold);
}
.invite-alert-icon > svg { width: 1.125rem; height: 1.125rem; }
.invite-alert-title {
  align-self: end;
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
}
.invite-alert-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.invite-button:hover { background: var(--gold-deep); }
