/* ============================================================
   14-dages vejrudsigt — 14-imeron.css
   vejretodense.com
   ============================================================ */

.ft-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}
.ft-page .page-breadcrumb { max-width: none; margin: 0; }

/* ── LOADING ── */
.ft-loading { text-align: center; padding: 80px 20px; color: var(--subtle); }
.ft-spinner { width: 40px; height: 40px; margin: 0 auto 16px; border: 3px solid var(--greek-foam); border-top-color: var(--greek-blue); border-radius: 50%; animation: ft-spin .8s linear infinite; }
@keyframes ft-spin { to { transform: rotate(360deg); } }

/* ── PAGE HEADER ── */
.ft-ph { margin-bottom: 18px; }
.ft-ph h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 3px; }
.ft-ph-sub { font-size: .82rem; color: var(--subtle); }

/* ── HERO ── */
.ft-hero {
  background: linear-gradient(105deg, var(--greek-blue-deep), var(--greek-blue) 55%, var(--greek-blue-light));
  border-radius: 18px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.ft-hero::before { content: ''; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.ft-hero-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin-bottom: 6px; }
.ft-hero-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.ft-hero-range { font-size: .8rem; opacity: .7; }

.ft-hero-right { display: flex; gap: 0; background: rgba(0,0,0,.18); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.ft-hero-stat { padding: 12px 20px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-right: 1px solid rgba(255,255,255,.1); }
.ft-hero-stat:last-child { border-right: none; }
.ft-hs-lbl { font-size: .62rem; opacity: .55; letter-spacing: .08em; text-transform: uppercase; }
.ft-hs-val { font-size: 1rem; font-weight: 800; }
.ft-hs-sub { font-size: .68rem; opacity: .55; }

/* ── ACCURACY NOTE ── */
.ft-acc-note {
  background: #fffbf0;
  border: 1.5px solid #f0d890;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  color: #8a6800;
  margin-bottom: 22px;
}
.ft-acc-note span:first-child { font-size: 1rem; flex-shrink: 0; }

/* ── WEEK TABS ── */
.ft-week-tabs {
  display: flex;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1.5px solid var(--greek-foam);
  border-bottom: none;
  overflow: hidden;
}
.ft-week-tab {
  flex: 1;
  background: none;
  border: none;
  border-right: 1.5px solid var(--greek-foam);
  padding: 14px 20px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: background var(--transition);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}
.ft-week-tab:last-child { border-right: none; }
.ft-week-tab:hover { background: var(--muted-bg); }
.ft-week-tab.active { background: var(--greek-blue); color: #fff; }
.ft-wt-label { font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.ft-wt-range { font-size: .7rem; opacity: .6; }
.ft-week-tab.active .ft-wt-range { opacity: .8; }
.ft-wt-summary { font-size: .75rem; font-weight: 600; opacity: .7; }
.ft-week-tab.active .ft-wt-summary { opacity: .9; }

/* ── TEMPERATURE CHART ── */
.ft-chart-wrap {
  background: var(--white);
  border-left: 1.5px solid var(--greek-foam);
  border-right: 1.5px solid var(--greek-foam);
  padding: 20px 22px 0;
  overflow: hidden;
}
.ft-tc-title { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.ft-tc-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 90px; position: relative; }
.ft-tc-bars::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--greek-foam); }
.ft-tc-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ft-tc-hi { font-size: .68rem; font-weight: 700; color: #e08b1a; }
.ft-tc-bar { width: 100%; border-radius: 6px; transition: height .3s ease; }
.ft-tc-bar.warm { background: linear-gradient(180deg, #f7b84b, #e08b1a); }
.ft-tc-bar.cool { background: linear-gradient(180deg, #6fb3f7, #3d8fd9); }
.ft-tc-bar.cold { background: linear-gradient(180deg, #90caf9, #5ba3d9); }
.ft-tc-lo { font-size: .62rem; color: #6fb3f7; font-weight: 600; }
.ft-tc-day { font-size: .55rem; color: var(--subtle); font-weight: 700; letter-spacing: .04em; margin-top: 4px; }

/* ── DAYS LIST ── */
.ft-days-list {
  background: var(--white);
  border-radius: 0 0 18px 18px;
  border: 1.5px solid var(--greek-foam);
  border-top: none;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.ft-dl-hd { display: grid; grid-template-columns: 120px 38px 1fr 110px 80px 110px; padding: 9px 22px; background: #FDF0F0; border-bottom: 1.5px solid var(--greek-foam); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.ft-dl-row { display: grid; grid-template-columns: 120px 38px 1fr 110px 80px 110px; align-items: center; gap: 6px; padding: 13px 22px; border-bottom: 1px solid var(--greek-foam); cursor: pointer; transition: background var(--transition); }
.ft-dl-row:last-child { border-bottom: none; }
.ft-dl-row:hover { background: #FDF0F0; }
.ft-dl-row.today { background: rgba(200,16,46,.04); border-left: 3px solid var(--greek-blue); }
.ft-dl-row.rainy { border-left: 3px solid #D4213A; }
.ft-dl-row.stormy { border-left: 3px solid #C8102E; background: rgba(58,140,196,.03); }
.ft-dl-row.week2 { opacity: .88; }
.ft-dl-row.week2:hover { opacity: 1; background: #FDF0F0; }
.ft-dl-day { display: flex; flex-direction: column; gap: 1px; }
.ft-dl-dname { font-size: .88rem; font-weight: 700; }
.ft-dl-ddate { font-size: .68rem; color: var(--subtle); }
.ft-dl-icon { font-size: 1.35rem; text-align: center; }
.ft-dl-icon svg { width: 30px; height: 30px; }
.ft-dl-rain { display: flex; align-items: center; gap: 3px; }
.ft-dl-rain svg { width: 14px; height: 14px; flex-shrink: 0; }
.ft-ol-icon svg { width: 36px; height: 36px; }
.ft-wt-summary svg { width: 18px; height: 18px; vertical-align: middle; }
.ft-dl-desc-wrap { display: flex; flex-direction: column; gap: 3px; }
.ft-dl-desc { font-size: .82rem; color: var(--subtle); }
.ft-conf-badge { display: inline-flex; align-items: center; font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .04em; width: fit-content; }
.ft-conf-high { background: #e8f5e9; color: #2a7a3b; }
.ft-conf-med { background: #fff8e1; color: #9a6f00; }
.ft-conf-low { background: #fce4ec; color: #a0284a; }
.ft-dl-bar-wrap { display: flex; align-items: center; gap: 7px; }
.ft-dl-lo { font-size: .82rem; color: #6fb3f7; font-weight: 600; min-width: 26px; }
.ft-dl-hi { font-size: .88rem; font-weight: 800; color: #e08b1a; min-width: 26px; text-align: right; }
.ft-dl-bar { flex: 1; height: 6px; border-radius: 3px; min-width: 50px; }
.ft-dl-bar.warm { background: linear-gradient(90deg, #c8e6ff, #f5d57a); }
.ft-dl-bar.cool { background: linear-gradient(90deg, #c8e6ff, #a8d4f0); }
.ft-dl-bar.cold { background: linear-gradient(90deg, #b0d8f8, #90c4ec); }
.ft-dl-rain { font-size: .82rem; font-weight: 700; color: var(--greek-blue); text-align: center; }
.ft-dl-rain.low { color: var(--subtle); font-weight: 400; }
.ft-dl-rain.med { color: #D4213A; }
.ft-dl-rain.high { color: var(--greek-blue); font-weight: 800; }
.ft-dl-wind { font-size: .82rem; color: var(--subtle); display: flex; align-items: center; gap: 5px; }
.ft-wdir { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--greek-foam); border-radius: 50%; font-size: .68rem; color: var(--greek-blue); font-weight: 700; flex-shrink: 0; }

/* ── OUTLOOK ── */
.ft-outlook {
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid var(--greek-foam);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.ft-outlook-hd { padding: 12px 22px 10px; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); background: #FDF0F0; border-bottom: 1.5px solid var(--greek-foam); }
.ft-outlook-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ft-ol-item { padding: 18px 22px; border-right: 1px solid var(--greek-foam); display: flex; flex-direction: column; gap: 5px; }
.ft-ol-item:last-child { border-right: none; }
.ft-ol-icon { font-size: 1.6rem; }
.ft-ol-lbl { font-size: .68rem; color: var(--subtle); font-weight: 500; }
.ft-ol-val { font-size: 1.1rem; font-weight: 800; }
.ft-ol-sub { font-size: .75rem; color: var(--subtle); }

/* ── NAV LINKS ── */
.ft-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.ft-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--greek-foam);
  text-decoration: none;
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.ft-nav-link:hover { border-color: var(--greek-blue); color: var(--greek-blue); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ft-arr { color: var(--greek-blue); font-size: 1.1rem; }
.ft-nav-center { justify-content: center; gap: 8px; }

/* ── UPDATE ── */
.ft-update { text-align: center; margin-top: 16px; font-size: .78rem; color: var(--subtle); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .ft-hero-right { display: none; }
  .ft-dl-hd { display: none; }
  .ft-dl-row { grid-template-columns: 90px 30px 1fr 90px 70px; padding: 12px 14px; }
  .ft-dl-wind { display: none; }
  .ft-outlook-grid { grid-template-columns: 1fr; }
  .ft-ol-item { border-right: none; border-bottom: 1px solid var(--greek-foam); }
  .ft-ol-item:last-child { border-bottom: none; }
  .ft-nav-links { grid-template-columns: 1fr; }
  .ft-tc-bars { gap: 3px; }
}
@media (max-width: 480px) {
  .ft-page { padding: 0 10px 32px; }
  .ft-dl-row { grid-template-columns: 80px 28px 1fr 80px 58px; padding: 11px 12px; }
  .ft-week-tab { padding: 12px 10px 10px; }
  .ft-wt-summary { display: none; }
  .ft-ph h1 { font-size: 1.2rem; }
}

/* ══ NIGHT ══ */
body.is-night .ft-hero {
  background: linear-gradient(105deg, #7A0A1B, #7A0A1B 55%, #A00D24);
}

/* ── Summary row (inline → class) ── */
.ip-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.ip-summary-label {
  font-size: 12px;
  color: var(--subtle);
}
.ip-summary-val {
  font-size: 14px;
  font-weight: 700;
}
