/* StationCast Pro: Forecast + Alerts styling (matches StationCast 1.6.x look) */
.stationcast-alerts{margin:14px 0 0 0;padding:12px 14px;border:1px solid rgba(0,0,0,0.08);border-radius:14px;background:#fff;}
.stationcast-alerts-title{font-weight:700;margin-bottom:8px;}
.stationcast-alert{padding:10px 12px;border-radius:12px;background:rgba(255,80,80,0.08);border:1px solid rgba(255,80,80,0.18);margin-bottom:8px;}
.stationcast-alert.none{background:rgba(0,0,0,0.03);border-color:rgba(0,0,0,0.06);}
.stationcast-alert:last-child{margin-bottom:0;}
.stationcast-alert.sev-minor{background:rgba(255,193,7,0.10);border-color:rgba(255,193,7,0.25);}
.stationcast-alert.sev-moderate{background:rgba(255,152,0,0.10);border-color:rgba(255,152,0,0.25);}
.stationcast-alert.sev-severe{background:rgba(244,67,54,0.10);border-color:rgba(244,67,54,0.25);}
.stationcast-alert.sev-extreme{background:rgba(183,28,28,0.12);border-color:rgba(183,28,28,0.30);}

.stationcast-alert-link{margin-top:8px;font-size:13px;}
.stationcast-alert-link a{text-decoration:none;font-weight:600;}
.stationcast-alert-details summary{cursor:pointer;font-weight:600;margin-top:8px;}
.stationcast-alert-desc{margin-top:8px;line-height:1.35;white-space:normal;}

.stationcast-forecast{margin:14px 0 0 0;padding:12px 14px;border:1px solid rgba(0,0,0,0.08);border-radius:14px;background:#fff;}
.stationcast-forecast-title{font-weight:700;margin-bottom:10px;}
.stationcast-forecast-cards{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;}
.stationcast-forecast-card{min-width:108px;flex:0 0 auto;padding:10px 10px;border:1px solid rgba(0,0,0,0.06);border-radius:14px;background:rgba(0,0,0,0.02);} 
.stationcast-forecast-day{font-weight:700;}
.stationcast-forecast-date{opacity:0.75;font-size:12px;margin-top:2px;}
.stationcast-forecast-temps{margin-top:8px;font-size:16px;font-weight:700;display:flex;align-items:baseline;}
.stationcast-forecast-temps .slash{opacity:0.55;font-weight:600;}
.stationcast-forecast-temps .lo{opacity:0.6;font-weight:700;}
.stationcast-forecast-temps .unit{opacity:0.7;font-size:12px;margin-left:4px;font-weight:600;}
.stationcast-forecast-pop{margin-top:6px;font-weight:700;font-size:12px;color:var(--stationcast-accent,#1f7a1f);} 
.stationcast-forecast-cond{margin-top:6px;font-size:12px;opacity:0.85;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.stationcast-dark .stationcast-alerts,.stationcast-dark .stationcast-forecast{background:rgba(255,255,255,0.04);border-color:rgba(255,255,255,0.10);} 
.stationcast-dark .stationcast-forecast-card{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.10);} 

/* Compact empty-state alerts */
.stationcast-alerts.stationcast-alerts-empty{padding:10px 14px;}
.stationcast-alerts.stationcast-alerts-empty .stationcast-alerts-title{margin-bottom:6px;}
.stationcast-alerts.stationcast-alerts-empty .stationcast-alert.none{padding:8px 10px;border-radius:12px;font-size:13px;}

.stationcast-alerts-sub{font-size:12px;opacity:.75;margin:-4px 0 10px 0;}


/* ===== StationCast Pro Alerts Styling Upgrade ===== */

.stationcast-alerts-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px;
}

.sc-alerts-header {
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.04);
}

.sc-alerts-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.sc-alerts-subtitle {
  margin-top: 6px;
  opacity: 0.75;
  font-size: 0.95rem;
}

.stationcast-alert {
  position: relative;
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin: 12px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.stationcast-alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: rgba(0,0,0,0.18);
}

.sc-alert-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.sc-alert-event {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-alert-icon {
  font-size: 1.25rem;
}

.sc-alert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.sc-badge {
  font-size: 0.82rem;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  white-space: nowrap;
}

.stationcast-alert p,
.stationcast-alert .stationcast-alert-desc {
  margin: 10px 0 0;
  line-height: 1.45;
}

.sc-alert-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.15);
}

.sc-alert-back {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: none;
}

.stationcast-alert.sc-sev-extreme::before { background: #7a0019; }
.stationcast-alert.sc-sev-severe::before  { background: #b00020; }
.stationcast-alert.sc-sev-moderate::before{ background: #c25a00; }
.stationcast-alert.sc-sev-minor::before   { background: #8a7a00; }
.stationcast-alert.sc-sev-unknown::before { background: rgba(0,0,0,0.22); }

.stationcast-alert.sc-sev-severe,
.stationcast-alert.sc-sev-extreme {
  border-color: rgba(176, 0, 32, 0.25);
}

@media (prefers-color-scheme: dark) {
  .sc-alerts-header { background: rgba(255,255,255,0.06); }
  .stationcast-alert {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  }
  .sc-badge {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
  }
}


/* ===== Premium badge colors (Warning / Watch / Advisory) ===== */
.sc-badge.sc-badge-type { font-weight: 500; }

.sc-badge.sc-type-warning {
  background: rgba(176, 0, 32, 0.12);
  border-color: rgba(176, 0, 32, 0.35);
}

.sc-badge.sc-type-watch {
  background: rgba(194, 90, 0, 0.12);
  border-color: rgba(194, 90, 0, 0.35);
}

.sc-badge.sc-type-advisory {
  background: rgba(138, 122, 0, 0.12);
  border-color: rgba(138, 122, 0, 0.35);
}

.sc-badge.sc-type-statement {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
}

/* ===== Tasteful pulse/glow for Severe/Extreme ===== */
@keyframes sc-alert-pulse {
  0%   { box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
  50%  { box-shadow: 0 10px 26px rgba(176, 0, 32, 0.18); }
  100% { box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
}

.stationcast-alert.sev-severe,
.stationcast-alert.sev-extreme {
  animation: sc-alert-pulse 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .stationcast-alert.sev-severe,
  .stationcast-alert.sev-extreme {
    animation: none;
  }
}


/* ===== Clean Newsroom Style Adjustments ===== */

/* Softer, calmer headline */
.sc-alert-event {
  font-weight: 600 !important;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

/* Remove aggressive borders/glow feeling */
.stationcast-alert {
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

/* Neutral badge styling */
.sc-badge {
  background: #f4f4f4;
  border: 1px solid #e2e2e2;
  font-weight: 500;
}

/* Subtle severity stripe colors */
.stationcast-alert.sc-sev-extreme::before { background: #7a1a1a; }
.stationcast-alert.sc-sev-severe::before  { background: #a12a2a; }
.stationcast-alert.sc-sev-moderate::before{ background: #c58a2c; }
.stationcast-alert.sc-sev-minor::before   { background: #b5a642; }

/* Calm header styling */
.sc-alerts-header {
  background: #f7f7f7;
  border: 1px solid #ececec;
}

.sc-alerts-title {
  font-weight: 600;
}

/* Remove any strong animation if present */
.stationcast-alert.sc-sev-severe,
.stationcast-alert.sc-sev-extreme {
  animation: none !important;
}


/* ===== Clean Newsroom Style (Enforced Override) ===== */

/* Force calmer headline weight overriding theme styles */
.stationcast-alert .sc-alert-event,
.stationcast-alert .sc-alert-event h1,
.stationcast-alert .sc-alert-event h2,
.stationcast-alert .sc-alert-event h3,
.stationcast-alert h1,
.stationcast-alert h2,
.stationcast-alert h3 {
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.2px !important;
}

/* Ensure no aggressive bolding sneaks in */
.stationcast-alert strong {
  font-weight: 600 !important;
}


/* ===== Newsroom v3 Patch: don't affect badges ===== */

/* Keep headline calm, but do NOT force bold/weight on other elements */
.stationcast-alert .sc-alert-badges,
.stationcast-alert .sc-alert-badges *,
.stationcast-alert .sc-badge {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

/* If theme targets strong tags, keep them normal inside badges */
.stationcast-alert .sc-alert-badges strong,
.stationcast-alert .sc-badge strong {
  font-weight: 500 !important;
}

/* Headline only */
.stationcast-alert .sc-alert-event,
.stationcast-alert .sc-alert-event h1,
.stationcast-alert .sc-alert-event h2,
.stationcast-alert .sc-alert-event h3 {
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.2px !important;
}


/* ===== Newsroom v4 Patch: force ALL badge text to normal weight ===== */
.stationcast-alert .sc-badge,
.stationcast-alert .sc-badge *,
.stationcast-alert .sc-badge b,
.stationcast-alert .sc-badge strong,
.stationcast-alert .sc-alert-badges,
.stationcast-alert .sc-alert-badges * {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Specifically target the type badge if present */
.stationcast-alert .sc-badge-type,
.stationcast-alert .sc-badge-type * {
  font-weight: 500 !important;
}


/* ===== Newsroom v5 Patch: badge type should NOT be bold ===== */
.stationcast-alert .sc-badge.sc-badge-type,
.stationcast-alert .sc-badge.sc-badge-type * {
  font-weight: 500 !important;
}


/* ===== Clean Newsroom Balanced Badge System ===== */

/* Base badge style */
.sc-badge {
  font-weight: 500 !important;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
}

/* Type badges (subtle tint) */
.sc-badge.sc-type-advisory {
  background: #f3ead2;
  border-color: #d9c58c;
  color: #6a5a2a;
  font-weight: 600 !important;
}

.sc-badge.sc-type-watch {
  background: #f6e4d8;
  border-color: #e0b89a;
  color: #7a3e1d;
  font-weight: 600 !important;
}

.sc-badge.sc-type-warning {
  background: #f4dcdc;
  border-color: #d9a3a3;
  color: #7a1f1f;
  font-weight: 600 !important;
}

/* Severity badge with colored dot indicator */
.sc-badge.sc-badge-sev {
  position: relative;
  padding-left: 18px;
}

.sc-badge.sc-badge-sev::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
}

/* Severity color mapping */
.sc-sev-extreme .sc-badge-sev::before { background: #7a1a1a; }
.sc-sev-severe .sc-badge-sev::before  { background: #a12a2a; }
.sc-sev-moderate .sc-badge-sev::before{ background: #c58a2c; }
.sc-sev-minor .sc-badge-sev::before   { background: #b5a642; }

/* Urgency badge remains neutral */
.sc-badge.sc-badge-urg {
  background: #f0f0f0;
  border-color: #e0e0e0;
  color: #444;
}

