/* ============================================================
   Live Harbor Cam panel (amenities.html)
   A looping local video dressed as a "live cam" overlay — LIVE
   badge + pulsing dot, a genuinely-live visitor local clock, and
   a bottom location chip. See CONTENT_NOTES.md for what's real
   (the clock) vs. simulated (the "live" label on a preview loop).
   Reuses site tokens (--hv-*, --radius-lg, --shadow-lift) rather
   than inventing a parallel palette. Kept in its own file per
   file-ownership rules for this workstream.
   ============================================================ */

.live-cam-panel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--hv-deep);
  box-shadow: var(--shadow-lift);
}
@media (max-width: 640px) {
  .live-cam-panel { aspect-ratio: 4 / 3; }
}

.live-cam-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--hv-deep);
}

/* Bottom + top scrim so the overlay chrome stays legible over any frame
   of the footage, matching the .hv-photo bottom-vignette convention. */
.live-cam-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 14, 13, 0.5) 0%, rgba(8, 14, 13, 0) 26%),
    linear-gradient(0deg, rgba(8, 14, 13, 0.72) 0%, rgba(8, 14, 13, 0) 32%);
}

.live-cam-chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(10, 22, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: var(--hv-white);
}

.live-cam-badge {
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-cam-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hv-error);
  box-shadow: 0 0 0 0 rgba(184, 69, 42, 0.5);
  animation: live-cam-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes live-cam-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 69, 42, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(184, 69, 42, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-cam-dot { animation: none; }
}

.live-cam-clock {
  top: var(--space-sm);
  right: var(--space-sm);
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
  max-width: 46%;
}
.live-cam-clock-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: normal;
}
.live-cam-clock-time {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.live-cam-location {
  bottom: var(--space-sm);
  left: var(--space-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-cam-caption {
  max-width: 640px;
  margin: var(--space-sm) auto 0;
  text-align: center;
  color: var(--hv-teal);
  font-size: 0.92rem;
}

@media (max-width: 480px) {
  .live-cam-chip { padding: 0.32rem 0.55rem; font-size: 0.68rem; }
  .live-cam-clock-time { font-size: 0.95rem; }
  .live-cam-clock-label { font-size: 0.58rem; }
  .live-cam-location { font-size: 0.62rem; }
}
