/* inviteyou.app — base styles (cockpit + marketing share these). */

:root {
  --iy-primary: #7c3aed;
  --iy-primary-rgb: 124, 58, 237;
  --iy-primary-dark: #4c1d95;
  --iy-text: #1f2937;
  --iy-text-muted: #6b7280;
  --iy-bg-soft: #f8f7fb;
  --iy-border: #e5e7eb;
  --iy-radius: 14px;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--iy-text);
  -webkit-font-smoothing: antialiased;
}

.btn-primary,
.bg-primary {
  background-color: var(--iy-primary) !important;
  border-color: var(--iy-primary) !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--iy-primary-dark) !important;
  border-color: var(--iy-primary-dark) !important;
}
.text-primary,
a { color: var(--iy-primary); }
a:hover { color: var(--iy-primary-dark); }

.brand-mark {
  color: var(--iy-primary);
  margin-right: 4px;
}

/* --- Logo (inline SVG) -------------------------------------------------- */
.app-logo {
  display: block;
  height: 22px;
  width: auto;
  color: currentColor;          /* fills via currentColor in the SVG */
  flex-shrink: 0;
}
.app-logo--mark {
  height: 26px;
  aspect-ratio: 642 / 1073;
  width: auto;
}
.cockpit-org-name {
  font-weight: 500;
  letter-spacing: -0.005em;
  border-left: 1px solid currentColor;
  padding-left: 0.6rem;
  margin-left: 0.15rem;
  opacity: 0.85;
  font-size: 0.95rem;
}
.navbar-brand:hover .app-logo { opacity: 0.78; }
@media (min-width: 768px) {
  .app-logo { height: 24px; }
}

/* --- Marketing landing -------------------------------------------------- */
.hero {
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(var(--iy-primary-rgb), 0.08), transparent),
    radial-gradient(40% 60% at 0% 100%, rgba(var(--iy-primary-rgb), 0.05), transparent);
}
.hero-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}
.anlass-tile {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.anlass-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.15);
}

/* --- Cockpit ------------------------------------------------------------ */
.cockpit { background: #f3f4f6; min-height: 100vh; }

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(var(--iy-primary-rgb), 0.1);
  color: var(--iy-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.empty-state { color: var(--iy-text-muted); }

/* --- Public event pages: shared scaffolding ----------------------------- */
.public-event {
  background: var(--iy-bg-soft);
  color: var(--iy-text);
}
.public-event .hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--iy-primary-dark), var(--iy-primary));
  padding: 6rem 0 5rem;
  text-align: center;
}
.public-event .hero--with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.public-event .hero h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.public-event .hero-eyebrow { letter-spacing: 0.18em; opacity: 0.9; }

.public-event .section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.public-event .cta {
  background: linear-gradient(135deg, rgba(var(--iy-primary-rgb), 0.06), rgba(var(--iy-primary-rgb), 0.12));
}

.public-rsvp,
.public-confirmation {
  background: var(--iy-bg-soft);
  min-height: 100vh;
}

.object-fit-cover { object-fit: cover; width: 100%; height: 100%; }

/* --- Forms -------------------------------------------------------------- */
.form-control:focus,
.form-select:focus {
  border-color: var(--iy-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--iy-primary-rgb), 0.18);
}

/* --- Utility ------------------------------------------------------------ */
.font-monospace { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* --- Language switcher (public event pages) ---------------------------- */
.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-radius: 999px;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.25);
}
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--iy-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-switcher__btn:hover { background: rgba(0, 0, 0, 0.06); color: var(--iy-text); }
.lang-switcher__btn.is-active {
  background: var(--iy-text);
  color: #fff;
}
