/* ==========================================================================
   Delray Beach Cam - component styles
   Class names here are used directly inside the block templates
   (templates/front-page.html, parts/header.html) via Custom HTML
   blocks and Group block additional CSS classes.
   ========================================================================== */

:root {
  --navy: #0B2E4A;
  --navy-deep: #081F33;
  --chart: #EAE3C8;
  --chart-line: rgba(11, 46, 74, 0.08);
  --ink: #16232C;
  --seafoam: #4FB6A5;
  --coral: #E8623D;
  --buoy: #E4B94F;
  --paper: #F6F3E8;
}

body {
  background-image:
    linear-gradient(var(--chart-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--chart-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Top nav ---------- */
.delray-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--buoy);
  padding: 12px 16px 10px;
}
.delray-brand {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  font-size: 17px;
  margin-bottom: 8px;
}
.delray-brand span { color: var(--buoy); }

.delray-navtabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.delray-navtabs::-webkit-scrollbar { display: none; }
.delray-navtabs a {
  flex: 0 0 auto;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}
.delray-navtabs a.is-active {
  background: var(--buoy);
  color: var(--navy-deep);
  border-color: var(--buoy);
}

/* ---------- Hero / live cam ---------- */
.delray-hero {
  position: relative;
  margin: 14px 14px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 46, 74, 0.18);
  aspect-ratio: 4 / 5;
}
@media (min-width: 640px) { .delray-hero { aspect-ratio: 16 / 8; } }

.delray-hero iframe,
.delray-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.delray-live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 46, 74, 0.75);
  padding: 6px 10px 6px 8px;
  border-radius: 100px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  z-index: 2;
}
.delray-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  animation: delray-pulse 1.6s infinite;
}
@keyframes delray-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 98, 61, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(232, 98, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 98, 61, 0); }
}

.delray-cam-label {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Instrument strip overlay - populated by weather-widget.js */
.delray-instrument-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: rgba(8, 31, 51, 0.82);
  border-top: 1px solid rgba(228, 185, 79, 0.35);
  z-index: 2;
}
.delray-instrument {
  flex: 1;
  text-align: center;
  padding: 10px 4px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.delray-instrument:last-child { border-right: none; }
.delray-instrument .delray-val {
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 600;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.delray-instrument .delray-lbl {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--buoy);
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.delray-section-title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.delray-section-title::before { content: '\25C8  '; color: var(--coral); }

/* ---------- Sun gauge ---------- */
.delray-gauge-card {
  background: var(--paper);
  border: 1px solid rgba(11, 46, 74, 0.12);
  border-radius: 10px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.delray-gauge-readout {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 11px;
  color: var(--navy);
}
.delray-gauge-readout b { display: block; font-size: 14px; font-weight: 600; }
.delray-gauge-readout .mid { text-align: center; }
.delray-gauge-readout .right { text-align: right; }

/* ---------- Hourly strip ---------- */
.delray-hourly-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.delray-hcard {
  flex: 0 0 auto;
  width: 76px;
  background: var(--paper);
  border: 1px solid rgba(11, 46, 74, 0.12);
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
}
.delray-hcard .t {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px; color: #6b7a85; margin-bottom: 6px;
}
.delray-hcard img { width: 28px; height: 28px; margin: 0 auto 2px; }
.delray-hcard .deg {
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 600; font-size: 14px; color: var(--navy);
}
.delray-hcard .rain { font-size: 9.5px; color: var(--seafoam); font-weight: 600; margin-top: 3px; }

/* ---------- Other cams ---------- */
.delray-camrow {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.delray-camcard {
  flex: 0 0 auto;
  width: 190px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(11, 46, 74, 0.12);
  background: var(--paper);
  text-decoration: none;
  display: block;
  color: inherit;
}
.delray-camcard .thumb {
  height: 110px;
  background: linear-gradient(160deg, #3a83a8, #12496a);
  position: relative;
}
.delray-camcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.delray-camcard .tag {
  position: absolute;
  bottom: 6px; left: 6px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 9px; font-weight: 600;
  color: #fff;
  background: rgba(8, 31, 51, 0.7);
  padding: 3px 7px;
  border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}
.delray-camcard .tag .d { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.delray-camcard .meta { padding: 9px 10px 11px; }
.delray-camcard .meta .name {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600; font-size: 12.5px; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25;
}
.delray-camcard .meta .dist {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px; color: #6b7a85; margin-top: 3px;
}

/* ---------- Sponsored slot ---------- */
.delray-sponsored {
  background: var(--navy);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.delray-sponsored .swatch {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--buoy); flex: 0 0 auto;
}
.delray-sponsored .name {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600; color: #fff; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.delray-sponsored .tagline {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10.5px; color: rgba(255, 255, 255, 0.65); margin-top: 3px;
}

/* Keep anchored camera cards visible below the sticky navigation. */
#atlantic-dunes {
  scroll-margin-top: 120px;
}

/* delray-editable-footer */
.delray-site-footer {
  margin-top: 34px;
  padding: 30px 18px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-deep);
  border-top: 3px solid var(--buoy);
}

.delray-footer-main {
  gap: 28px;
}

.delray-footer-brand {
  margin: 0 0 7px;
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.delray-footer-description {
  max-width: 480px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.delray-footer-navigation a {
  color: var(--buoy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.delray-footer-navigation a:hover,
.delray-footer-navigation a:focus {
  color: #fff;
  text-decoration: underline;
}

.delray-footer-divider {
  margin: 24px 0 16px;
  border-color: rgba(255, 255, 255, 0.16);
}

.delray-footer-bottom {
  gap: 12px 24px;
  font-family: var(--wp--preset--font-family--mono);
  font-size: 10px;
  line-height: 1.6;
}

.delray-footer-bottom p {
  margin: 0;
}

@media (max-width: 700px) {
  .delray-footer-main,
  .delray-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .delray-footer-navigation {
    justify-content: flex-start;
  }
}
