/* ============================================================
   IWW Marine & Boating — v2.0.0
   Covers: marine conditions, forecast, tides, fishing reports
   ============================================================ */

/* ── Core widget wrapper ── */
.iww-mar-wrap { font-family: 'Montserrat', sans-serif; width: 100%; max-width: 1200px; margin: 0 auto;  box-sizing: border-box;}

/* ── Banner strip ── */
.iww-mar-banner {
  background: #fff;
  border-bottom: 3px solid #4ECFB0;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 16px 16px 0 0;
}
.iww-mar-banner-title  { display: flex; align-items: center; gap: 12px; }
.iww-mar-diamond {
  width: 16px; height: 16px;
  background: #4ECFB0;
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(78, 207, 176, .5);
}
.iww-mar-banner-text   { font-size: 15px; font-weight: 900; color: #1C2F68; text-transform: uppercase; letter-spacing: .13em; }
.iww-mar-banner-right  { font-size: 10px; color: #5a7aaa; font-weight: 600; }

/* ── Dark inner panel ── */
.iww-mar-inner {
  background: radial-gradient(ellipse at 60% 0%, #1a3a6e 0%, #0d1f3c 100%);
  border-radius: 0 0 16px 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
#iww-mf-zip {
  background-color: #34507d !important;
  color: #fff;
}
/* ── Waterway selector ── */
.iww-mar-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid #4ECFB0;
  border-radius: 50px;
  padding: 10px 10px 10px 20px;
  max-width: 600px;
  margin: 0 auto 20px;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}
.iww-mar-selector input {
  flex: 1; min-width: 80px;
  border: none; outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600; color: #fff;
}
.iww-mar-selector input::placeholder { color: rgba(255, 255, 255, .4); font-weight: 400; }
.iww-mar-selector select {
  flex: 2; min-width: 160px;
  border: none; outline: none;
  background: #34507d;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 600; color: #fff; cursor: pointer;
}
.iww-mar-selector select option { background: #34507d; color: #fff; }
.iww-mar-or    { color: rgba(255, 255, 255, .4); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.iww-mar-btn {
  background: #4ECFB0; color: #1C2F68;
  border: none; border-radius: 40px;
  padding: 8px 20px;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 800;
  cursor: pointer; white-space: nowrap; transition: background .15s; flex-shrink: 0;
}
.iww-mar-btn:hover    { background: #2DAF90; }
.iww-mar-btn:disabled { opacity: .6; cursor: wait; }

/* ── Location bar ── */
.iww-mar-loc-bar  { text-align: center; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); margin-bottom: 16px; }
.iww-mar-loc-name { color: #4ECFB0; }

/* ── Alert banners ── */
.iww-mar-alert {
  border-radius: 10px; padding: 11px 16px; margin-bottom: 12px;
  border-left: 4px solid; display: flex; gap: 10px; align-items: flex-start;
}
.iww-mar-alert.extreme,
.iww-mar-alert.severe   { background: rgba(127, 29, 29, .5);  border-color: #ef4444; color: #fecaca; }
.iww-mar-alert.moderate { background: rgba(120, 53, 15, .5);  border-color: #f59e0b; color: #fde68a; }
.iww-mar-alert.minor,
.iww-mar-alert.unknown  { background: rgba(30, 58, 95, .55);  border-color: #5BC8F5; color: #bfdbfe; }
.iww-mar-alert-event    { font-size: 12px; font-weight: 800; }
.iww-mar-alert-headline { font-size: 11px; font-weight: 600; line-height: 1.5; opacity: .85; }

/* ── Conditions grid ── */
.iww-mar-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.iww-mar-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(78, 207, 176, .25);
  border-radius: 14px; padding: 16px 14px 14px;
  position: relative; display: flex; flex-direction: column; gap: 5px;
  backdrop-filter: blur(6px);
}
.iww-mar-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #4ECFB0 0%, #5BC8F5 100%);
  border-radius: 3px 0 0 3px;
}
.iww-mar-card-label { font-size: 9px; font-weight: 800; color: #4ECFB0; text-transform: uppercase; letter-spacing: .14em; }
.iww-mar-card-val   { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.1; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.iww-mar-card-sub   { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .65); margin-top: auto; padding-top: 4px; }
.iww-mar-sea-badge  { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; color: #fff; }

/* ── Tonight / Tomorrow forecast periods ── */
.iww-mar-periods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.iww-mar-period  {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(78, 207, 176, .2);
  border-radius: 12px; padding: 14px 16px;
}
.iww-mar-period-label { font-size: 9px; font-weight: 800; color: #4ECFB0; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.iww-mar-period-text  { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .8); line-height: 1.6; }

/* ── Raw NWS text toggle ── */
.iww-mar-raw-toggle {
  font-size: 10px; font-weight: 700; color: #4ECFB0; cursor: pointer;
  background: none; border: none; font-family: 'Montserrat', sans-serif;
  padding: 0 0 8px 0; display: block; text-transform: uppercase; letter-spacing: .06em;
}
.iww-mar-raw-toggle:hover { color: #2DAF90; }
.iww-mar-raw {
  display: none;
  background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 12px 14px;
  font-size: 10px; color: rgba(255, 255, 255, .5); line-height: 1.7;
  white-space: pre-wrap; font-family: monospace; margin-bottom: 16px;
}
.iww-mar-raw.open { display: block; }

/* ── Source note ── */
.iww-mar-source-note { text-align: center; font-size: 10px; font-style: italic; color: rgba(255, 255, 255, .4); margin-bottom: 14px; }

/* ── Tide cards ── */
.iww-mar-tides { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.iww-mar-tide-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(78, 207, 176, .2);
  border-radius: 12px; padding: 14px;
}
.iww-mar-tide-type { font-size: 9px; font-weight: 800; color: #4ECFB0; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.iww-mar-tide-time { font-size: 18px; font-weight: 800; color: #fff; }
.iww-mar-tide-ft   { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .65); margin-top: 2px; }
.iww-mar-tide-row  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.iww-mar-tide-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(78, 207, 176, .2);
  border-radius: 10px; padding: 10px 16px;
  display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 120px;
}
.iww-mar-tide-stat-label { font-size: 9px; font-weight: 800; color: #4ECFB0; text-transform: uppercase; letter-spacing: .1em; }
.iww-mar-tide-stat-val   { font-size: 15px; font-weight: 800; color: #fff; }

/* ── Fishing report cards ── */
.iww-mar-fish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.iww-mar-fish-card {
  background: #0d2040;
  border: 1px solid rgba(78, 207, 176, .2);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.iww-mar-fish-card:hover { transform: translateY(-3px); border-color: #4ECFB0; }
.iww-mar-fish-img         { width: 100%; height: 140px; object-fit: cover; display: block; }
.iww-mar-fish-placeholder {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, #0d2040 0%, #1a3a6e 100%);
  display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.iww-mar-fish-body        { padding: 14px 14px 16px; }
.iww-mar-fish-area        { font-size: 10px; font-weight: 800; color: #4ECFB0; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.iww-mar-fish-headline    { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.iww-mar-fish-body-text   { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .65); line-height: 1.6; margin-bottom: 10px; }
.iww-mar-fish-updated     { font-size: 10px; font-weight: 700; color: rgba(78, 207, 176, .7); }

/* ── Species pills ── */
.iww-mar-species      { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; justify-content: center;}
.iww-mar-species-pill {
  background: rgba(78, 207, 176, .15);
  border: 1px solid rgba(78, 207, 176, .35);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; color: #4ECFB0;
}

/* ── Safety advisory ── */
.iww-mar-safety       { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .3); border-radius: 12px; padding: 16px 20px; margin-top: 4px; }
.iww-mar-safety-title { font-size: 12px; font-weight: 800; color: #fca5a5; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.iww-mar-safety-text  { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .75); line-height: 1.6; }
.iww-mar-safety-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.iww-mar-safety-link  {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px; padding: 6px 14px; font-size: 11px; font-weight: 700;
  color: #fff; text-decoration: none; transition: background .15s;
}
.iww-mar-safety-link:hover { background: rgba(255, 255, 255, .2); }

/* ── Loading / error ── */
.iww-mar-loading { text-align: center; padding: 30px; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; }
.iww-mar-error   { text-align: center; padding: 20px; color: rgba(255, 255, 255, .6); font-size: 13px; border: 1px dashed rgba(78, 207, 176, .3); border-radius: 10px; }

@keyframes iww-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════
   FISHING REPORT — decorative section wrapper
   (used by [iww_fishing_report] above the live data panel)
═══════════════════════════════════════════════════════════════════ */
.iww-fish-section {
  background: #0b1f3a;
  padding: 60px 20px 0;
  font-family: 'Montserrat', sans-serif;
  position: relative; overflow: hidden;
}
.iww-fish-section::before {
  content: ''; position: absolute; top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Decorative header ── */
.iww-fish-header { text-align: center; margin-bottom: 36px; position: relative; z-index: 1; }
.iww-fish-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 100px; padding: 7px 20px;
  color: #f5a623; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px;
}
.iww-fish-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff; margin: 0 0 12px; letter-spacing: -0.02em;
}
.iww-fish-title em { font-style: normal; color: #f5a623; }
.iww-fish-subtitle {
  color: rgba(255, 255, 255, 0.5); font-size: 0.95rem; font-weight: 300;
  max-width: 540px; margin: 0 auto; line-height: 1.7;
}

/* ── Season label ── */
.iww-fish-season-label {
  color: rgba(255, 255, 255, 0.3); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px; text-align: center;
  position: relative; z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .iww-mar-conditions     { grid-template-columns: repeat(2, 1fr); }
  .iww-mar-periods        { grid-template-columns: 1fr; }
  .iww-mar-fish-grid      { grid-template-columns: 1fr 1fr; }
  .iww-mar-selector       { border-radius: 14px; }
  .iww-fish-section       { padding: 40px 16px 0; }
  .iww-mar-wrap {padding: 0px !important;}
  .iww-mar-conditions{grid-template-columns:none !important;}
}
@media (max-width: 400px) {
  .iww-mar-fish-grid      { grid-template-columns: 1fr; }
   .iww-mar-wrap {padding: 0px !important;}
  .iww-mar-conditions{grid-template-columns:none !important;}
}
