/* Porzadki 2026-12-02: czytelne karty w sliderach, mniej metadanych na kartach, mniejszy baner cookies.
   Usuniecie tego pliku przywraca poprzedni wyglad. */

/* 1. Karty w przewijanych sekcjach bez wyszarzania (JS ustawia przezroczystosc zmienna CSS). */
html body [data-home-carousel-item],
html body [style*="--related-slide-opacity"] { opacity: 1 !important; }

/* 2. Karty: bez tagow, reakcji i licznika. Stopka (Czytaj, Zapisz) zostaje. */
html body .post-card .reactions,
html body .post-card .post-tags,
html body .post-card .post-card__read-count,
html body .post-card .post-card__read-count-sep,
html body .home-featured__article .post-tags,
html body .home-featured__article .post-card__read-count,
html body .home-featured__article .post-card__read-count-sep { display: none !important; }

/* Dolny odstep dawal wczesniej rzad reakcji: teraz rowny bocznemu, stopki wyrownane do dolu. */
html body .post-card .post-card__main { display: flex; flex-direction: column; flex: 1 1 auto; }
html body .post-card .post-card__footer { margin-top: auto; padding-top: 1.1rem; padding-bottom: 1.35rem; }
html body [class*="related-posts"] .post-card .post-card__footer { padding-top: .7rem; padding-bottom: .25rem; }

/* Najnowszy wpis trzyma proporcje bez tagow. */
@media (min-width: 64rem) {
    html body .home-featured__article { min-height: 30rem; }
    html body .home-featured__body { justify-content: center; }
}

/* 3. Baner cookies: nizszy, dwa rownorzedne przyciski obok siebie. */
html body .cookie-consent__card { padding: .8rem .9rem; border-radius: 1rem; }
html body .cookie-consent__title { font-size: .9rem; }
html body .cookie-consent__text { margin-top: .3rem; font-size: .8rem; line-height: 1.4; }
html body .cookie-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .65rem; }
html body .cookie-consent__actions .cookie-consent__btn {
    width: 100%;
    min-height: 2.5rem;
    padding-inline: .5rem;
    background: transparent;
    color: var(--color-base-content);
    border: 1px solid color-mix(in oklab, var(--color-base-content) 35%, transparent);
}
html body .cookie-consent__actions .cookie-consent__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
html body .cookie-consent__link { display: inline-block; margin-top: .5rem; font-size: .75rem; }

/* 4. Listy (kategorie, tagi, wyszukiwanie): dwie kolumny na komputerze. */
@media (min-width: 64rem) {
    html body .post-list > .site-shell { max-width: 72rem; }
    html body .post-list .post-list__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; width: 100%; max-width: none; }
    html body .post-list .post-list__items > * { margin: 0; min-width: 0; }
    html body .post-list .post-list__items > :not(.post-card) { grid-column: 1 / -1; }
}

/* 5. Artykul: powrot dublowal sciezke nawigacji. */
html body.single-post .post__back { display: none; }

/* 6. Jasny motyw: drobne teksty z lepszym kontrastem. */
html[data-theme="wojtek-light"] body .breadcrumbs__link,
html[data-theme="wojtek-light"] body .post-author__label,
html[data-theme="wojtek-light"] body .site-footer__cookies,
html[data-theme="wojtek-light"] body .site-footer__projects-title,
html[data-theme="wojtek-light"] body .post-card__excerpt,
html[data-theme="wojtek-light"] body .post-card__meta { color: #5c5c5c; opacity: 1; }
html body .lang-switch__link:not(.is-active) { opacity: .75; }

/* 7. Wieksze cele dotykowe. */
html body .lang-switch__link,
html body .home-category__all,
html body .post-card__more { display: inline-flex; align-items: center; min-height: 1.75rem; min-width: 1.5rem; }

/* 8. Plywajace kropki pod trescia, reaguja na myszke (rysuje je js/refine.js na canvas). */
.pointer-dots { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
html body { isolation: isolate; }
@media print, (forced-colors: active), (prefers-contrast: more) { .pointer-dots { display: none; } }

/* 9. Najnowszy wpis: link zaraz pod zajawka. Powiazane wpisy: ten sam styl stopki co reszta kart. */
@media (min-width: 64rem) { html body .home-featured__body .home-featured__read { margin-top: 1.5rem !important; } }
html body [class*="related-posts"] .post-card .post-card__more { color: var(--color-base-content); opacity: 1; }
html body [class*="related-posts"] .post-card .post-card__more:hover { color: var(--color-primary); }
html body [class*="related-posts"] .post-card .post-card__save { border-color: transparent; background: transparent; }

/* Strona glowna miala nieprzezroczyste tlo, ktore zaslanialo poswiate (to samo tlo daje <html>). */
html body main.editorial-home { background: transparent; }

/* 10. Faktura kart: bardzo delikatna na calosci, mocniejsza w prawym dolnym rogu. Czerwona po najechaniu. */
html body .post-card { position: relative; overflow: hidden; }
html body .post-card::before,
html body .post-card::after {
    content: "";
    position: absolute;
    inset: 9px; /* + pol kafla = margines rowny odstepowi miedzy kropkami (18px) */
    pointer-events: none;
    background: radial-gradient(circle, color-mix(in oklab, var(--color-base-content) 42%, transparent) .8px, transparent 1.2px) right bottom / 18px 18px;
    background-repeat: round; /* pelne kafle: taki sam margines z lewej i z prawej */
    -webkit-mask-image: radial-gradient(ellipse 15rem 11rem at 100% 100%, #000 5%, rgb(0 0 0 / .17) 100%);
    mask-image: radial-gradient(ellipse 15rem 11rem at 100% 100%, #000 5%, rgb(0 0 0 / .17) 100%);
    transition: opacity .25s ease;
}
html body .post-card::after { background-image: radial-gradient(circle, var(--color-primary) .8px, transparent 1.2px); opacity: 0; }
/* Zdjecia zostaja czyste, nad faktura. */
html body .post-card .post-card__media,
html body .post-card .home-featured__media { position: relative; z-index: 1; }
html body .post-card:hover::after,
html body .post-card:focus-within::after { opacity: 1; }
html body .post-card:hover::before,
html body .post-card:focus-within::before { opacity: 0; }
@media print, (forced-colors: active), (prefers-contrast: more) { html body .post-card::before, html body .post-card::after { display: none; } }
