/* Weather and beach conditions widget on What's Happening. */

.bc-widget { margin-bottom: 56px; }

.bc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bc-card {
  background: white;
  border: 1px solid var(--border);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
}

.bc-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--sand);
  padding: 4px 9px;
  border-top: 2px solid var(--ocean);
  display: inline-block;
  margin-bottom: 14px;
  width: fit-content;
}
.bc-card--weather .bc-kicker { border-top-color: var(--ocean); }
.bc-card--water .bc-kicker { border-top-color: var(--teal); }
.bc-card--tide .bc-kicker { border-top-color: var(--coral); }

.bc-temp {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 400;
  color: var(--deep);
  line-height: 1;
}
.bc-temp small {
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-left: 2px;
}

.bc-cond {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-top: 8px;
  line-height: 1.3;
}

.bc-meta {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.bc-forecast {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bc-period {
  display: grid;
  grid-template-columns: minmax(6.5em, 1.1fr) auto minmax(0, 1.5fr);
  gap: 8px;
  align-items: baseline;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(28, 43, 53, 0.06);
}
.bc-period:last-child { border-bottom: none; padding-bottom: 0; }
.bc-period-name { font-weight: 500; color: var(--text); }
.bc-period-temp { font-weight: 600; color: var(--deep); white-space: nowrap; }
.bc-period-fc { font-weight: 300; color: var(--muted); text-align: right; line-height: 1.35; }

.bc-note {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 4px;
}

.bc-samples {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.bc-samples li {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.bc-samples strong { font-weight: 500; color: var(--deep); }
.bc-samples .bc-sample-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.bc-level {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--deep);
  margin-top: 2px;
  line-height: 1.35;
}

.bc-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-top: 1px solid var(--border);
}
.bc-updated {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.bc-src {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ocean);
  transition: color 0.2s;
}
.bc-src:hover { color: var(--deep); }

.bc-card.is-loading,
.bc-card.is-error {
  min-height: 200px;
}
.bc-status {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  margin: 4px 0 12px;
}
.bc-card.is-error .bc-status { color: var(--text); }

@media (max-width: 960px) {
  .bc-grid { grid-template-columns: 1fr; }
  .bc-card { min-height: 0; }
}

@media (max-width: 480px) {
  .bc-widget { margin-bottom: 40px; }
  .bc-card { padding: 18px 16px 14px; }
  .bc-period { grid-template-columns: 1fr auto; }
  .bc-period-fc { grid-column: 1 / -1; text-align: left; }
}
