/* ============================================================
   Πρόβλεψη 7 Ημερών — 7-imeron.css
   kairospatra.com — New design (DM Sans + Instrument Serif)
   ============================================================ */

/* === Body background === */
body.page-id-18 { background: var(--im-bg, #f5f3ef); }

/* === CSS VARIABLES (scoped to .im-page) === */
.im-page {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --surface-alt: #f0ede8;
  --text: #1a1a1a;
  --text-2: #5c5a56;
  --text-3: #8a8883;
  --border: rgba(0,0,0,0.08);
  --accent: #1c3f60;
  --accent-light: #e8f0f8;
  --warm: #d4532a;
  --warm-bg: #fef0ec;
  --cool: #2a7ec4;
  --cool-bg: #ecf4fc;
  --rain: #3b8bd4;
  --sun: #e8a520;
  --cloud: #b0ada6;
  --green: #2a8a56;
  --green-bg: #edf7f1;
  --warning-bg: #fef8ec;
  --warning-border: #d4a020;
  --warning-text: #7a5c10;
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'IBM Plex Sans', sans-serif;
  --serif: 'IBM Plex Sans', sans-serif;
}

/* === PAGE LAYOUT === */
.im-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
}

/* ─── Breadcrumb ─── */
.im-page .page-breadcrumb { max-width: none; margin: 0; }

/* ─── Page title ─── */
.im-page .page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  line-height: 1.2;
}
.im-page .page-sub {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

/* ─── Hero card ─── */
.im-hero {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.im-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.im-hero-left { position: relative; z-index: 1; }
.im-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: .5;
  margin-bottom: 6px;
}
.im-hero-condition {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.im-hero-location {
  font-size: 13px;
  opacity: .55;
  margin-top: 4px;
}
.im-hero-stats {
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.im-hero-stat { text-align: center; }
.im-hero-stat-val {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.im-hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: .5;
  margin-top: 2px;
}

/* ─── Section label ─── */
h2.im-section-label,
.im-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
  margin: 0 0 10px 0;
  padding: 0;
}

/* ─── Metric cards ─── */
.im-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}
.im-metric-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.im-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.im-metric-card-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.im-metric-card-val {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.im-metric-card-note {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.im-metric-card.warm .im-metric-card-val { color: var(--warm); }
.im-metric-card.cool .im-metric-card-val { color: var(--cool); }
.im-metric-card.rain .im-metric-card-val { color: var(--rain); }
.im-metric-card.wind .im-metric-card-val { color: var(--green); }

/* ─── Chart area ─── */
.im-chart-section { margin-bottom: 2rem; }
.im-chart-container {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem 1rem;
  position: relative;
}
.im-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.im-chart-title {
  font-size: 14px;
  font-weight: 500;
}
.im-chart-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.im-chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.im-chart-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.im-chart-legend .dot-warm { background: #d4532a; }
.im-chart-legend .dot-cool { background: #2a7ec4; }
.im-chart-canvas-wrap {
  position: relative;
  height: 200px;
}

/* ─── Day-by-day ─── */
.im-day-header {
  display: grid;
  grid-template-columns: 78px 1fr 80px 60px 72px;
  gap: 8px;
  padding: 0 16px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.im-day-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 2rem; }
.im-day-row {
  display: grid;
  grid-template-columns: 78px 1fr 80px 60px 72px;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: transform .12s, box-shadow .12s;
  cursor: pointer;
}
.im-day-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.im-day-name {
  font-weight: 600;
  font-size: 14px;
}
.im-day-date {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 400;
}
.im-day-desc {
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.im-day-temp { text-align: center; font-weight: 500; }
.im-day-temp .hi { color: var(--warm); }
.im-day-temp .lo { color: var(--cool); font-weight: 400; font-size: 12px; }
.im-day-rain {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}
.im-day-rain.wet { color: var(--rain); font-weight: 500; }
.im-day-wind {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ─── Day detail (expandable) ─── */
.im-day-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0 16px;
}
.im-day-row-wrap.expanded .im-day-detail {
  max-height: 300px;
  padding: 14px 16px;
}
.im-day-row-wrap.expanded .im-day-row {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: none;
}
.im-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.im-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.im-detail-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.im-detail-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Weather icons (CSS only) ─── */
.wi { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; }
.wi-sun {
  width: 22px; height: 22px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232,165,32,0.2);
}
.wi-part {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--sun) 45%, var(--cloud) 45%);
  border-radius: 50%;
}
.wi-cloud {
  width: 24px; height: 16px;
  background: var(--cloud);
  border-radius: 10px;
  position: relative;
}
.wi-cloud::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: var(--cloud);
  border-radius: 50%;
  top: -7px; left: 4px;
}
.wi-rain {
  width: 24px; height: 16px;
  background: #8db8d8;
  border-radius: 10px;
  position: relative;
}
.wi-rain::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #8db8d8;
  border-radius: 50%;
  top: -7px; left: 4px;
}
.wi-rain::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 6px;
  width: 3px; height: 6px;
  background: var(--rain);
  border-radius: 0 0 3px 3px;
  box-shadow: 8px 2px 0 var(--rain);
}
.wi-heavy {
  width: 24px; height: 16px;
  background: #7aaac8;
  border-radius: 10px;
  position: relative;
}
.wi-heavy::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #7aaac8;
  border-radius: 50%;
  top: -7px; left: 4px;
}
.wi-heavy::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 4px;
  width: 3px; height: 6px;
  background: var(--rain);
  border-radius: 0 0 3px 3px;
  box-shadow: 6px 3px 0 var(--rain), 12px 0 0 var(--rain);
}
.wi-fog {
  width: 24px; height: 12px;
  background: repeating-linear-gradient(0deg, var(--cloud) 0 2px, transparent 2px 5px);
  border-radius: 4px;
}
.wi-snow {
  width: 22px; height: 22px;
  background: radial-gradient(circle, #c8dbe8 30%, transparent 70%);
  border-radius: 50%;
  position: relative;
}

/* ─── Visual strip ─── */
.im-strip-section { margin-bottom: 2rem; }
.im-strip {
  display: flex;
  gap: 3px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.im-strip-bar {
  flex: 1;
  transition: transform .15s;
  position: relative;
  cursor: default;
}
.im-strip-bar:hover { transform: scaleY(1.08); }
.im-strip-bar .tip {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.im-strip-bar:hover .tip { opacity: 1; }
.im-strip-dates {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-3);
  margin-top: 6px;
  padding: 0 2px;
}

/* ─── Update ─── */
.im-update {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .im-metric-row { grid-template-columns: repeat(2, 1fr); }
  .im-hero { flex-direction: column; align-items: flex-start; }
  .im-hero-stats { gap: 20px; }
  .im-day-header, .im-day-row { grid-template-columns: 60px 1fr 70px 50px; }
  .im-day-wind { display: none; }
  .im-day-header span:last-child { display: none; }
  .im-page .page-title { font-size: 26px; }
  .im-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .im-page { padding: 1.25rem 1.25rem 3rem; }
  .im-page .page-title { font-size: 22px; }
}
