/* ============================================================
   GLOBAL THEME
============================================================ */

:root {
  --deep-abyss: #0a0f1a;
  --midnight-blue: #111a2b;
  --aqua-soft: #7feaff;
  --seafoam-white: #e8faff;
  --accent: #00eaff;

  --risk-low: #2ecc71;
  --risk-med: #f1c40f;
  --risk-high: #e74c3c;

  --transition: 0.25s ease;
}

body {
  margin: 0;
  padding: 0;
  background: var(--deep-abyss);
  color: var(--seafoam-white);
  font-family: "Inter", sans-serif;
}

.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}


/* ============================================================
   CARD SECTIONS
============================================================ */

.card-section {
  background: var(--midnight-blue);
  border: 1px solid rgba(0, 234, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
}

.section-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--aqua-soft);
}


/* ============================================================
   INPUTS + BUTTONS
============================================================ */

.input-field {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 234, 255, 0.25);
  background: #0f1624;
  color: var(--seafoam-white);
  font-size: 16px;
}

.toggle-group {
  display: flex;
  gap: 10px;
}

.toggle-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 234, 255, 0.25);
  background: #0f1624;
  color: var(--aqua-soft);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

.btn-primary,
.btn-whatsapp {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-whatsapp {
  background: #25d366;
  color: #000;
}

.btn-whatsapp:hover {
  opacity: 0.85;
}


/* ============================================================
   STATION BUTTONS
============================================================ */

.station-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.station-btn {
  flex: 1 1 calc(50% - 10px);
  padding: 10px;
  border-radius: 8px;
  background: #0f1624;
  border: 1px solid rgba(0, 234, 255, 0.25);
  color: var(--aqua-soft);
  cursor: pointer;
  transition: var(--transition);
}

.station-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}


/* ============================================================
   SPINNER (iOS‑style wheel)
============================================================ */

.digital-spinner {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
  padding: 10px 0;
}

.spinner-column {
  width: 60px;
  height: 138px; /* 3 × 46px */
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: y mandatory;

  background: var(--midnight-blue);
  border: 1px solid rgba(0, 234, 255, 0.15);
  border-radius: 12px;
  position: relative;
}

.spinner-column::-webkit-scrollbar {
  display: none;
}

.spinner-inner {
  display: flex;
  flex-direction: column;
}

.spinner-value {
  height: 46px;
  line-height: 46px;
  text-align: center;
  font-size: 22px;
  color: var(--aqua-soft);
  opacity: 0.45;
  scroll-snap-align: center;
  transition: var(--transition);
}

.spinner-value.selected {
  opacity: 1;
  color: var(--seafoam-white);
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.6);
  font-weight: 600;
}

.spinner-highlight {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  width: calc(60px * 2 + 12px);
  background: rgba(0, 234, 255, 0.12);
  border: 1px solid rgba(0, 234, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.25);
  z-index: 10;
}

.spinner-fade-top,
.spinner-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 5;
}

.spinner-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--deep-abyss), transparent);
}

.spinner-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--deep-abyss), transparent);
}

.radial-time-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.time-display {
  width: 50px;
  text-align: center;
  font-size: 28px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 234, 255, 0.25);
  background: #0f1624;
  color: var(--seafoam-white);
}

.time-colon {
  font-size: 28px;
  margin: 0 8px;
}


/* ============================================================
   WEATHER TIMELINE
============================================================ */

.weather-timeline {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.weather-timeline::-webkit-scrollbar {
  display: none;
}

.timeline-block {
  min-width: 110px;
  padding: 10px;
  background: #0f1624;
  border-radius: 8px;
  border: 1px solid rgba(0, 234, 255, 0.15);
  text-align: center;
  transition: var(--transition);
}

.timeline-block.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
}


/* ============================================================
   FORECAST GRID
============================================================ */

.dive-forecast-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.forecast-box {
  flex: 1;
  min-width: 200px;
  background: #0f1624;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 234, 255, 0.15);
}

.forecast-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}


/* ============================================================
   RISK BAR
============================================================ */

#risk-container {
  margin-top: 20px;
}

#risk-label {
  font-size: 18px;
  margin-bottom: 6px;
}

#risk-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--risk-low);
  transition: var(--transition);
}


/* ============================================================
   TIDES
============================================================ */

.tide-note {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 8px;
}
