/* ============================================================
   Καιρός Πάτρα Αύριο — avrio.css
   New design matching 7/14-imeron style
   ============================================================ */

/* === Body background === */
body.page-id-36 { background: #f5f3ef; }

/* === CSS VARIABLES (scoped) === */
.av-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;
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'IBM Plex Sans', sans-serif;
  --serif: 'IBM Plex Sans', sans-serif;
}

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

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

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

/* ─── Summary banner ─── */
.av-summary-banner {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.av-summary-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.av-summary-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: .85;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* ─── Hero weather display ─── */
.av-hero-weather {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.av-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0;
}
.av-hero-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-hero-icon .wi-big-sun {
  width: 60px; height: 60px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(232,165,32,0.15), 0 0 0 16px rgba(232,165,32,0.06);
}
.av-hero-icon .wi-big-part {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--sun) 45%, var(--cloud) 45%);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(176,173,166,0.12);
}
.av-hero-icon .wi-big-cloud {
  width: 60px; height: 40px;
  background: var(--cloud);
  border-radius: 20px;
  position: relative;
}
.av-hero-icon .wi-big-cloud::before {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  background: var(--cloud);
  border-radius: 50%;
  top: -18px; left: 10px;
}
.av-hero-icon .wi-big-rain {
  width: 60px; height: 40px;
  background: #8db8d8;
  border-radius: 20px;
  position: relative;
}
.av-hero-icon .wi-big-rain::before {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  background: #8db8d8;
  border-radius: 50%;
  top: -18px; left: 10px;
}
.av-hero-icon .wi-big-rain::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 12px;
  width: 6px; height: 12px;
  background: var(--rain);
  border-radius: 0 0 6px 6px;
  box-shadow: 16px 4px 0 var(--rain), 32px 0 0 var(--rain);
}
.av-hero-icon .wi-big-heavy {
  width: 60px; height: 40px;
  background: #7aaac8;
  border-radius: 20px;
  position: relative;
}
.av-hero-icon .wi-big-heavy::before {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  background: #7aaac8;
  border-radius: 50%;
  top: -18px; left: 10px;
}
.av-hero-icon .wi-big-heavy::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 8px;
  width: 6px; height: 12px;
  background: var(--rain);
  border-radius: 0 0 6px 6px;
  box-shadow: 12px 6px 0 var(--rain), 24px 0 0 var(--rain), 36px 4px 0 var(--rain);
}
.av-hero-temp-block { text-align: left; }
.av-hero-temp-main {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.av-hero-temp-low {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-3);
  margin-top: 2px;
}
.av-hero-info { text-align: left; margin-left: 8px; }
.av-hero-condition {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2px;
}
.av-hero-rain-label {
  font-size: 13px;
  color: var(--text-3);
}

/* ─── Stats grid (3-col) ─── */
.av-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}
.av-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.av-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.av-stat-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.av-stat-icon svg { width: 16px; height: 16px; }
.av-stat-icon.temp { background: var(--warm-bg); color: var(--warm); }
.av-stat-icon.rain-i { background: var(--cool-bg); color: var(--cool); }
.av-stat-icon.wind-i { background: var(--green-bg); color: var(--green); }
.av-stat-val {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.av-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-top: 2px;
}

/* ─── Info row (sunrise/sunset/wind dir) ─── */
.av-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}
.av-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.av-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.av-info-card-icon {
  font-size: 18px;
  margin-bottom: 6px;
  opacity: .5;
}
.av-info-card-val {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.av-info-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-top: 2px;
}

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

/* ─── Hourly forecast ─── */
.av-hourly-section { margin-bottom: 2rem; }
.av-hourly-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.av-hourly-scroll::-webkit-scrollbar { height: 4px; }
.av-hourly-scroll::-webkit-scrollbar-track { background: var(--surface-alt); border-radius: 4px; }
.av-hourly-scroll::-webkit-scrollbar-thumb { background: var(--cloud); border-radius: 4px; }

.av-hour-card {
  flex-shrink: 0;
  width: 76px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  scroll-snap-align: start;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  cursor: default;
}
.av-hour-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.14);
}
.av-hour-card.sunrise,
.av-hour-card.sunset {
  background: linear-gradient(180deg, #fef8ec 0%, var(--surface) 100%);
  border-color: rgba(232,165,32,0.2);
}
.av-hour-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.av-hour-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-hour-temp {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.av-hour-rain {
  font-size: 10px;
  color: var(--rain);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.av-hour-rain-dot {
  width: 5px; height: 5px;
  background: var(--rain);
  border-radius: 50%;
  opacity: .6;
}

/* Hourly mini icons */
.hi-moon {
  width: 20px; height: 20px;
  background: transparent;
  border-radius: 50%;
  box-shadow: inset -6px -2px 0 0 #c8c5be;
}
.hi-sun {
  width: 20px; height: 20px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232,165,32,0.2);
}
.hi-sun-cloud {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--sun) 45%, var(--cloud) 45%);
  border-radius: 50%;
}
.hi-cloud {
  width: 22px; height: 14px;
  background: var(--cloud);
  border-radius: 8px;
  position: relative;
}
.hi-cloud::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: var(--cloud);
  border-radius: 50%;
  top: -5px; left: 4px;
}
.hi-rain {
  width: 22px; height: 14px;
  background: #8db8d8;
  border-radius: 8px;
  position: relative;
}
.hi-rain::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #8db8d8;
  border-radius: 50%;
  top: -5px; left: 4px;
}
.hi-rain::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 5px;
  width: 2px; height: 4px;
  background: var(--rain);
  border-radius: 0 0 2px 2px;
  box-shadow: 6px 1px 0 var(--rain);
}
.hi-heavy {
  width: 22px; height: 14px;
  background: #7aaac8;
  border-radius: 8px;
  position: relative;
}
.hi-heavy::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #7aaac8;
  border-radius: 50%;
  top: -5px; left: 4px;
}
.hi-heavy::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 3px;
  width: 2px; height: 4px;
  background: var(--rain);
  border-radius: 0 0 2px 2px;
  box-shadow: 5px 2px 0 var(--rain), 10px 0 0 var(--rain);
}

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

/* ─── Value color helpers ─── */
.av-val-warm { color: var(--warm); }
.av-val-cool { color: var(--cool); }
.av-val-green { color: var(--green); }

/* ─── SVG icon stroke colors ─── */
.av-info-card-icon.icon-sunrise svg { stroke: #e8a520; }
.av-info-card-icon.icon-sunset svg { stroke: #1c3f60; }
.av-info-card-icon.icon-wind svg { stroke: #8a8883; }
.av-chart-canvas-wrap {
  position: relative;
  height: 200px;
}

/* ─── Compare section ─── */
.av-compare-section { margin-bottom: 2rem; }
.av-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.av-compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform .15s;
}
.av-compare-card:hover { transform: translateY(-1px); }
.av-compare-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 10px;
}
.av-compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
}
.av-compare-row + .av-compare-row {
  border-top: 1px solid var(--border);
}
.av-compare-row-label { color: var(--text-2); }
.av-compare-row-val { font-weight: 500; }

/* ─── Update ─── */
.av-update {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1rem;
  opacity: .7;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .av-page { padding: 1.25rem 1.25rem 3rem; }
  .av-page .page-title { font-size: 26px; }
  .av-hero-temp-main { font-size: 44px; }
  .av-hero-top { gap: 14px; }
  .av-stats-grid, .av-info-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .av-compare-grid { grid-template-columns: 1fr; }
  .av-summary-banner { padding: 1.25rem 1.5rem; }
  .av-hero-weather { padding: 1.5rem 1rem; }
}
@media (max-width: 480px) {
  .av-page .page-title { font-size: 22px; }
  .av-hero-top { flex-wrap: wrap; }
  .av-stats-grid, .av-info-row { grid-template-columns: 1fr; }
}
