/* ─── View Transitions ─────────────────────────── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.25s ease-out;
}

::view-transition-new(root) {
  animation: fade-in 0.35s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ─── Loading Overlay ──────────────────────────── */
#page-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#page-loading.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(15, 118, 110, 0.15);
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Vue mount guard ──────────────────────────── */
[v-cloak] {
  display: none !important;
}

/* ─── Shared Nav Vue Component Styles ──────────── */
.nav-brand {
  font-size: 0.95rem;
  font-weight: 900;
  color: rgb(30, 41, 59);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav-brand:hover {
  background: rgb(241, 245, 249);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgb(71, 85, 105);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.12s;
}

.nav-link:hover {
  background: rgb(241, 245, 249);
}

.nav-link.active {
  background: rgb(224, 242, 254);
  color: rgb(12, 74, 110);
}

:root {
  --nav-height: 57px;
}

body {
  padding-top: var(--nav-height);
  margin: 0;
}

/* ─── Hamburger Menu ──────────────────────────── */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
  transition: background 0.15s;
}

.hamburger:hover {
  background: rgb(241, 245, 249);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: rgb(71, 85, 105);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── Donation Modal ──────────────────────────── */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.donate-modal.hidden {
  display: none;
}

.donate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.donate-card {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  width: min(880px, calc(100% - 28px));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.donate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(254, 243, 199, 0.8));
}

.donate-title {
  font-size: 1.05rem;
  font-weight: 950;
  color: rgb(120, 53, 15);
}

.donate-x {
  appearance: none;
  border: 1px solid rgba(120, 53, 15, 0.18);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  color: rgb(120, 53, 15);
}

.donate-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 16px;
}

.donate-lede {
  margin: 0;
  color: rgb(51, 65, 85);
  font-weight: 800;
  line-height: 1.6;
}

.donate-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.donate-btn {
  appearance: none;
  border: 1px solid rgba(120, 53, 15, 0.18);
  background: rgb(245, 158, 11);
  color: rgb(69, 26, 3);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
}

.donate-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: rgb(51, 65, 85);
}

.donate-qr-wrap {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
}

.donate-qr {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: white;
}

.donate-qr-caption {
  font-size: 0.9rem;
  font-weight: 900;
  color: rgb(71, 85, 105);
}

@media (max-width: 760px) {
  .donate-card {
    top: 9%;
  }
  .donate-body {
    grid-template-columns: 1fr;
  }
  .donate-qr {
    width: 200px;
    height: 200px;
  }
}
