/* ===== CLIMATE PAGE STYLES ===== */

/* ---- Hero ---- */
.climate-hero {
  padding: 5rem 2rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #090c10 0%, #0a0b0d 100%);
  border-bottom: 1px solid #1e2530;
}

.climate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid currentColor;
}

.climate-badge.hot    { color: #ff6b6b; background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.3); }
.climate-badge.warm   { color: #f0c040; background: rgba(240,192,64,0.08);  border-color: rgba(240,192,64,0.3); }
.climate-badge.stable { color: #00ffcc; background: rgba(0,255,204,0.06);   border-color: rgba(0,255,204,0.25); }
.climate-badge.cool   { color: #718096; background: rgba(113,128,150,0.08); border-color: rgba(113,128,150,0.25); }

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.climate-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.climate-title .accent { color: #00ffcc; }

.climate-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #4a5568;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
}

.climate-tagline {
  font-size: 0.9rem;
  color: #718096;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* Gauges Row */
.climate-gauges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.gauge-card {
  background: #111418;
  border: 1px solid #1e2530;
  border-radius: 10px;
  padding: 1rem 1.4rem;
  text-align: center;
  min-width: 140px;
  flex: 1;
}

.gauge-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.gauge-val.hot    { color: #ff6b6b; }
.gauge-val.warm   { color: #f0c040; }
.gauge-val.stable { color: #00ffcc; }
.gauge-val.cool   { color: #718096; }

.gauge-arrow {
  font-size: 0.9rem;
  margin-left: 0.2rem;
}

.gauge-label {
  font-size: 0.7rem;
  color: #718096;
  line-height: 1.3;
}

/* Thermometer bar */
.thermo-bar {
  height: 4px;
  border-radius: 2px;
  margin-top: 0.6rem;
  background: #1a2030;
  overflow: hidden;
}

.thermo-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.thermo-fill.hot    { background: linear-gradient(90deg, #f0c040, #ff6b6b); }
.thermo-fill.warm   { background: linear-gradient(90deg, #00ffcc, #f0c040); }
.thermo-fill.stable { background: linear-gradient(90deg, #4a90d9, #00ffcc); }
.thermo-fill.cool   { background: #2d3748; }

.refresh-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #4a5568;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.refresh-icon { margin-right: 0.3rem; }

/* ---- Tab Nav ---- */
.climate-tabs-wrapper {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: #0a0b0d;
  border-bottom: 1px solid #1e2530;
}

.climate-tabs {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.climate-tabs::-webkit-scrollbar { display: none; }

.ctab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a5568;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.ctab:hover { color: #a0aec0; background: rgba(255,255,255,0.02); }
.ctab.active { color: #00ffcc; border-bottom-color: #00ffcc; }

/* ---- Main ---- */
.climate-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.climate-view { display: none; }
.climate-view.active { display: block; }

.view-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #1e2530;
}

.view-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.view-desc {
  font-size: 0.87rem;
  color: #718096;
  margin: 0;
}

/* ---- Signal Feed ---- */
.signal-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sfilt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #111418;
  border: 1px solid #1e2530;
  color: #4a5568;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s;
}

.sfilt:hover { color: #a0aec0; border-color: #2d3748; }
.sfilt.active { color: #00ffcc; border-color: #00ffcc44; background: rgba(0,255,204,0.05); }

.signals-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.signal-card {
  background: #111418;
  border: 1px solid #1e2530;
  border-left: 3px solid;
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: background 0.18s;
}

.signal-card:hover { background: #141820; }

.signal-card.hot      { border-left-color: #ff6b6b; }
.signal-card.alert    { border-left-color: #f0c040; }
.signal-card.positive { border-left-color: #00ffcc; }
.signal-card.watch    { border-left-color: #4a90d9; }
.signal-card.neutral  { border-left-color: #2d3748; }

.signal-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signal-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #4a5568;
  letter-spacing: 0.06em;
}

.signal-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.signal-cat.competitor { color: #ff6b6b; background: rgba(255,107,107,0.1); }
.signal-cat.regulation { color: #f0c040; background: rgba(240,192,64,0.1); }
.signal-cat.market     { color: #00ffcc; background: rgba(0,255,204,0.08); }
.signal-cat.ecosystem  { color: #a78bfa; background: rgba(167,139,250,0.1); }

.signal-severity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.signal-severity-dot.hot      { background: #ff6b6b; animation: blink-dot 1.2s infinite; }
.signal-severity-dot.alert    { background: #f0c040; animation: blink-dot 2s infinite; }
.signal-severity-dot.positive { background: #00ffcc; }
.signal-severity-dot.watch    { background: #4a90d9; }
.signal-severity-dot.neutral  { background: #2d3748; }

.signal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.35;
}

.signal-body {
  font-size: 0.83rem;
  color: #a0aec0;
  line-height: 1.65;
  margin: 0;
}

.signal-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: #4a5568;
}

.signal-source a {
  color: #4a5568;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signal-source a:hover { color: #00ffcc; }

/* ---- Competitors ---- */
.comp-sort-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.sort-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #4a5568;
  letter-spacing: 0.06em;
}

.csort {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  background: #111418;
  border: 1px solid #1e2530;
  color: #4a5568;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s;
}

.csort:hover { color: #a0aec0; border-color: #2d3748; }
.csort.active { color: #00ffcc; border-color: #00ffcc44; background: rgba(0,255,204,0.05); }

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
}

.comp-card {
  background: #111418;
  border: 1px solid #1e2530;
  border-radius: 10px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.comp-card:hover {
  border-color: #2d3748;
  transform: translateY(-2px);
}

.comp-card.expanded { border-color: #00ffcc33; }

.comp-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.comp-logo {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.comp-info { flex: 1; }

.comp-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 0.15rem;
}

.comp-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: #718096;
  letter-spacing: 0.06em;
}

.comp-relation {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  display: inline-block;
  margin-top: 0.25rem;
}

.comp-relation.partner   { color: #00ffcc; background: rgba(0,255,204,0.08); }
.comp-relation.adjacent  { color: #4a90d9; background: rgba(74,144,217,0.1); }
.comp-relation.direct    { color: #f0c040; background: rgba(240,192,64,0.1); }
.comp-relation.indirect  { color: #ff6b6b; background: rgba(255,107,107,0.1); }
.comp-relation.infra     { color: #a78bfa; background: rgba(167,139,250,0.1); }

.comp-temp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.comp-temp-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
}

.comp-temp-badge.hot    { color: #ff6b6b; }
.comp-temp-badge.warm   { color: #f0c040; }
.comp-temp-badge.stable { color: #00ffcc; }
.comp-temp-badge.cool,
.comp-temp-badge.cooling { color: #718096; }

.comp-direction {
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.comp-threat-opp {
  display: flex;
  gap: 0.5rem;
}

.to-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.to-pill.threat-high   { color: #ff6b6b; background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.2); }
.to-pill.threat-medium { color: #f0c040; background: rgba(240,192,64,0.1);  border: 1px solid rgba(240,192,64,0.2); }
.to-pill.threat-low    { color: #718096; background: rgba(113,128,150,0.08); border: 1px solid rgba(113,128,150,0.2); }

.to-pill.opp-high   { color: #00ffcc; background: rgba(0,255,204,0.08);   border: 1px solid rgba(0,255,204,0.2); }
.to-pill.opp-medium { color: #4a90d9; background: rgba(74,144,217,0.08); border: 1px solid rgba(74,144,217,0.2); }
.to-pill.opp-low    { color: #718096; background: rgba(113,128,150,0.08); border: 1px solid rgba(113,128,150,0.2); }

.comp-thermo {
  height: 3px;
  background: #1a2030;
  border-radius: 2px;
  overflow: hidden;
}

.comp-thermo-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.comp-summary {
  font-size: 0.82rem;
  color: #a0aec0;
  line-height: 1.65;
  margin: 0;
}

.comp-expand-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #4a5568;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.18s;
  align-self: flex-start;
}

.comp-expand-btn:hover { color: #00ffcc; }

.comp-detail {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1a2030;
}

.comp-detail.open { display: flex; }

.comp-signals-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 0.25rem;
}

.comp-signal-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: #a0aec0;
  line-height: 1.5;
}

.comp-signal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.comp-signal-dot.positive { background: #00ffcc; }
.comp-signal-dot.watch    { background: #4a90d9; }
.comp-signal-dot.alert    { background: #f0c040; animation: blink-dot 2s infinite; }
.comp-signal-dot.neutral  { background: #2d3748; }

.comp-signal-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: #4a5568;
  flex-shrink: 0;
}

.comp-avatar-angle {
  background: rgba(0,255,204,0.04);
  border: 1px solid rgba(0,255,204,0.12);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.79rem;
  color: #7ecfc0;
  line-height: 1.6;
}

.comp-avatar-angle::before {
  content: "AVATAR ANGLE → ";
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00ffcc;
  display: block;
  margin-bottom: 0.3rem;
}

/* ---- Location Health ---- */
.loc-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.1rem;
}

.loc-health-card {
  background: #111418;
  border: 1px solid #1e2530;
  border-radius: 10px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.2s;
}

.loc-health-card:hover { border-color: #2d3748; }

.loc-h-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.loc-h-flag-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.loc-h-flag { font-size: 1.4rem; }

.loc-h-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.loc-h-cities {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: #4a5568;
  margin: 0;
}

.loc-h-score-wrap {
  text-align: right;
}

.loc-h-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.loc-h-score-label {
  font-size: 0.6rem;
  color: #4a5568;
  letter-spacing: 0.06em;
}

/* Score colour */
.score-excellent { color: #00ffcc; }
.score-good      { color: #4a90d9; }
.score-fair      { color: #f0c040; }
.score-poor      { color: #ff6b6b; }

.loc-h-bar {
  height: 3px;
  background: #1a2030;
  border-radius: 2px;
  overflow: hidden;
}

.loc-h-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* Dimension bars */
.loc-h-dims {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.loc-h-dim {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 0.5rem;
  align-items: center;
}

.loc-h-dim-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: #718096;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.loc-h-dim-bar {
  height: 4px;
  background: #1a2030;
  border-radius: 2px;
  overflow: hidden;
}

.loc-h-dim-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.dim-fill-green  { background: linear-gradient(90deg, #00b4b4, #00ffcc); }
.dim-fill-blue   { background: linear-gradient(90deg, #3da975, #4a90d9); }
.dim-fill-gold   { background: linear-gradient(90deg, #e8832a, #f0c040); }
.dim-fill-purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.dim-fill-red    { background: linear-gradient(90deg, #e04020, #ff6b6b); }

.loc-h-dim-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: #718096;
  text-align: right;
}

.loc-h-summary {
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.6;
  margin: 0;
}

.loc-h-reg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  color: #718096;
  line-height: 1.4;
}

.reg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.reg-dot.green  { background: #00ffcc; }
.reg-dot.yellow { background: #f0c040; animation: blink-dot 2.5s infinite; }
.reg-dot.red    { background: #ff6b6b; animation: blink-dot 1.5s infinite; }

.loc-h-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.loc-h-opp {
  font-size: 0.77rem;
  color: #00ffcc;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  line-height: 1.4;
}

.loc-h-opp::before { content: "✓"; flex-shrink: 0; }

.loc-h-risk {
  font-size: 0.77rem;
  color: #f0c040;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  line-height: 1.4;
}

.loc-h-risk::before { content: "⚠"; flex-shrink: 0; }

/* ---- Tech Pulse ---- */
.tech-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tech-bar-row {
  background: #111418;
  border: 1px solid #1e2530;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 1rem;
  align-items: center;
  transition: border-color 0.2s;
}

.tech-bar-row:hover { border-color: #2d3748; }

.tech-bar-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.tech-bar-note {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: #718096;
  margin-top: 0.1rem;
  font-weight: 400;
}

.tech-bar-track {
  height: 6px;
  background: #1a2030;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.tech-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.tech-bar-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

/* Direction arrows */
.arrow-up    { color: #00ffcc; }
.arrow-down  { color: #ff6b6b; }
.arrow-stable { color: #4a5568; }

@media (max-width: 640px) {
  .tech-bar-row {
    grid-template-columns: 1fr 60px;
    grid-template-rows: auto auto;
  }
  .tech-bar-name { grid-column: 1; }
  .tech-bar-val  { grid-column: 2; grid-row: 1; }
  .tech-bar-track { grid-column: 1 / -1; }
  .comp-grid { grid-template-columns: 1fr; }
  .loc-health-grid { grid-template-columns: 1fr; }
  .climate-hero { padding: 4rem 1.25rem 2rem; }
  .climate-main { padding: 2rem 1.25rem 3rem; }
  .loc-h-dim { grid-template-columns: 100px 1fr 30px; }
}
