/* ============================================================
   Καιρός Πάτρα — front-page.css
   Homepage / weather dashboard styles
   ============================================================ */

/* ── PAGE WRAPPER ── */
.fp-wrap {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #eef3f9;
  min-height: 100vh;
}

/* ── HERO ── */
.fp-hero {
  background: linear-gradient(160deg, #071e3d, #0c2d5a 50%, #0f3668);
}
.fp-hero-h1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.fp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 0;
  position: relative;
  z-index: 1;
}

/* Hero top row */
.fp-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.fp-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.fp-location-name {
  color: rgba(255,255,255,0.8);
}
.fp-update-time {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* Hero main content */
.fp-hero-main {
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.fp-hero-temp {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}
.fp-temp-value {
  font-size: 100px;
  font-weight: 200;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.fp-temp-unit {
  font-size: 30px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}
.fp-hero-info {
  padding-left: 4px;
}
.fp-hero-desc {
  font-size: 24px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
.fp-hero-feels {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  font-weight: 500;
}
.fp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

/* ── 7-DAY STRIP ── */
.fp-day-strip {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.fp-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.fp-day-tab {
  padding: 16px 8px 14px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: all 0.18s;
}
.fp-day-tab:last-child {
  border-right: none;
}
.fp-day-tab.is-active {
  border-bottom-color: #D22B2B;
  background: rgba(255,255,255,0.08);
}
.fp-day-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
  line-height: 1.5;
}
.fp-day-tab.is-active .fp-day-label {
  color: rgba(255,255,255,0.85);
}
.fp-day-date {
  font-weight: 400;
  opacity: .5;
}
.fp-day-icon {
  margin-bottom: 8px;
}
.fp-day-temps .daily-hi {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.fp-day-temps .daily-lo {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-left: 3px;
}
.fp-day-rain {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* ── CONTENT AREA ── */
.fp-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

/* ── CARD (shared) ── */
.fp-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dbe8f5;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(13,94,175,0.06);
}
.fp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef3f9;
}
.fp-card-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5a7fa8;
  margin: 0;
}
.fp-card-link {
  font-size: 12px;
  font-weight: 700;
  color: #0D5BAA;
}

/* ── HOURLY SCROLL ── */
.fp-hourly-scroll {
  display: flex;
  gap: 8px;
  padding: 4px 2px 8px;
  min-width: max-content;
}
.fp-hour-card {
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
  background: #f7fafd;
}
.fp-hour-card.is-now {
  background: #0D5BAA;
  border-color: #0D5BAA;
}
.fp-hour-time {
  font-size: 11px;
  font-weight: 700;
  color: #5a7fa8;
  margin-bottom: 6px;
}
.fp-hour-card.is-now .fp-hour-time {
  color: rgba(255,255,255,0.7);
}
.fp-hour-icon {
  margin-bottom: 6px;
}
.fp-hour-card .hour-temp {
  font-size: 16px;
  font-weight: 700;
  color: #0d1f33;
}
.fp-hour-card.is-now .hour-temp {
  color: #fff;
}
.fp-hour-rain {
  font-size: 10px;
  color: #5a7fa8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.fp-hour-card.is-now .fp-hour-rain {
  color: rgba(255,255,255,0.6);
}

/* ── 7-DAY VERTICAL LIST ── */
.fp-daily-row {
  display: grid;
  grid-template-columns: 90px 36px 1fr 70px;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid #eef3f9;
}
.fp-daily-row:last-child {
  border-bottom: none;
}
.fp-daily-row.is-today {
  background: #f0f5fb;
}
.fp-daily-name {
  font-size: 13px;
  font-weight: 700;
  color: #0d1f33;
  line-height: 1.3;
}
.fp-daily-date {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #94A3B8;
}
.fp-daily-desc {
  font-size: 13px;
  color: #5a7fa8;
  line-height: 1.3;
}
.fp-daily-rain-sm {
  font-size: 11px;
  color: #94A3B8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.fp-daily-temps {
  text-align: right;
  white-space: nowrap;
}
.fp-daily-temps .daily-hi {
  font-size: 16px;
  font-weight: 700;
  color: #0D5BAA;
}
.fp-daily-temps .daily-lo {
  font-size: 14px;
  color: #94A3B8;
  margin-left: 6px;
}

/* ── DETAILS GRID ── */
.fp-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #dbe8f5;
  border-radius: 8px;
  overflow: hidden;
}
.fp-detail-cell {
  background: #fff;
  padding: 16px 18px;
  text-align: center;
}
.fp-detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 6px;
}
.fp-detail-value {
  font-size: 22px;
  font-weight: 700;
  color: #0D5BAA;
  line-height: 1;
}

/* ── SUN & MOON / AQI TWO-COLUMN ── */
.fp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.fp-sun-moon-inner {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe8f5;
}
.fp-sun-panel {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.fp-moon-panel {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f0f5fb, #e8f2fc);
}
.fp-astro-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94A3B8;
  margin-bottom: 10px;
}
.fp-astro-icon {
  margin-bottom: 12px;
}
.fp-astro-times {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}
.fp-astro-item-label {
  display: block;
  font-size: 10px;
  color: #94A3B8;
  margin-bottom: 2px;
}
.fp-astro-item-value {
  font-size: 15px;
  color: #0d1f33;
}
.fp-sun-duration {
  font-size: 11px;
  color: #5a7fa8;
}
.fp-moon-phase {
  font-size: 13px;
  color: #5a7fa8;
  margin-top: 20px;
}
.fp-v-divider {
  width: 1px;
  background: #dbe8f5;
}

/* AQI */
.fp-aqi-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.fp-aqi-info {
  flex: 1;
}
.fp-aqi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94A3B8;
  margin-bottom: 4px;
}
.fp-aqi-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.fp-aqi-bar {
  height: 6px;
  background: linear-gradient(90deg, #4CAF50, #8BC34A 25%, #FFC107 50%, #FF5722 75%, #D32F2F);
  border-radius: 3px;
  position: relative;
  margin-top: 10px;
}
.fp-aqi-needle {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ── RADAR ── */
.fp-radar-viewport {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  background: #dde4eb;
  position: relative;
}
.fp-radar-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #c8d8e4 0%, #d5dfe8 20%, #e0e8ef 40%, #d0dce6 60%, #b8ccd9 100%);
}
.fp-radar-viewport > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fp-radar-land {
  position: absolute;
  border-radius: 40% 60% 50% 30%;
}
.fp-radar-land--1 {
  top: 5%; left: 8%; width: 25%; height: 55%;
  background: rgba(215,225,210,0.8);
  transform: rotate(-10deg);
}
.fp-radar-land--2 {
  top: 10%; left: 40%; width: 35%; height: 45%;
  background: rgba(215,225,210,0.8);
  border-radius: 50% 40% 60% 35%;
  transform: rotate(5deg);
}
.fp-radar-land--3 {
  top: 35%; left: 50%; width: 25%; height: 35%;
  background: rgba(215,225,210,0.7);
  border-radius: 45% 55% 40% 50%;
  transform: rotate(-5deg);
}
.fp-radar-sea {
  position: absolute;
  top: 55%; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(160,195,220,0.4), rgba(140,180,210,0.5));
}
.fp-radar-precip {
  position: absolute;
  border-radius: 50%;
}
.fp-radar-label {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: rgba(0,0,0,0.25);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.fp-radar-sea-label {
  position: absolute;
  font-size: 9px;
  color: rgba(0,0,0,0.12);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.fp-radar-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D22B2B;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px rgba(210,43,43,0.3), 0 2px 8px rgba(0,0,0,0.2);
}
.fp-radar-city-label {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(13,91,170,0.92);
  padding: 3px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.fp-radar-title {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(0,0,0,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fp-radar-credit {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 9px;
  color: rgba(0,0,0,0.25);
}
.fp-radar-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fp-radar-zoom-btn {
  width: 32px;
  height: 32px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  font-weight: 700;
  border: none;
}
.fp-radar-zoom-btn:first-child {
  border-radius: 4px 4px 0 0;
}
.fp-radar-zoom-btn:last-child {
  border-radius: 0 0 4px 4px;
}

/* Radar tab buttons */
.fp-radar-tabs {
  display: flex;
  gap: 4px;
  background: #f0f5fb;
  border-radius: 8px;
  padding: 2px;
}
.fp-radar-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  background: transparent;
  color: #94A3B8;
}
.fp-radar-tab.is-active {
  background: #fff;
  color: #0D5BAA;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .fp-hero-inner {
    padding: 20px 16px 0;
  }
  .fp-hero-main {
    gap: 16px;
  }
  .fp-temp-value {
    font-size: 64px;
  }
  .fp-day-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-x: auto;
  }
  .fp-content {
    padding: 16px 16px 40px;
  }
  .fp-two-col {
    grid-template-columns: 1fr;
  }
  .fp-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fp-daily-row {
    grid-template-columns: 70px 30px 1fr 60px;
    gap: 8px;
  }
  .fp-radar-viewport {
    height: 300px;
  }
}

/* Anchor scroll offset for nav jump links */
#tora, #simera {
  scroll-margin-top: 80px;
}

/* ── AQI dynamic color via CSS custom property ── */
.fp-aqi-dynamic { color: var(--aqi-color); }
.fp-aqi-needle { left: var(--aqi-pct, 42%); border: 2px solid var(--aqi-color, #8BC34A); }

/* ── Radar precipitation zones (moved from inline styles) ── */
.fp-radar-precip--1 { top:15%;left:10%;width:100px;height:65px;background:radial-gradient(ellipse, rgba(76,175,80,0.65) 0%, rgba(76,175,80,0.3) 40%, transparent 70%); }
.fp-radar-precip--2 { top:18%;left:30%;width:140px;height:80px;background:radial-gradient(ellipse, rgba(139,195,74,0.55) 0%, rgba(76,175,80,0.25) 45%, transparent 70%); }
.fp-radar-precip--3 { top:12%;left:22%;width:60px;height:45px;background:radial-gradient(ellipse, rgba(255,235,59,0.5) 0%, rgba(255,193,7,0.2) 50%, transparent 70%); }
.fp-radar-precip--4 { top:30%;left:5%;width:90px;height:55px;background:radial-gradient(ellipse, rgba(76,175,80,0.45) 0%, transparent 65%); }
.fp-radar-precip--5 { top:40%;left:60%;width:70px;height:50px;background:radial-gradient(ellipse, rgba(76,175,80,0.35) 0%, transparent 65%); }
.fp-radar-precip--6 { top:25%;left:55%;width:50px;height:35px;background:radial-gradient(ellipse, rgba(255,193,7,0.4) 0%, transparent 65%); }

/* ── Radar labels (moved from inline styles) ── */
.fp-radar-label--italy { top:8%;left:12%; }
.fp-radar-label--albania { top:20%;left:55%; }
.fp-radar-label--greece { top:38%;left:52%; }
.fp-radar-label--nmacedonia { top:10%;left:65%; }
.fp-radar-sea-label { top:68%;left:30%; }
.fp-radar-pin { top:46%;left:54%;z-index:10; }
.fp-radar-city-label { top:44.5%;left:calc(54% + 16px);z-index:10; }

/* ── QUICK LINKS ── */
.fp-quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px 20px;
}
.fp-qlink {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: rgba(22,108,190,.05);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.fp-qlink:hover { background: rgba(22,108,190,.12); border-color: var(--accent, #166CBE); }
.fp-qlink-title { font-size: 15px; font-weight: 600; color: var(--accent, #166CBE); }
.fp-qlink-desc { font-size: 12px; color: var(--text-3, #9ca3af); }

/* ── AREA CHIPS ── */
.fp-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}
.fp-area-chip {
  padding: 8px 14px;
  background: rgba(22,108,190,.05);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent, #166CBE);
  text-decoration: none;
  transition: background .2s;
}
.fp-area-chip:hover { background: rgba(22,108,190,.14); }

/* ── SEO TEXT ── */
.fp-seo-text {
  padding: 24px 20px;
  margin-top: 8px;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
}
.fp-seo-text h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #111);
  margin: 0 0 10px;
}
.fp-seo-text p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2, #4b5563);
  margin: 0;
}

/* ── CONDITIONS TEXT BLOCK ── */
.fp-cond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 20px 20px;
}
.fp-cond-block {
  padding: 16px;
  background: rgba(22,108,190,.03);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
}
.fp-cond-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #111);
  margin: 0 0 6px;
}
.fp-cond-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent, #166CBE);
  margin: 0 0 8px;
}
.fp-cond-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2, #6b7280);
  margin: 0;
}

@media (max-width: 600px) {
  .fp-quick-links { grid-template-columns: repeat(2, 1fr); }
  .fp-cond-grid { grid-template-columns: 1fr; }
}
