/* article.css (podmień CAŁY plik) */

:root{
  --artBg: #ffffff;
  --artText: #0b1220;
  --artMuted: rgba(11,18,32,.72);
  --artLine: rgba(11,18,32,.10);
  --artLink: #2563eb;

  --artCard: color-mix(in oklab, var(--artBg) 92%, #000 8%);
  --artShadow: 0 18px 50px rgba(0,0,0,.10);
}

@media (prefers-color-scheme: dark){
  :root{
    --artBg: #070a12;
    --artText: #eef2ff;
    --artMuted: rgba(238,242,255,.72);
    --artLine: rgba(238,242,255,.10);
    --artLink: #60a5fa;

    --artCard: rgba(11,18,32,.65);
    --artShadow: 0 22px 70px rgba(0,0,0,.55);
  }
}

.artShell{
  min-height:100vh;
  background: var(--artBg);
  color: var(--artText);
}

/* ===== TOP PANEL (ładniej + sticky) ===== */
.artTop{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--artBg) 86%, transparent);
  border-bottom: 1px solid var(--artLine);
}
.artTopRow{
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 16px 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.artBack{
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color: var(--artText);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.artBackIco{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border: 1px solid var(--artLine);
  border-radius: 12px;
  background: color-mix(in oklab, var(--artBg) 90%, transparent);
  box-shadow: var(--artShadow);
}
.artBackTxt{
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity:.95;
}

.artMetaTop{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  overflow:auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.artMetaTop::-webkit-scrollbar{ display:none; }

.artTag{
  flex: 0 0 auto;
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border: 1px solid var(--artLine);
  border-radius: 999px;
  font-size: 13px;
  color: var(--artMuted);
  background: color-mix(in oklab, var(--artBg) 88%, transparent);
}

.artDot{ margin: 0 8px; opacity:.6; }

.artMain{
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.artArticle{
  max-width: 720px;
}

.artH1{
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
}

.artByline{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  font-size: 14px;
  color: var(--artMuted);
  margin: 0 0 18px;
}
.artAuthor{ font-weight: 900; color: var(--artText); opacity:.95; }

/* ===== VOTES inside article ===== */
.artVotes{
  display:flex;
  gap:8px;
  align-items:center;
}
.artVoteBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--artLine);
  background: color-mix(in oklab, var(--artBg) 88%, transparent);
  color: var(--artText);
  font-weight: 800;
  cursor:pointer;
  user-select:none;
}
.artVoteBtn.active{
  border-color: color-mix(in oklab, var(--artLink) 50%, var(--artLine));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--artLink) 18%, transparent);
}
.artVoteBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.artLead{
  font-size: 18px;
  line-height: 1.7;
  color: var(--artText);
  margin: 0 0 16px;
}

.artArticle p{
  font-size: 16px;
  line-height: 1.85;
  color: var(--artText);
  margin: 0 0 14px;
}

.artH2{
  margin: 24px 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.artCallout{
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--artLink);
  background: color-mix(in oklab, var(--artLink) 10%, transparent);
  border-radius: 10px;
}

.artFigure{
  margin: 18px 0 20px;
}
.artFigure img{
  width:100%;
  height:auto;
  border-radius: 14px;
  border: 1px solid var(--artLine);
}

.artAd{
  margin: 18px 0 18px;
  padding: 10px 0;
  border-top: 1px solid var(--artLine);
  border-bottom: 1px solid var(--artLine);
}

.artHr{
  border: 0;
  border-top: 1px solid var(--artLine);
  margin: 24px 0;
}

/* ===== TOC (Spis treści) ===== */
.artToc{
  margin: 14px 0 18px;
  padding: 14px 14px;
  border: 1px solid var(--artLine);
  border-radius: 16px;
  background: var(--artCard);
  box-shadow: var(--artShadow);
}
.artTocTitle{
  font-weight: 900;
  font-size: 15px;
  margin: 0 0 10px;
}
.artTocList{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.artTocList a{
  color: var(--artLink);
  text-decoration: none;
  font-weight: 900;
}
.artTocList a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 680px){
  .artTocList{
    column-count: 2;
    column-gap: 18px;
    display:block;
  }
  .artTocList li{
    break-inside: avoid;
    margin: 0 0 8px;
  }
}

/* kotwice: żeby nagłówki nie chowały się pod sticky topbar */
[id]{
  scroll-margin-top: 88px;
}

/* ===== YT promo (naprawa telefonu) ===== */
.ytPromo{
  display:flex;
  gap: 14px;
  align-items:center;
  padding: 14px;
  border: 1px solid var(--artLine);
  border-radius: 16px;
  background: var(--artCard);
  box-shadow: var(--artShadow);
  overflow:hidden;
}
.ytLeft{ flex: 0 0 auto; }
.ytAvatar{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--artLine);
  object-fit: cover;
  display:block;
  background: color-mix(in oklab, var(--artBg) 88%, transparent);
}
.ytMid{ min-width: 0; }
.ytTitle{
  font-weight: 900;
  margin-bottom: 2px;
}
.ytText{
  color: var(--artMuted);
  font-size: 14px;
  line-height: 1.4;
}
.ytRight{ margin-left:auto; }
.ytBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 900;
  color: #fff;
  background: #ff0033;
  white-space: nowrap;
}

/* ✅ Mobile: nic się nie “kwadraci”, wszystko się zawija */
@media (max-width: 520px){
  .ytPromo{ flex-wrap: wrap; gap: 10px; }
  .ytRight{ width: 100%; margin-left: 0; }
  .ytBtn{ width: 100%; }
}

/* ===== Proponowane artykuły ===== */
.artSug{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--artLine);
}
.artSugHead{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom: 12px;
}
.artSugTitle{ font-weight: 900; font-size: 18px; }
.artSugSub{ color: var(--artMuted); font-size: 13px; }

.artSugGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 680px){
  .artSugGrid{ grid-template-columns: 1fr 1fr; }
}

.aSugCard{
  display:block;
  text-decoration:none;
  color: inherit;
  border: 1px solid var(--artLine);
  border-radius: 16px;
  background: var(--artCard);
  box-shadow: var(--artShadow);
  padding: 12px 12px;
}
.aSugT{ font-weight: 900; line-height: 1.2; margin-bottom: 6px; }
.aSugS{ color: var(--artMuted); font-size: 13px; line-height: 1.35; margin-bottom: 10px; }
.aSugM{ display:flex; gap:10px; align-items:center; color: var(--artMuted); font-size: 12px; }
.aSugChip{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--artLine);
  background: color-mix(in oklab, var(--artBg) 88%, transparent);
}

.artSugState{
  margin-top: 10px;
  color: var(--artMuted);
  font-size: 13px;
}

/* ===== Modal (jak wolt, ale lokalnie) ===== */
.aModal.hidden{ display:none; }
.aModal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display:grid;
  place-items:center;
  padding: 18px;
}
.aModalBackdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.aModalBox{
  position:relative;
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid var(--artLine);
  background: var(--artCard);
  box-shadow: var(--artShadow);
  padding: 16px;
}
.aModalTitle{ font-weight: 900; font-size: 18px; margin-bottom: 6px; }
.aModalText{ color: var(--artMuted); font-size: 14px; line-height: 1.4; }
.aModalActions{
  display:flex;
  gap:10px;
  margin-top: 14px;
}
.aBtnPrimary, .aBtnGhost{
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--artLine);
  cursor:pointer;
}
.aBtnPrimary{
  background: linear-gradient(135deg,#06b6d4,#7c3aed);
  color: #fff;
  border-color: transparent;
}
.aBtnGhost{
  background: transparent;
  color: var(--artText);
}
@media (max-width: 520px){
  .aModalActions{ flex-direction:column; }
  .aBtnPrimary, .aBtnGhost{ width:100%; }
}

.artFooter{
  border-top: 1px solid var(--artLine);
  padding: 18px 16px;
  color: var(--artMuted);
  font-size: 13px;
  max-width: 860px;
  margin: 0 auto;
}

/* ===== SKEYORANK APP CTA (PREMIUM) ===== */
.srAppCta{
  margin:18px 0 18px;
  border-radius:24px;
  border:1px solid var(--artLine);
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(34,197,94,.22), rgba(34,197,94,0) 60%),
    radial-gradient(700px 260px at 95% 30%, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  overflow:hidden;
  position:relative;
}
.srAppCta::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(900px 220px at 15% 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%);
  pointer-events:none;
  opacity:.95;
}

.srAppCtaIn{
  position:relative;
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
  padding:16px 16px;
  align-items:center;
}
@media (max-width:760px){
  .srAppCtaIn{ grid-template-columns:1fr; }
}

.srAppCtaKicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.20);
  color:var(--artText);
  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;
}
.srAppCtaTitle{
  margin:10px 0 6px;
  font-size:18px;
  line-height:1.15;
  font-weight:1000;
  color:var(--artText);
}
.srAppCtaDesc{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:var(--artMuted);
  max-width:62ch;
}

.srAppCtaChips{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.srAppCtaChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--artText);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.srAppCtaChip .dot{
  width:7px;height:7px;border-radius:99px;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.18);
  display:inline-block;
}

.srAppCtaActions{
  margin-top:12px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

/* Google Play badge + strzałka */
.srGpWrap{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.srGpBadge{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.srGpBadge img{
  height:52px;
  width:auto;
  display:block;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.25));
}
@media (max-width:520px){
  .srGpBadge img{ height:50px; }
}

.srClickHint{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  color:var(--artText);
  font-size:12px;
  font-weight:1000;
  opacity:.92;
  white-space:nowrap;
}
.srArrowAnim{
  display:inline-block;
  font-size:14px;
  animation: srBounce 1.1s infinite;
}
@keyframes srBounce{
  0%,100%{ transform: translateX(0); opacity:.9; }
  50%{ transform: translateX(5px); opacity:1; }
}

/* prawa strona: na telefonie ukryta */
.srAppCtaRight{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
@media (max-width:760px){
  .srAppCtaRight{ display:none; }
}

/* phone mock (desktop) */
.srPhone{
  width: 170px;
  height: 240px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(140px 120px at 30% 20%, rgba(34,197,94,.22), rgba(34,197,94,0) 65%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 26px 70px rgba(0,0,0,.35);
  position:relative;
  overflow:hidden;
}
.srPhone::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(240px 120px at 0% 0%, rgba(255,255,255,.16), rgba(255,255,255,0) 60%);
  opacity:.9;
  pointer-events:none;
}
.srPhoneTop{
  position:absolute;
  top:10px; left:12px; right:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  opacity:.95;
}
.srPhonePill{
  height:10px; width:72px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.10);
}
.srPhoneDot{
  width:10px;height:10px;border-radius:99px;
  background:rgba(34,197,94,.85);
  box-shadow:0 0 0 4px rgba(34,197,94,.18);
}
.srPhoneBody{
  position:absolute;
  top:38px; left:12px; right:12px; bottom:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.srPhoneRow{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}
.srPhoneCard{
  margin-top:6px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.srPhoneCard .srPhoneRow{ height:9px; }
.srPhoneMiniGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:auto;
}
.srPhoneMini{
  height:34px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(34,197,94,.10);
}
/* =========================
   EXTRA (WPO + A11y + CLS)
   dopisek z artykułu "jak-wybrac-najlepsze-godziny-glovo-uber-eats"
========================= */

html{ scroll-behavior:smooth; }

.srOnly{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* CLS: rezerwacja miejsca na reklamy + suggested */
.artAd{ min-height:280px; }
#suggestedGrid{ min-height:300px; }

@media (max-width:520px){
  .artAd{ min-height:220px; }
  #suggestedGrid{ min-height:220px; }
}

/* placeholder, gdyby JS nie doładował suggested */
#suggestedGrid:empty{
  border: 1px dashed var(--artLine);
  border-radius: 16px;
  padding: 12px;
  color: var(--artMuted);
  background: var(--artCard);
}
#suggestedGrid:empty::before{
  content: "Proponowane artykuły ładują się z bazy. Jeśli nic się nie pojawia, odśwież stronę.";
  display:block;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.35;
}

/* A11y: minimalna stabilizacja liczników (CLS) */
#viewsCount, #likesCount, #dislikesCount{
  display:inline-block;
  min-width: 2ch;
}

/* Plan tygodnia – fallback bez color-mix + lepszy sticky head */
#plan-tygodnia + p + .srPlanWrap{
  margin:14px 0 18px;
  border:1px solid var(--artLine);
  border-radius:18px;
  background: var(--artCard);
  box-shadow: var(--artShadow);
  overflow:hidden;
}
.srPlanScroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.srPlanTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:760px;
}
.srPlanTable th,
.srPlanTable td{
  padding:12px 14px;
  border-bottom:1px solid var(--artLine);
  vertical-align:top;
  font-size:14px;
  line-height:1.45;
}
.srPlanTable thead th{
  position:sticky;
  top:0;
  z-index:1;
  background: var(--artBg); /* pełne tło, bez prześwitu */
  font-weight:1000;
  text-align:left;
}
@supports (background: color-mix(in oklab, white 50%, black 50%)){
  .srPlanTable thead th{
    background: color-mix(in oklab, var(--artBg) 92%, #000 8%);
  }
}

.srPlanTable tbody tr:nth-child(even){
  background: var(--artBg);
}
@supports (background: color-mix(in oklab, white 50%, black 50%)){
  .srPlanTable tbody tr:nth-child(even){
    background: color-mix(in oklab, var(--artBg) 96%, #000 4%);
  }
}

.srPlanTable tbody tr:hover{
  background: var(--artBg);
}
@supports (background: color-mix(in oklab, white 50%, black 50%)){
  .srPlanTable tbody tr:hover{
    background: color-mix(in oklab, var(--artBg) 92%, var(--artLink) 8%);
  }
}

.srPlanDay{
  white-space:nowrap;
  font-weight:1000;
}
.srPlanNote{ color:var(--artText); }

.srChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--artLine);
  background: var(--artBg);
  box-shadow: var(--artShadow);
  font-weight:1000;
  white-space:nowrap;
}
@supports (background: color-mix(in oklab, white 50%, black 50%)){
  .srChip{
    background: color-mix(in oklab, var(--artBg) 88%, #000 12%);
  }
}
.srChip--muted{ color:var(--artMuted); }

.srMini{
  display:inline-block;
  margin-left:8px;
  color:var(--artMuted);
  font-size:12px;
  white-space:nowrap;
}

.srPlanTable col.colDay { width:16%; }
.srPlanTable col.colB1  { width:18%; }
.srPlanTable col.colB2  { width:22%; }
.srPlanTable col.colNote{ width:44%; }

.srPlanFoot{
  padding:10px 14px 12px;
  color:var(--artMuted);
  font-size:13px;
  line-height:1.4;
  border-top:1px solid var(--artLine);
  background: var(--artBg);
}
@supports (background: color-mix(in oklab, white 50%, black 50%)){
  .srPlanFoot{
    background: color-mix(in oklab, var(--artBg) 98%, #000 2%);
  }
}

@media (max-width:520px){
  .srPlanTable{ min-width:700px; }
  .srPlanTable th,.srPlanTable td{ padding:10px 12px; }
  .srPlanFoot{ font-size:12.5px; }
}
html, body { font-family: inherit; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
/* SILKTIDE — MOBILE: przenieś ikonę cookies na prawą stronę (przebija inline <style>) */
@media (max-width:768px){
  html body #silktide-cookie-icon,
  html body #silktideCookieIcon,
  html body .silktide-cookie-icon,
  html body .silktide-cookie-icon-button,
  html body [data-silktide-cookie-icon],
  html body [class*="silktide"][class*="cookie"][class*="icon"],
  html body [id*="silktide"][id*="cookie"][id*="icon"]{
    left: auto !important;
    right: 12px !important;
    top: 12px !important;
    bottom: auto !important;
  }
}
