/* Style bloga strefawatow.pl/blog.
   Kolory, czcionki, nawigacja i stopka skopiowane z index.html (landing ma style w <style>).
   Przy zmianie wyglądu landingu popraw też tutaj. Ciemny motyw — jak landing, bez wersji jasnej. */

/* ─── Reset i podstawy ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:        #06090f;
  --surface:   #0c1220;
  --surface-2: #111828;
  --blue:      #1a6fff;
  --blue-dim:  rgba(26,111,255,.15);
  --blue-glow: rgba(26,111,255,.35);
  --link:      #6ea4ff;
  --orange:    #f97316;
  --green:     #10b981;
  --text:      #f0f4fc;
  --text-2:    #d3dcec;
  --muted:     #7c8fad;
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.12);
  --radius:    14px;
  --radius-sm: 8px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', 'Barlow', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 0 24px var(--blue-glow); }
.btn--primary:hover { background: #3d8aff; transform: translateY(-2px); box-shadow: 0 0 36px var(--blue-glow); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn--small { font-size: .82rem; padding: 10px 18px; }

.btn:focus-visible,
.nav-links a:focus-visible,
.nav-brand:focus-visible,
.footer-links a:focus-visible,
.karta:focus-visible,
.film-przycisk:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Nawigacja (jak na landingu) ───────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(6,9,15,.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner { max-width: 1160px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand-logo { width: 34px; height: 34px; background: var(--blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-links a.is-active { color: var(--text); position: relative; }
.nav-links a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-menu-cta { display: none; }
.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 4px; }
.nav-mobile-btn .icon-close { display: none; }
.nav.nav--open .nav-mobile-btn .icon-open { display: none; }
.nav.nav--open .nav-mobile-btn .icon-close { display: block; }

/* Sześć łączy w menu: tuż nad progiem hamburgera przy 32 px odstępu dotykały marki i przycisków (jak na landingu). */
@media (min-width: 961px) and (max-width: 1080px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav { padding: 0 18px; }
  .nav-brand { font-size: 1.15rem; gap: 9px; }
  .nav-brand-logo { width: 32px; height: 32px; }
  .nav-cta { gap: 10px; margin-left: auto; }
  .nav-cta .btn--primary { display: none; }
  .nav-cta .btn--small { font-size: .82rem; padding: 10px 16px; }
  .nav-inner { justify-content: flex-start; }
  .nav-mobile-btn { margin-left: 10px; }
  .nav.nav--open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 68px; left: 0; right: 0;
    padding: 22px 24px 26px;
    background: rgba(6,9,15,.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }
  .nav.nav--open .nav-links a { font-size: 1rem; color: var(--text); padding: 6px 0; }
  .nav.nav--open .nav-links a.is-active::after { display: none; }
  .nav.nav--open .nav-links a.nav-menu-cta { display: flex; justify-content: center; margin-top: 4px; padding: 13px 20px; font-size: .95rem; color: #fff; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .nav-cta .btn--primary { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav { padding: 0 14px; }
  .nav-brand { font-size: 1.02rem; gap: 7px; }
  .nav-brand-logo { width: 28px; height: 28px; }
  .nav-cta .btn--small { font-size: .78rem; padding: 9px 13px; }
}

/* ─── Stopka (jak na landingu) ──────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-brand span { color: var(--blue); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: .84rem; color: var(--muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer-info-title { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.footer-info a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-info a:hover { color: var(--text); }
@media (max-width: 768px) {
  .footer-info { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px; }
}

/* ─── Blog: wspólne ─────────────────────────────────────────────── */
.blog-main { padding: 112px 0 80px; }
.okruszki { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.okruszki a:hover { color: var(--text); }

/* ─── Artykuł ───────────────────────────────────────────────────── */
.wpis { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wpis h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -.01em;
}
.wpis-meta { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.wpis-zdjecie { margin-top: 28px; }
.wpis-zdjecie img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

.wpis-tresc { margin-top: 32px; font-size: 1.07rem; line-height: 1.75; color: var(--text-2); }
.wpis-tresc > * + * { margin-top: 1.15em; }
.wpis-tresc h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.8vw, 2.1rem);
  line-height: 1.12;
  color: var(--text);
  margin-top: 2.1em;
  scroll-margin-top: 92px;
}
.wpis-tresc h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.2;
  color: var(--text);
  margin-top: 1.7em;
  scroll-margin-top: 92px;
}
.wpis-tresc h2 + *, .wpis-tresc h3 + * { margin-top: .55em; }
.wpis-tresc strong, .wpis-tresc b { color: var(--text); font-weight: 600; }
.wpis-tresc a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wpis-tresc a:hover { color: var(--text); }
.wpis-tresc ul, .wpis-tresc ol { padding-left: 1.5em; }
.wpis-tresc ul > li { position: relative; }
.wpis-tresc ul > li::before {
  content: '';
  position: absolute;
  left: -1.1em; top: .68em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--blue);
}
.wpis-tresc ol { list-style: decimal; }
.wpis-tresc ol > li { padding-left: .2em; }
.wpis-tresc ol > li::marker { color: var(--blue); font-family: var(--font-head); font-weight: 700; }
.wpis-tresc li + li { margin-top: .45em; }
.wpis-tresc li > ul, .wpis-tresc li > ol { margin-top: .45em; }
.wpis-tresc img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.wpis-tresc figure img { margin: 0 auto; }
.wpis-tresc figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--muted); text-align: center; }
.wpis-tresc blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  color: var(--text);
  font-size: 1.12rem;
}
.wpis-tresc blockquote > * + * { margin-top: .6em; }
.wpis-tresc aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 1rem;
}
.wpis-tresc aside > * + * { margin-top: .6em; }
.wpis-tresc hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.wpis-tresc code { font-size: .92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; }

/* Tabele — owinięte w .tabela przez generator, żeby na telefonie przewijały się w poziomie. */
.tabela { overflow-x: auto; border: 1px solid var(--border-2); border-radius: var(--radius-sm); }
.tabela table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.tabela th, .tabela td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.tabela th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.tabela tbody tr:last-child td { border-bottom: 0; }
.tabela tbody tr:nth-child(even) td { background: rgba(255,255,255,.018); }

/* Spis treści — generator dokłada go od 3 sekcji h2. */
.wpis-tresc .spis { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; font-size: .98rem; }
.spis-tytul { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.wpis-tresc .spis ol { margin-top: 10px; }
.wpis-tresc .spis li + li { margin-top: .3em; }
.wpis-tresc .spis a { color: var(--text-2); text-decoration: none; }
.wpis-tresc .spis a:hover { color: var(--text); text-decoration: underline; }

/* Film na górze artykułu — miniaturka z folderu artykułu, odtwarzacz ładuje się po kliknięciu (skrypt w uklad.html). */
.wpis-film { margin-top: 28px; }
.film-przycisk {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.film-przycisk img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; opacity: .9; transition: opacity var(--transition); }
.film-przycisk:hover img { opacity: 1; }
.film-ikona {
  position: absolute;
  left: 50%; top: 50%;
  width: 76px; height: 54px;
  transform: translate(-50%, -50%);
  background: var(--blue);
  border-radius: 14px;
  box-shadow: 0 0 32px var(--blue-glow);
  transition: transform var(--transition);
}
.film-ikona::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.film-przycisk:hover .film-ikona { transform: translate(-50%, -50%) scale(1.06); }
.film iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.film-podpis { margin-top: 8px; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.film-podpis a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.film-podpis a:hover { color: var(--text); }

/* Zachęta pod artykułem */
.wpis-cta {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26,111,255,.16), rgba(26,111,255,.04));
  border: 1px solid var(--blue-glow);
}
.wpis-cta h2 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.1; }
.wpis-cta p:not(.section-label) { color: var(--text-2); margin: 10px 0 22px; max-width: 560px; }

/* Autor */
.wpis-autor { margin-top: 36px; padding: 22px 0; display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wpis-autor-znak { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.wpis-autor p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.wpis-autor strong { color: var(--text); }
.wpis-autor a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.wpis-autor strong a { color: var(--text); text-decoration: none; }

/* Karty artykułów — lista bloga i „Przeczytaj też” */
.karty { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.inne { margin-top: 48px; }
.inne h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; margin-bottom: 18px; }
.inne .karty { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.karta {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.karta:hover { border-color: var(--blue-glow); transform: translateY(-3px); }
/* 16:9 jak miniaturka na YouTube — inny kształt obcinałby napisy z miniaturki. */
.karta-zdjecie { aspect-ratio: 16 / 9; background: var(--surface-2); }
.karta-zdjecie img { width: 100%; height: 100%; object-fit: cover; }
.karta-tresc { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.karta-data { font-size: .8rem; color: var(--muted); }
.karta-tytul { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.inne .karta-tytul { font-size: 1.22rem; }
.karta-opis { font-size: .93rem; color: var(--muted); }
.karta-dalej { margin-top: auto; padding-top: 6px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }

/* Lista bloga */
.blog-lista-naglowek { max-width: 760px; margin-bottom: 36px; }
.blog-lista-naglowek h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.05; }
.blog-lista-naglowek p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.blog-pusto { color: var(--muted); padding: 32px 0; }

@media (max-width: 560px) {
  .blog-main { padding: 96px 0 64px; }
  .container, .wpis { padding: 0 16px; }
  .wpis-tresc { font-size: 1.02rem; }
  .wpis-cta { padding: 24px 20px; }
  .karty { grid-template-columns: 1fr; }
}
