/* pogodapodroze.pl - nowoczesny, lekki design system (zero JS) */
:root {
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --bg: #ffffff;
  --bg-page: #f8fafc;
  --bg-soft: #f1f5f9;
  --line: #e2e8f0;
  --link: #0369a1;
  --link-hover: #0c4a6e;
  --accent: #0ea5e9;
  --gold: #f59e0b;
  --r-lg: 16px;
  --r-md: 12px;
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --sh-md: 0 6px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

[id] { scroll-margin-top: 4.2rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }

/* ---------------------------------------------------------- naglowek -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  row-gap: 0.1rem; padding: 0.65rem 1.1rem;
}
.brand { font-size: 1.12rem; font-weight: 500; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.brand strong {
  font-weight: 800;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.top-nav { display: flex; flex-wrap: wrap; gap: 0.3rem 0.4rem; }
.top-nav a {
  font-weight: 600; font-size: 0.94rem; white-space: nowrap;
  padding: 0.32rem 0.8rem; border-radius: 999px; color: var(--text);
}
.top-nav a:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 640px) {
  .header-inner { padding: 0.5rem 0.8rem; }
  .brand { font-size: 1rem; }
  .top-nav a { font-size: 0.88rem; padding: 0.25rem 0.6rem; }
}

/* ------------------------------------------------------------ stopka -- */
.site-footer {
  margin-top: 4rem;
  padding: 2.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
  background: var(--bg-page);
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.01em; }
.footer-brand p { margin-top: 0.45rem; line-height: 1.6; }
.footer-col h3 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--subtle); margin: 0 0 0.6rem; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.3rem; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--link); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.86rem;
}
.footer-bottom .legal a { margin-left: 1rem; color: var(--muted); }
.footer-bottom .legal a:hover { color: var(--link); }

/* e-mail renderowany w CSS - adres nie wystepuje w zrodle HTML */
.em::before { content: attr(data-u) "\0040" attr(data-d) "\002e" attr(data-t); }
.em { font-weight: 700; color: var(--link); user-select: all; }
.email-line { font-size: 1.05rem; }

/* -------------------------------------------------------- typografia -- */
h1.title {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; color: var(--ink);
  font-weight: 800; letter-spacing: -0.022em; margin: 0.5rem 0 1.1rem;
}
h2.subtitle, h2 {
  font-size: 1.28rem; color: var(--ink); font-weight: 750; letter-spacing: -0.015em;
  margin: 2rem 0 0.8rem;
}
h3 { font-size: 1.05rem; color: var(--ink); margin: 1rem 0 0.35rem; }

.content-text { font-size: 1.07rem; line-height: 1.8; }
.content-text > div { margin-bottom: 0.55rem; }
.has-text-primary { color: var(--ink); font-weight: 700; margin-top: 1.1rem; letter-spacing: -0.01em; }
.has-text-centered { text-align: center; }
.muted { color: var(--muted); font-size: 0.9rem; }

.mb-5 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 1.5rem; }

/* --------------------------------------------------------- quicknav -- */
.quicknav {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.45rem; margin: 0.5rem 0 1.4rem;
  background: var(--bg-soft); border-radius: 999px; width: fit-content; max-width: 100%;
}
.quicknav a {
  display: inline-block; padding: 0.32rem 0.85rem;
  background: transparent; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.quicknav a:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
@media (max-width: 640px) { .quicknav { border-radius: var(--r-lg); } }

/* -------------------------------------------------------- breadcrumb -- */
.breadcrumb { font-size: 0.88rem; color: var(--subtle); margin: 0.3rem 0 0.9rem; }
.breadcrumb a { font-weight: 600; color: var(--muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span::before { content: " / "; color: var(--line); margin: 0 0.15rem; }

/* ------------------------------------------------------ tagi / chipy -- */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0.6rem 0 1.1rem; }
.tags.centered { justify-content: center; }
.tags-label { padding: 0.26rem 0; }
.tag {
  display: inline-block; padding: 0.26rem 0.75rem;
  background: var(--bg-soft); border-radius: 999px; font-size: 0.92rem;
  line-height: 1.45; white-space: nowrap;
  border: 1px solid transparent; transition: border-color 0.15s ease;
}
@media (max-width: 640px) { .tag { white-space: normal; } }
.tag:hover { border-color: var(--line); }
.tag.is-primary { background: #e0f2fe; font-weight: 700; }
.tag a { color: var(--text); }
.tag a:hover { color: var(--ink); }

/* pigulka temperatury (heatmapa w tabelach) */
.t-pill {
  display: inline-block; min-width: 3.4em; text-align: center;
  padding: 0.14rem 0.55rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------- karty dni -- */
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 0.9rem; margin: 1rem 0 1.6rem; }
.day-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0.95rem 1rem 0.85rem; box-shadow: var(--sh-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.day-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.day-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--card-accent, var(--line));
}
.day-card .day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; }
.day-card .day-name { font-weight: 750; color: var(--ink); text-transform: capitalize; letter-spacing: -0.01em; }
.day-card .day-date { font-size: 0.8rem; color: var(--subtle); white-space: nowrap; }
.day-card .day-main { display: flex; align-items: center; gap: 0.55rem; margin: 0.45rem 0 0.35rem; }
.day-card .day-emoji { font-size: 1.9rem; }
.day-card .day-temp { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.day-card .day-cond { font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.day-card .day-meta { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------ tabele -- */
.table-wrap { overflow-x: auto; margin: 0.7rem 0 0.9rem; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
.table thead th {
  text-align: left; padding: 0.6rem 0.8rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--subtle); background: var(--bg-page); border-bottom: 1px solid var(--line);
}
.table td { padding: 0.5rem 0.8rem; border-top: 1px solid #f1f5f9; }
.table tbody tr:hover { background: var(--bg-page); }
.table td.temp-cell { text-align: center; }
.table td.rain-cell { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.table tr.is-current td { background: #fffbeb; }
.table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* ------------------------------------------------------ powiadomienia -- */
.notification { border-radius: var(--r-md); padding: 0.85rem 1.1rem; margin: 0.9rem 0; border: 1px solid; font-size: 0.98rem; }
.notification.is-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.notification.is-warning { background: #fffbeb; border-color: #fde68a; color: #713f12; }
.notification.is-danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* ------------------------------------------------------------ podium -- */
.podium { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0 1.6rem; }
.podium-card {
  flex: 1 1 210px; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.35rem 1rem 1rem; text-align: center; box-shadow: var(--sh-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.podium-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.podium-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--card-accent, linear-gradient(90deg, #0ea5e9, #6366f1));
}
.podium-rank {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.08rem 0.7rem; font-weight: 800; font-size: 0.82rem; box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.podium-name { font-weight: 750; font-size: 1.06rem; letter-spacing: -0.01em; }
.podium-name a { color: var(--ink); }
.podium-temp { font-size: 2.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.podium-sub { font-size: 0.84rem; color: var(--muted); }

/* ---------------------------------------------------- kafelki statystyk -- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0.7rem; margin: 0.9rem 0 1.4rem; }
.stat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0.8rem 0.5rem; text-align: center; box-shadow: var(--sh-sm);
}
.stat-tile .heading { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--subtle); font-weight: 700; }
.stat-tile .stat-value { font-size: 1.55rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.chart-box { margin: 1.1rem 0 1.8rem; }
.chart-box svg { display: block; }

/* ------------------------------------------------------------- trend -- */
.trend-up { color: #dc2626; font-weight: 700; }
.trend-down { color: #2563eb; font-weight: 700; }
.trend-flat { color: var(--subtle); font-weight: 700; }

/* -------------------------------------------------------- siatka kart -- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin: 1.1rem 0; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.05rem 1.15rem; box-shadow: var(--sh-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.card .card-title { font-size: 1.04rem; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.card .card-title a { color: var(--ink); }
.card .card-title a:hover { color: var(--link); }

/* --------------------------------------------------------------- FAQ -- */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem 1.2rem; margin-bottom: 0.9rem; box-shadow: var(--sh-sm);
}
.faq-item .faq-q { font-weight: 700; color: var(--ink); font-size: 1.04rem; margin-bottom: 0.45rem; letter-spacing: -0.01em; }

/* ----------------------------------------------------------- przyciski -- */
.button {
  display: inline-block; padding: 0.6rem 1.4rem; border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-weight: 700; font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14, 165, 233, 0.32); }

/* -------------------------------------------------------------- embed -- */
details.embed { background: var(--bg-page); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.8rem 1.1rem; margin: 1.4rem 0; }
details.embed summary { cursor: pointer; font-weight: 600; color: var(--text); }
details.embed textarea {
  width: 100%; margin-top: 0.6rem; padding: 0.55rem;
  border: 1px solid var(--line); border-radius: var(--r-md); font-family: ui-monospace, monospace; font-size: 0.84rem;
  color: var(--text); background: #fff;
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 90% -25%, rgba(251, 191, 36, 0.16), transparent 62%),
    radial-gradient(640px 400px at -10% 120%, rgba(125, 211, 252, 0.18), transparent 58%),
    linear-gradient(135deg, #fffaf1 0%, #fff6e8 45%, #f0f7fd 100%);
  border: 1px solid #f1e6d2;
  border-radius: 22px;
  color: var(--text);
  padding: 2.5rem 2.2rem 2.2rem;
  margin: 0.4rem 0 2rem;
  box-shadow: var(--sh-sm);
}
.hero .eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: #b45309; margin-bottom: 0.8rem;
}
.hero .eyebrow .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #d97706; margin: 0 0.55rem; vertical-align: middle; }
.hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 0.7rem; }
.hero .lead { font-size: 1.05rem; line-height: 1.7; color: var(--muted); max-width: 740px; }
.hero .stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.hero .stats span {
  background: rgba(255, 255, 255, 0.75); border: 1px solid #eadfca;
  border-radius: 999px; padding: 0.32rem 0.9rem; font-size: 0.88rem; font-weight: 600; color: var(--text);
}
@media (max-width: 640px) { .hero { padding: 1.6rem 1.2rem; border-radius: var(--r-lg); } }

/* ------------------------------------------------ strony informacyjne -- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8rem; }
.prose p, .prose ul { margin-bottom: 0.85rem; }
.prose ul { padding-left: 1.35rem; }
.prose .lead { font-size: 1.14rem; color: var(--ink); }

/* top20 na glownej */
.top20 .spark { vertical-align: middle; }
.top20 td { vertical-align: middle; }

@media (max-width: 640px) {
  .content-text { font-size: 1rem; }
  .podium-temp { font-size: 2.1rem; }
}
