/* ── STICKY HEADER ───────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  transition: background var(--transition), border-color var(--transition);
}

/* ── LOGO ─────────────────────────────────────────────────────────────────── */
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
}
.logo .rainbow-letter { display: inline-block; }
.logo .dot            { color: var(--text); }
.logo span.accent     { color: var(--accent); }

/* ── HEADER SEARCH ────────────────────────────────────────────────────────── */
.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.15);
}
.header-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
}

/* ── HEADER RIGHT CLUSTER ─────────────────────────────────────────────────── */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform 0.15s;
  font-size: 1rem;
}
.theme-btn:hover { background: var(--hover); transform: scale(1.08); }

/* Generic header button used in admin/submit/event pages */
.header-btn {
  padding: 7px 16px;
  border-radius: 50px;
  border: var(--border-width, 1.5px) solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.header-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Admin badge next to logo */
.admin-badge {
  background: var(--text);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
}

/* ── INSTALL BUTTON IN HEADER ─────────────────────────────────────────────── */
#headerInstallBtn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--accent);
  background: var(--hover);
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform 0.15s;
  animation: headerInstallPulse 2.5s ease-in-out 2s 3;
}
#headerInstallBtn:hover { background: var(--accent); color: #fff; transform: scale(1.04); }
#headerInstallBtn.shown { display: flex; }

@keyframes headerInstallPulse {
  0%,  100% { box-shadow: 0 0 0 0 rgba(232, 165, 152, 0); }
  50%        { box-shadow: 0 0 0 5px rgba(232, 165, 152, 0.35); }
}
@media (max-width: 480px) {
  #headerInstallBtn span.install-label { display: none; }
}
