/* NWBC Varroa Watch — shared design tokens + utilities
   Built on top of tokens.css. No third-party utility frameworks. */

:root {
  --vw-band-0: #22c55e;
  --vw-band-1: #facc15;
  --vw-band-2: #f97316;
  --vw-band-3: #dc2626;
  --vw-band-empty: #94a3b8;

  --vw-radius: 14px;
  --vw-radius-sm: 8px;
  --vw-shadow: 0 6px 20px rgba(20, 12, 4, 0.12);
  --vw-shadow-soft: 0 2px 8px rgba(20, 12, 4, 0.08);
  --vw-border: rgba(0, 0, 0, 0.08);
}

/* ---------- buttons (Varroa-specific, complements .al-btn) ---------- */

.vw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--vw-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.05s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vw-btn:active {
  transform: translateY(1px);
}
.vw-btn--primary {
  background: #c8961c;
  color: #1d1605;
  box-shadow: var(--vw-shadow-soft);
}
.vw-btn--primary:hover {
  background: #d9a82c;
}
.vw-btn--ghost {
  background: transparent;
  color: #c8961c;
  border-color: rgba(200, 150, 28, 0.4);
}
.vw-btn--danger {
  background: #dc2626;
  color: #fff;
}
.vw-btn--full {
  width: 100%;
}
.vw-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- legend pill ---------- */

.vw-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a2010;
  border: 1px solid var(--vw-border);
}
.vw-legend__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ---------- status pill ---------- */

.vw-status {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vw-status--draft {
  background: #fef3c7;
  color: #92400e;
}
.vw-status--published {
  background: #dcfce7;
  color: #14532d;
}

/* ---------- toast ---------- */

.vw-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: rgba(20, 12, 4, 0.92);
  color: #fbe9c0;
  padding: 0.85rem 1.25rem;
  border-radius: var(--vw-radius);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--vw-shadow);
  z-index: 9000;
  max-width: min(90vw, 420px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.vw-toast.is-visible {
  opacity: 1;
}
.vw-toast--error {
  background: #7f1d1d;
  color: #fee2e2;
}

/* ---------- card ---------- */

.vw-card {
  background: #fff;
  border: 1px solid var(--vw-border);
  border-radius: var(--vw-radius);
  box-shadow: var(--vw-shadow-soft);
  padding: 1.25rem;
}

/* ---------- mobile sticky CTA ---------- */

.vw-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--vw-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  z-index: 800;
}
@media (max-width: 720px) {
  .vw-sticky-cta {
    display: block;
  }
  body.has-vw-sticky {
    padding-bottom: 80px;
  }
}

/* ---------- a11y helpers ---------- */

.vw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
