/* ============================================================================
   PizzaMap — style podstron (blog, artykuł, mapa-chrome)
   Wymaga flagship.css (tokeny). 
   ============================================================================ */

/* ----------------------------- nagłówek (premium masthead, logo wyśrodkowane) --------------- */
.subhead { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.8); backdrop-filter: blur(20px) saturate(1.1); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 40px -30px rgba(20,18,16,.5); transition: background .3s var(--ease); }
.subhead .container { position:relative; display:flex; flex-direction:column; align-items:center; padding-block: clamp(22px,2.4vw,34px) 0; transition: padding .35s var(--ease); }

/* logo NA GÓRZE, wyśrodkowane, z dużym oddechem */
.subhead .logo-c { order:-1; font-family: var(--display); font-weight: 800; font-size: clamp(34px,4vw,50px); letter-spacing:-.022em; line-height:1; color: var(--ink); text-align:center; display:inline-block; }
.subhead .logo-c b { color: var(--red); font-weight:800; }
.subhead .logo-c::before { content:'✦'; display:block; font-family: var(--sans); font-size: 10px; color: var(--amber); letter-spacing:0; margin-bottom: 15px; opacity:.8; transition: opacity .3s, margin .3s, font-size .3s; }
.subhead .logo-c::after { content:'Przewodnik po świecie pizzy'; display:block; font-family: var(--sans); font-weight:600; font-size: 9.5px; letter-spacing:.46em; text-transform:uppercase; color: var(--muted); margin-top: 14px; padding-left:.46em; transition: opacity .3s, margin .3s, max-height .3s; }

/* nawigacja POD logo, wyśrodkowana, z subtelnym divider */
.subhead .nav-l { display:flex; flex-wrap:wrap; justify-content:center; gap: clamp(18px,2.2vw,40px); width:100%; margin-top: clamp(24px,2.8vw,38px); padding: clamp(15px,1.6vw,20px) 0 clamp(16px,1.7vw,22px); border-top: 1px solid var(--line); transition: margin .35s var(--ease), padding .35s var(--ease); }
.subhead a.navlink { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--ink-2); position:relative; padding: 5px 1px; transition: color .25s; }
.subhead a.navlink::after { content:''; position:absolute; left:50%; right:50%; bottom:-1px; height:1.5px; background: linear-gradient(90deg,var(--amber),var(--red)); transition: left .3s var(--ease), right .3s var(--ease); }
.subhead a.navlink:hover { color: var(--red); }
.subhead a.navlink:hover::after, .subhead a.navlink[aria-current="page"]::after { left:0; right:0; }
.subhead a.navlink[aria-current="page"] { color: var(--ink); }

/* nav-r (puste / hamburger) + przycisk menu */
.subhead .nav-r { position:absolute; right: var(--gutter); top: clamp(18px,2.4vw,28px); display:flex; align-items:center; gap: var(--s2); }
.subhead .menu-btn { display:none; position:absolute; left: var(--gutter); top: clamp(14px,2vw,22px); width:46px; height:46px; border:1px solid var(--line-2); border-radius: var(--r-pill); background: var(--cream-2); place-items:center; color: var(--ink); transition: border-color .2s, color .2s; }
.subhead .menu-btn:hover { border-color: var(--red); color: var(--red); }

/* zwężanie przy przewijaniu */
.subhead.compact { background: rgba(255,255,255,.94); }
.subhead.compact .container { padding-block: 12px 0; }
.subhead.compact .logo-c { font-size: clamp(24px,2.6vw,28px); }
.subhead.compact .logo-c::before { opacity:0; margin-bottom:0; font-size:0; }
.subhead.compact .logo-c::after { opacity:0; max-height:0; margin-top:0; overflow:hidden; }
.subhead.compact .nav-l { margin-top: 10px; padding: 8px 0; }

@media (max-width: 980px){
  .subhead .container { flex-direction:row; justify-content:center; min-height: 64px; padding-block: 0; }
  .subhead .nav-l { display:none; }
  .subhead .logo-c { font-size: 23px; }
  .subhead .logo-c::before, .subhead .logo-c::after { display:none; }
  .subhead .menu-btn { display:inline-grid; top:50%; transform: translateY(-50%); }
  .subhead .nav-r { top:50%; transform: translateY(-50%); }
}

/* ----------------------------- menu mobilne (overlay) -------------------- */
.m-nav { position: fixed; inset: 0; z-index: 200; background: rgba(36,26,20,.5); backdrop-filter: blur(4px); opacity:0; pointer-events:none; transition: opacity .3s var(--ease); }
.m-nav.open { opacity:1; pointer-events:auto; }
.m-nav-panel { position:absolute; top:0; right:0; bottom:0; width: min(380px, 86vw); background: var(--cream); box-shadow: var(--sh-3); transform: translateX(100%); transition: transform .35s var(--ease); display:flex; flex-direction:column; padding: var(--s4) var(--s4) var(--s5); }
.m-nav.open .m-nav-panel { transform: none; }
.m-nav-head { display:flex; align-items:center; justify-content:space-between; padding-bottom: var(--s3); border-bottom:1px solid var(--line); }
.m-nav-logo { font-family: var(--display); font-weight:800; font-size: 24px; }
.m-nav-logo b { color: var(--red); }
.m-nav-close { width:44px; height:44px; border:1px solid var(--line-2); border-radius: var(--r-pill); background: var(--cream-2); display:grid; place-items:center; color: var(--ink); }
.m-nav-close:hover { border-color: var(--red); color: var(--red); }
.m-nav-links { display:flex; flex-direction:column; padding: var(--s3) 0; flex:1; }
.m-nav-links .m-link { font-family: var(--display); font-weight:700; font-size: 24px; color: var(--ink); padding: 13px 0; border-bottom:1px solid var(--line); transition: color .2s, padding-left .2s; }
.m-nav-links .m-link:hover, .m-nav-links .m-link.is-current { color: var(--red); padding-left: 8px; }
.m-nav-foot { display:flex; flex-direction:column; gap: var(--s3); padding-top: var(--s3); }
.m-nav-cta { display:block; text-align:center; background: var(--red); color:#fff; font-family: var(--sans); font-weight:600; padding: 14px; border-radius: var(--r-pill); }
.m-nav-cta:hover { background: var(--orange); }
.m-nav-lang { justify-content:center; }
.m-nav-lang button { font-family: var(--sans); }

/* ----------------------------- okruszki ---------------------------------- */
.crumbs { font-size: 13.5px; color: var(--muted); display:flex; gap: var(--s1); align-items:center; flex-wrap:wrap; }
.crumbs a:hover { color: var(--red); }
.crumbs .s { color: var(--line-2); }

/* ============================ BLOG — INDEKS =============================== */
.blog-hero { padding-block: clamp(40px, 6vw, 72px) var(--s5); text-align:center; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 72px); margin-top: var(--s2); }
.blog-hero p { color: var(--muted); margin: var(--s2) auto 0; max-width: 56ch; font-size: 18px; }
.blog-search { margin: var(--s5) auto 0; max-width: 520px; display:flex; align-items:center; gap: var(--s1); background: var(--cream-2); border:1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 7px 7px 7px 22px; box-shadow: var(--sh-1); }
.blog-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(214,62,18,.1); }
.blog-search svg { color: var(--muted); flex:none; }
.blog-search input { flex:1; border:none; background:none; font-family: var(--body); font-size: 16px; padding: 11px 4px; min-width:0; }
.blog-search input:focus { outline:none; }

.filters-bar { display:flex; gap: var(--s1); flex-wrap:wrap; justify-content:center; margin-top: var(--s4); }
.cat-chip { min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border:1.5px solid var(--line-2); background: var(--cream-2); font-size: 14px; font-weight:600; color: var(--ink); transition: all .2s; display:inline-flex; align-items:center; gap:6px; }
.cat-chip .c { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-chip:hover { border-color: var(--red); color: var(--red); }
.cat-chip.is-active { background: var(--red); color:#fff; border-color: var(--red); }
.cat-chip.is-active .c { color: rgba(255,255,255,.8); }

/* polecany */
.featured { display:grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px,3vw,48px); align-items:center; background: var(--cream-2); border:1.5px solid var(--line); border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--sh-1); }
.featured .media { position:relative; align-self:stretch; min-height: 320px; }
.featured .media .ph { position:absolute; inset:0; }
.featured .body { padding: clamp(24px,3vw,48px); }
.featured h2 { font-size: clamp(26px,3vw,40px); margin: var(--s2) 0; }
.featured p { color: var(--ink-2); }
.featured .meta { margin-top: var(--s3); font-size: 13.5px; color: var(--muted); display:flex; gap: var(--s1); align-items:center; flex-wrap:wrap; }
.featured .meta .dot { width:3px; height:3px; border-radius:50%; background: var(--line-2); }
@media (max-width: 860px){ .featured { grid-template-columns: 1fr; } .featured .media { min-height: 220px; } }

/* siatka artykułów */
.posts-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--s4); }
.post-card { background: var(--cream-2); border:1.5px solid var(--line); border-radius: var(--r-lg); overflow:hidden; display:flex; flex-direction:column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.post-card .media { position:relative; }
.post-card .ph { aspect-ratio: 16/10; }
.post-card .cat { position:absolute; left: var(--s3); top: var(--s3); }
.post-card .body { padding: var(--s4); flex:1; display:flex; flex-direction:column; }
.post-card h3 { font-size: 21px; line-height:1.16; transition: color .2s; }
.post-card:hover h3 { color: var(--red); }
.post-card .excerpt { color: var(--muted); font-size: 15px; margin-top: var(--s2); }
.post-card .meta { margin-top: auto; padding-top: var(--s3); font-size: 13px; color: var(--muted); display:flex; gap: var(--s1); align-items:center; }
.post-card .meta .dot { width:3px; height:3px; border-radius:50%; background: var(--line-2); }
@media (max-width: 860px){ .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px){ .posts-grid { grid-template-columns: 1fr; } }

.load-more { text-align:center; margin-top: var(--s6); }
.no-results { text-align:center; padding: var(--s8) var(--gutter); color: var(--muted); }
.no-results h3 { font-size: 26px; color: var(--ink); margin-bottom: var(--s2); }

/* ============================ ARTYKUŁ ==================================== */
.article-wrap { max-width: 760px; margin-inline:auto; padding-inline: var(--gutter); }
.article-head { padding-block: var(--s5) var(--s4); }
.article-head .cat { margin-bottom: var(--s3); }
.article-head h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; }
.article-head .standfirst { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); margin-top: var(--s3); line-height:1.45; }
.article-meta { display:flex; align-items:center; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s3); border-top: 1.5px solid var(--line); flex-wrap:wrap; }
.article-meta .avatar { width: 44px; height:44px; border-radius:50%; background: var(--cream-3); border:1.5px solid var(--line); display:grid; place-items:center; font-family: var(--display); font-weight:700; color: var(--red); }
.article-meta .who b { display:block; font-size: 14.5px; } .article-meta .who span { font-size: 13px; color: var(--muted); }
.article-meta .spacer { flex:1; }
.article-meta .share { display:flex; gap: var(--s1); }
.article-meta .share a { width: 38px; height:38px; border-radius:50%; border:1.5px solid var(--line-2); display:grid; place-items:center; color: var(--muted); transition: all .2s; }
.article-meta .share a:hover { border-color: var(--red); color: var(--red); }

.article-hero { margin-block: var(--s5); }
.article-hero .ph { aspect-ratio: 16/9; border-radius: var(--r-lg); box-shadow: var(--sh-2); }

/* proza */
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.78; color: var(--ink); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: var(--s6); line-height: 1.15; }
.prose h2::before { content:''; display:block; width: 40px; height: 3px; background: var(--red); border-radius: 3px; margin-bottom: var(--s2); }
.prose p { text-wrap: pretty; }
.prose ul { padding-left: 0; list-style: none; display:grid; gap: var(--s2); }
.prose ul li { padding-left: var(--s4); position: relative; }
.prose ul li::before { content:'✦'; position:absolute; left:0; color: var(--amber-deep); font-size: 13px; top: 4px; }
.prose strong, .prose b { font-weight: 700; }

.article-tags { margin-top: var(--s6); padding-top: var(--s4); border-top: 1.5px solid var(--line); display:flex; gap: var(--s1); flex-wrap:wrap; align-items:center; }
.article-tags .l { font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); font-weight:600; margin-right: var(--s1); }

.author-box { margin-top: var(--s6); background: var(--cream-3); border:1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display:flex; gap: var(--s3); align-items:center; }
.author-box .avatar { width: 60px; height:60px; border-radius:50%; background: var(--cream-2); border:1.5px solid var(--line); display:grid; place-items:center; font-family: var(--display); font-weight:700; font-size: 24px; color: var(--red); flex:none; }
.author-box .name { font-family: var(--display); font-weight:700; font-size: 20px; }
.author-box .role { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* nawigacja prev/next */
.pn-nav { display:grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s6); }
.pn { background: var(--cream-2); border:1.5px solid var(--line); border-radius: var(--r-md); padding: var(--s3); transition: border-color .2s, transform .2s; }
.pn:hover { border-color: var(--red); transform: translateY(-2px); }
.pn .l { font-size: 12px; letter-spacing:.12em; text-transform:uppercase; color: var(--muted); font-weight:600; }
.pn .t { font-family: var(--display); font-weight:700; font-size: 17px; margin-top: 6px; line-height:1.2; }
.pn.next { text-align:right; }
@media (max-width: 599px){ .pn-nav { grid-template-columns: 1fr; } .pn.next { text-align:left; } }

/* powiązane */
.related { margin-top: var(--s8); }
.related h2 { font-size: clamp(24px,2.8vw,34px); margin-bottom: var(--s4); }

/* progres czytania */
.read-progress { position: fixed; top:0; left:0; height: 3px; width:0; background: var(--red); z-index: 100; transition: width .1s linear; }
