/* ============================================================
   COMFORT MODULE — CLEAN + STABLE VERSION
   ============================================================ */

.comfort-module {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--module-radius);
  padding: var(--module-padding);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);

  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.comfort-module:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   HEADER (CLICKABLE AREA)
   ============================================================ */

.comfort-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  cursor: pointer;
}

.comfort-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.comfort-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.comfort-label {
  color: #f0b777;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.comfort-text {
  color: #ffb866;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.28;
}

.comfort-sub {
  color: #c8d3ff;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* ============================================================
   SCORE
   ============================================================ */

.comfort-score-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comfort-score {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Score colors */
.comfort-score.great { color: #4ade80; }
.comfort-score.good { color: #a3e635; }
.comfort-score.okay { color: #facc15; }
.comfort-score.poor { color: #fb923c; }
.comfort-score.bad { color: #f87171; }
.comfort-score.neutral { color: #9ca3af; }

/* subtle glow for great */
.comfort-score.great {
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

/* ============================================================
   INFO BUTTON
   ============================================================ */

.comfort-info-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
}

.comfort-info-btn:hover {
  opacity: 1;
}

/* ============================================================
   EXPANSION PANEL (ACCORDION CORE)
   ============================================================ */

.comfort-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);

  transition:
    max-height 0.4s ease,
    opacity 0.25s ease,
    transform 0.25s ease;

  margin-top: 0;
  border-top: 1px solid transparent;
  padding-top: 0;
}

/* ACTIVE STATE */
.comfort-module.active .comfort-expand {
  max-height: 1000px; /* large enough */
  opacity: 1;
  transform: translateY(0) scale(1);

  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* subtle emphasis when open */
.comfort-module.active {
  backdrop-filter: blur(6px);
}

/* ============================================================
   EXPAND CONTENT
   ============================================================ */

.comfort-expand-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.comfort-expand-label {
  color: #c8d3ff;
  font-size: 0.78rem;
}

.comfort-expand-value {
  color: #ffb866;
  font-size: 0.9rem;
  font-weight: 600;
}

.comfort-extra-line {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #c8d3ff;
  line-height: 1.35;
}

/* ============================================================
   EXPLAINER (SAFE — WON’T BREAK ACCORDION)
   ============================================================ */

.comfort-explainer {
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.65;
  max-width: 260px;
}

/* Only hide when explicitly hidden */
.comfort-explainer.hidden {
  display: none !important;
}

/* ============================================================
   SUPPORT TEXT + BULLETS
   ============================================================ */

.comfort-support {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.comfort-bullets {
  margin-top: 6px;
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   FUTURE COMFORT (NEXT 6 HOURS) — CLEAN + ENHANCED
   ============================================================ */

.next6-module {
  margin-top: 1rem;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */

.next6-header {
  display: inline-block;
  position: relative; /* FIXES underline */

  color: #fff;
  font-weight: 600;

  text-shadow: 0 2px 6px rgba(0,0,0,0.75);
  background: rgba(0,0,0,0.35);

  padding: 4px 10px;
  border-radius: 6px;

  margin-bottom: 6px;
}

.next6-header::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: -2px;

  width: 40px;
  height: 2px;

  background: linear-gradient(
    to right,
    rgba(200, 211, 255, 0.7),
    rgba(200, 211, 255, 0)
  );
}

/* ------------------------------------------------------------
   TREND CHIP (FIXES VISIBILITY ISSUE)
------------------------------------------------------------ */

.next6-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.75rem;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 999px;

  margin-bottom: 8px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);

  backdrop-filter: blur(4px);
}

/* Trend states */
.next6-trend-chip.improving {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.next6-trend-chip.worsening {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.next6-trend-chip.steady {
  color: #c8d3ff;
  border-color: rgba(200, 211, 255, 0.25);
}

/* ------------------------------------------------------------
   SCROLL STRIP
------------------------------------------------------------ */

.next6-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;

  position: relative;
  scroll-snap-type: x mandatory;
}

/* smooth scroll feel */
.next6-strip::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------
   HOUR TILE
------------------------------------------------------------ */

.next6-hour {
  min-width: 72px;
  text-align: center;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;

  padding: 10px 6px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  scroll-snap-align: start;

  transition: transform 0.2s ease, background 0.2s ease;
}

.next6-hour:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------------------
   CONTENT
------------------------------------------------------------ */

.next6-hour-label {
  font-size: 0.72rem;
  color: #c8d3ff;
  opacity: 0.9;
}

.next6-hour-emoji {
  font-size: 1.4rem;
}

.next6-hour-temp {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f5f5f5;
}

/* score colors reused */
.next6-hour-score.great { color: #4ade80; }
.next6-hour-score.good { color: #a3e635; }
.next6-hour-score.okay { color: #facc15; }
.next6-hour-score.poor { color: #fb923c; }
.next6-hour-score.bad { color: #f87171; }
.next6-hour-score.neutral { color: #9ca3af; }

.next6-hour-factor {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ------------------------------------------------------------
   EDGE FADE (cleaner)
------------------------------------------------------------ */

.next6-strip::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 36px;

  pointer-events: none;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,0.45)
  );
}
/* ============================================================
   LAYOUT
   ============================================================ */

#comfort-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.comfort-left-col,
.comfort-right-col {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 640px) {
  #comfort-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* BASE */
.comfort-mode-note {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;

  color: rgba(200, 211, 255, 0.75); /* 🔥 THIS FIXES YOUR ISSUE */
}

/* HEADER CONTAINER */
.next6-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

/* SMALL LABEL (matches comfort-label but softer) */
.next6-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: rgba(200, 211, 255, 0.55); /* softer than comfort-label */
}

/* MAIN TEXT (matches comfort-text but toned down) */
.next6-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;

  color: #e6ecff; /* slightly dimmer than pure white */
}

/* "from 3 PM" part */
.next6-from {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}
.mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
/* ============================================================
   Trail vs. Downtown Mode Button
   ============================================================ */
.mode-btn {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);

  color: rgba(200,211,255,0.75);
  cursor: pointer;

  transition: all 0.2s ease;
}

.mode-btn:hover {
  background: rgba(255,255,255,0.12);
}

.mode-btn.active {
  color: #fff;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.25);
}

.mode-info {
  margin-left: 6px;
  font-size: 0.7rem;
  opacity: 0.6;
  cursor: help;
}
.comfort-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 70px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.comfort-score-main {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.comfort-score-label {
  font-size: 10px;
  opacity: 0.6;
  text-transform: uppercase;
}