/* ============================================================
   POKEPOLIS ENGINE — GŁÓWNY ARKUSZ STYLÓW
   Styl: kolekcjonerski / fandom — żółto-czarny Pokémon, karty, energia
   Struktura: tokens → reset → layout → komponenty → utilities → responsive
   ============================================================ */

/* Czcionki Google ładowane przez functions.php — brak @import tutaj. */

/* ---------- 1. DESIGN TOKENS ---------- */
:root{
  /* Paleta główna — Pokémon brand */
  --pkp-yellow:       #FFCB05;   /* Electric Yellow — główny akcent */
  --pkp-yellow-dark:  #E5B800;   /* Hover state */
  --pkp-yellow-tint:  #FFFBE6;   /* Jasne tło dla calloutów */
  --pkp-red:          #CC0000;   /* Pokéball Red — drugorzędny akcent */
  --pkp-red-dark:     #A50000;
  --pkp-red-tint:     #FFF0F0;

  /* Neutralne */
  --pkp-ink:          #1A1A2E;   /* Granat — ciemny tekst (nie czarny) */
  --pkp-ink-soft:     #3D3D5C;
  --pkp-ink-muted:    #7B7B9A;
  --pkp-paper:        #FFFFFF;
  --pkp-paper-dim:    #F8F8FC;   /* Lekko niebieskawa biel */
  --pkp-line:         #E2E2EE;
  --pkp-line-strong:  #BBBBD0;

  /* Specjalne — typy Pokémonów (używane do kart kategorii) */
  --pkp-fire:         #FF6B35;
  --pkp-water:        #3B8FD4;
  --pkp-grass:        #2E9E4A;
  --pkp-electric:     #F4CC15;
  --pkp-psychic:      #D653A5;
  --pkp-dark:         #4A3B5C;
  --pkp-steel:        #6B8FA8;
  --pkp-dragon:       #5B3FD3;

  /* Rozmiary */
  --pkp-radius:       4px;
  --pkp-radius-md:    8px;
  --pkp-radius-lg:    16px;
  --pkp-radius-xl:    24px;
  --pkp-radius-pill:  999px;

  /* Typografia */
  --pkp-font-head:    "Nunito", "Inter", "Segoe UI", sans-serif;
  --pkp-font-body:    "Inter", "Segoe UI", sans-serif;
  --pkp-font-mono:    "JetBrains Mono", "IBM Plex Mono", monospace;
  --pkp-text-base:    16px;

  /* Layout */
  --pkp-container:    1200px;
  --pkp-container-md: 860px;    /* artykuł/hub content */
  --pkp-header-h:     72px;

  /* Cienie */
  --pkp-shadow-sm:    0 1px 3px rgba(26,26,46,.08);
  --pkp-shadow-md:    0 4px 16px rgba(26,26,46,.12);
  --pkp-shadow-lg:    0 12px 32px rgba(26,26,46,.16);
  --pkp-shadow-card:  0 2px 8px rgba(26,26,46,.10);

  /* Przejścia */
  --pkp-transition:   .2s ease;
  --pkp-transition-slow: .35s ease;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body{
  margin: 0;
  font-family: var(--pkp-font-body);
  font-size: var(--pkp-text-base);
  color: var(--pkp-ink);
  background: var(--pkp-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--pkp-red); }
ul, ol{ margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select{ font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6{ font-family: var(--pkp-font-head); font-weight: 800; margin: 0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Accessibility */
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.pkp-skip-link{
  background: var(--pkp-ink);
  color: #fff;
  padding: 10px 18px;
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 9999;
  border-radius: var(--pkp-radius-md);
  font-weight: 700;
  transition: top var(--pkp-transition);
}
.pkp-skip-link:focus{ top: 12px; width: auto; height: auto; clip: auto; }
:focus-visible{ outline: 3px solid var(--pkp-yellow); outline-offset: 2px; }

/* ---------- 3. LAYOUT CONTAINERS ---------- */
.pkp-container{
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
}
.pkp-container--md{
  max-width: var(--pkp-container-md);
  margin: 0 auto;
  padding: 0 20px;
}
.pkp-main{ display: block; min-height: 60vh; }

/* ---------- 4. HEADER ---------- */
.pkp-header{
  background: var(--pkp-ink);
  border-bottom: 3px solid var(--pkp-yellow);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow var(--pkp-transition);
}
.pkp-header.is-scrolled{
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.pkp-header__inner{
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--pkp-header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.pkp-header__logo{
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.pkp-header__logo img{
  height: 44px;
  width: auto;
}
.pkp-header__logo-text{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: 22px;
  color: var(--pkp-yellow);
  letter-spacing: -0.5px;
}
.pkp-header__nav{
  flex: 1;
  display: flex;
  align-items: center;
}
.pkp-header__menu{
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.pkp-header__menu > li{
  position: relative;
}
.pkp-header__menu > li > a{
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: #e8e8f0;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--pkp-radius);
  transition: color var(--pkp-transition), background var(--pkp-transition);
  white-space: nowrap;
}
.pkp-header__menu > li > a:hover,
.pkp-header__menu > li.current-menu-item > a,
.pkp-header__menu > li.current-menu-ancestor > a{
  color: var(--pkp-yellow);
  background: rgba(255,203,5,.08);
}
/* Dropdown */
.pkp-header__menu .sub-menu{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #1e2040;
  border: 1px solid rgba(255,203,5,.15);
  border-radius: var(--pkp-radius-md);
  box-shadow: var(--pkp-shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--pkp-transition), transform var(--pkp-transition), visibility var(--pkp-transition);
  z-index: 100;
}
.pkp-header__menu > li:hover > .sub-menu,
.pkp-header__menu > li:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pkp-header__menu .sub-menu a{
  display: block;
  padding: 9px 16px;
  color: #c8c8e0;
  font-size: 13.5px;
  font-weight: 500;
  transition: color var(--pkp-transition), background var(--pkp-transition);
}
.pkp-header__menu .sub-menu a:hover{ color: var(--pkp-yellow); background: rgba(255,203,5,.06); }
/* Pasek górny: Kontakt / Social */
.pkp-topbar{
  background: #12122A;
  border-bottom: 1px solid rgba(255,203,5,.1);
  padding: 5px 0;
}
.pkp-topbar__inner{
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pkp-topbar__links{
  display: flex;
  gap: 16px;
}
.pkp-topbar__links a{
  font-size: 12px;
  color: #8888AA;
  font-weight: 500;
  transition: color var(--pkp-transition);
}
.pkp-topbar__links a:hover{ color: var(--pkp-yellow); }
.pkp-topbar__social{
  display: flex;
  gap: 10px;
  align-items: center;
}
.pkp-topbar__social a{
  font-size: 12px;
  color: #8888AA;
  transition: color var(--pkp-transition);
}
.pkp-topbar__social a:hover{ color: var(--pkp-yellow); }
/* Search + hamburger */
.pkp-header__actions{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pkp-header__search-toggle,
.pkp-header__menu-toggle{
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pkp-radius);
  color: #c8c8e0;
  transition: color var(--pkp-transition), background var(--pkp-transition);
}
.pkp-header__search-toggle:hover,
.pkp-header__menu-toggle:hover{
  color: var(--pkp-yellow);
  background: rgba(255,255,255,.06);
}
.pkp-header__menu-toggle{ display: none; }
.pkp-header__menu-icon,
.pkp-header__menu-icon::before,
.pkp-header__menu-icon::after{
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--pkp-transition), opacity var(--pkp-transition);
}
.pkp-header__menu-icon{ position: relative; }
.pkp-header__menu-icon::before,
.pkp-header__menu-icon::after{
  content: "";
  position: absolute;
  left: 0;
}
.pkp-header__menu-icon::before{ top: -7px; }
.pkp-header__menu-icon::after{ top: 7px; }
/* Wyszukiwarka dropdown */
.pkp-header__search{
  background: #12122A;
  border-top: 1px solid rgba(255,203,5,.15);
  padding: 12px 0;
}
.pkp-header__search-inner{
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
}
.pkp-header__search input[type="search"]{
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,203,5,.25);
  border-radius: var(--pkp-radius-md);
  color: #fff;
  font-size: 16px;
  outline: none;
}
.pkp-header__search input[type="search"]::placeholder{ color: #6666AA; }
.pkp-header__search input[type="search"]:focus{
  border-color: var(--pkp-yellow);
  background: rgba(255,203,5,.05);
}

/* ---------- 5. BREADCRUMBS ---------- */
.pkp-breadcrumbs-bar{
  background: var(--pkp-paper-dim);
  border-bottom: 1px solid var(--pkp-line);
  padding: 8px 0;
}
.pkp-breadcrumbs{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--pkp-ink-muted);
}
.pkp-breadcrumbs a{
  color: var(--pkp-ink-muted);
  transition: color var(--pkp-transition);
}
.pkp-breadcrumbs a:hover{ color: var(--pkp-red); }
.pkp-breadcrumbs__sep{ opacity: .4; }

/* ---------- 6. CATEGORY BADGE / TYPE PILLS ---------- */
.pkp-badge{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--pkp-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: var(--pkp-radius-pill);
  line-height: 1;
  color: #fff;
  background: var(--pkp-red);
}
/* Warianty kolorystyczne per dział */
.pkp-badge--pokemon  { background: #FFCB05; color: #1A1A2E; }
.pkp-badge--tcg      { background: var(--pkp-red); }
.pkp-badge--anime    { background: var(--pkp-psychic); }
.pkp-badge--lego     { background: #E3000B; }
.pkp-badge--marvel   { background: #E23636; }
.pkp-badge--gry      { background: var(--pkp-grass); }
.pkp-badge--kolekcje { background: var(--pkp-dragon); }
.pkp-badge--retro    { background: #8B6914; }
.pkp-badge--new{
  background: var(--pkp-yellow);
  color: var(--pkp-ink);
  animation: pkpPulse 2s infinite;
}
@keyframes pkpPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(255,203,5,.4); }
  50%{ box-shadow: 0 0 0 6px rgba(255,203,5,0); }
}

/* ---------- 7. CONTENT CARDS ---------- */
.pkp-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pkp-grid--2col{ grid-template-columns: repeat(2, 1fr); }
.pkp-grid--4col{ grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pkp-grid--compact{ grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* Karta główna */
.pkp-card{
  background: var(--pkp-paper);
  border: 1px solid var(--pkp-line);
  border-radius: var(--pkp-radius-lg);
  overflow: hidden;
  transition: transform var(--pkp-transition), box-shadow var(--pkp-transition), border-color var(--pkp-transition);
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.pkp-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--pkp-shadow-md);
  border-color: var(--pkp-yellow);
}
.pkp-card__thumb-wrap{
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--pkp-paper-dim);
}
.pkp-card__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--pkp-transition-slow);
}
.pkp-card:hover .pkp-card__image{ transform: scale(1.04); }
.pkp-card__thumb-placeholder{
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1A1A2E 0%, #2E2E5A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,203,5,.3);
  font-size: 40px;
}
.pkp-card__badge-wrap{
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
}
.pkp-card__body{
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pkp-card__title{
  font-family: var(--pkp-font-head);
  font-weight: 800;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.3;
  color: var(--pkp-ink);
  transition: color var(--pkp-transition);
}
.pkp-card:hover .pkp-card__title{ color: var(--pkp-red); }
.pkp-card__excerpt{
  font-size: 13.5px;
  color: var(--pkp-ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.pkp-card__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  color: var(--pkp-ink-muted);
  margin-top: 4px;
}
.pkp-card__read-more{
  font-size: 12px;
  font-weight: 700;
  color: var(--pkp-red);
  font-family: var(--pkp-font-mono);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Karta kompaktowa (lista boczna) */
.pkp-card-compact{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--pkp-line);
  transition: opacity var(--pkp-transition);
}
.pkp-card-compact:last-child{ border-bottom: none; }
.pkp-card-compact:hover{ opacity: .8; }
.pkp-card-compact__image{
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--pkp-radius);
  flex-shrink: 0;
  background: var(--pkp-paper-dim);
  border-bottom: 2px solid var(--pkp-yellow);
}
.pkp-card-compact__title{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pkp-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pkp-card-compact:hover .pkp-card-compact__title{ color: var(--pkp-red); }
.pkp-card-compact__cat{
  font-size: 11px;
  color: var(--pkp-ink-muted);
  font-family: var(--pkp-font-mono);
  margin-top: 3px;
  display: block;
}

/* Karta Pokémon (Pokédex / specjalna) */
.pkp-pokemon-card{
  background: linear-gradient(135deg, #1A1A2E 0%, #2A2A50 100%);
  border: 2px solid rgba(255,203,5,.2);
  border-radius: var(--pkp-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color var(--pkp-transition), transform var(--pkp-transition);
  cursor: pointer;
}
.pkp-pokemon-card:hover{
  border-color: var(--pkp-yellow);
  transform: translateY(-2px);
}
.pkp-pokemon-card__img{
  width: 80px; height: 80px;
  object-fit: contain;
  image-rendering: pixelated;
}
.pkp-pokemon-card__name{
  font-family: var(--pkp-font-head);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.pkp-pokemon-card__number{
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  color: rgba(255,203,5,.6);
}
/* Typy Pokémona */
.pkp-type-badge{
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: var(--pkp-radius-pill);
  color: #fff;
}

/* ---------- 8. HUB SECTION (odpowiednik Home Section) ---------- */
.pkp-hub-section{
  margin: 36px 0;
}
.pkp-hub-section__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pkp-line);
}
.pkp-hub-section__title{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--pkp-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}
.pkp-hub-section__title::before{
  content: "";
  width: 5px;
  height: 26px;
  background: var(--pkp-yellow);
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
}
.pkp-hub-section__more{
  font-family: var(--pkp-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pkp-red);
  white-space: nowrap;
  transition: gap var(--pkp-transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pkp-hub-section__more:hover{ gap: 8px; color: var(--pkp-red-dark); }

/* ---------- 9. HERO — STRONA GŁÓWNA ---------- */
.pkp-home-hero{
  background: linear-gradient(135deg, #0D0D1A 0%, #1A1A3E 50%, #0D1A2E 100%);
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}
/* Dekoracyjne Pokéballe w tle */
.pkp-home-hero::before{
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border: 120px solid rgba(255,203,5,.04);
  border-radius: 50%;
  right: -200px;
  top: -200px;
  pointer-events: none;
}
.pkp-home-hero::after{
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border: 80px solid rgba(204,0,0,.04);
  border-radius: 50%;
  left: -150px;
  bottom: -150px;
  pointer-events: none;
}
.pkp-home-hero__inner{
  position: relative;
  z-index: 1;
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
}
.pkp-home-hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pkp-yellow);
  margin-bottom: 14px;
}
.pkp-home-hero__title{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.pkp-home-hero__title em{
  color: var(--pkp-yellow);
  font-style: normal;
}
.pkp-home-hero__subtitle{
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,.65);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.pkp-home-hero__cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pkp-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pkp-font-head);
  font-weight: 800;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--pkp-radius-md);
  transition: transform var(--pkp-transition), box-shadow var(--pkp-transition), background var(--pkp-transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.pkp-btn:hover{ transform: translateY(-2px); }
.pkp-btn--primary{
  background: var(--pkp-yellow);
  color: var(--pkp-ink);
  box-shadow: 0 4px 12px rgba(255,203,5,.3);
}
.pkp-btn--primary:hover{ background: var(--pkp-yellow-dark); color: var(--pkp-ink); }
.pkp-btn--secondary{
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.pkp-btn--secondary:hover{ background: rgba(255,255,255,.18); color: #fff; }
/* Quicklinks hero */
.pkp-home-hero__quicklinks{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.pkp-quicklink{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,203,5,.15);
  border-radius: var(--pkp-radius-pill);
  font-size: 13px;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  transition: background var(--pkp-transition), border-color var(--pkp-transition), color var(--pkp-transition);
}
.pkp-quicklink:hover{
  background: rgba(255,203,5,.12);
  border-color: var(--pkp-yellow);
  color: var(--pkp-yellow);
}

/* ---------- 10. TOP LIST (Najczęściej czytane) ---------- */
.pkp-top-list{
  list-style: none;
  counter-reset: pkp-top;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pkp-top-list__item{
  counter-increment: pkp-top;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pkp-line);
  transition: opacity var(--pkp-transition);
}
.pkp-top-list__item:last-child{ border-bottom: none; }
.pkp-top-list__item:hover{ opacity: .75; }
.pkp-top-list__number{
  font-family: var(--pkp-font-mono);
  font-weight: 900;
  font-size: 11px;
  color: var(--pkp-ink-muted);
  background: var(--pkp-paper-dim);
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  content: counter(pkp-top, decimal-leading-zero);
}
/* Dynamicznie ustawiamy numer przez PHP */
.pkp-top-list__item:nth-child(1) .pkp-top-list__number{ background: var(--pkp-yellow); color: var(--pkp-ink); }
.pkp-top-list__item:nth-child(2) .pkp-top-list__number{ background: #C0C0C0; color: #fff; }
.pkp-top-list__item:nth-child(3) .pkp-top-list__number{ background: #CD7F32; color: #fff; }
.pkp-top-list__cat{
  font-size: 11px;
  font-family: var(--pkp-font-mono);
  color: var(--pkp-red);
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.pkp-top-list__title{
  font-size: 14px;
  font-weight: 700;
  color: var(--pkp-ink);
  line-height: 1.35;
}
.pkp-top-list__item:hover .pkp-top-list__title{ color: var(--pkp-red); }

/* ---------- 11. HUB PAGE (odpowiednik Pillar) ---------- */
.pkp-hub-hero{
  background: linear-gradient(135deg, #0D0D1A 0%, #1A1A3E 100%);
  padding: 44px 0 36px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--pkp-yellow);
}
.pkp-hub-hero[style*="background-image"]::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,30,.82) 0%, rgba(10,10,30,.5) 100%);
  z-index: 0;
  pointer-events: none;
}
.pkp-hub-hero .pkp-container{ position: relative; z-index: 1; }
.pkp-hub-hero__eyebrow{
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--pkp-yellow);
  display: inline-block;
  margin-bottom: 10px;
}
.pkp-hub-hero__title{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 42px);
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  padding-left: 18px;
  border-left: 5px solid var(--pkp-yellow);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.pkp-hub-hero:not([style*="background-image"]) .pkp-hub-hero__title{
  color: #fff; /* zawsze biały na ciemnym tle */
}
.pkp-hub-hero__subtitle{
  font-size: 16.5px;
  color: rgba(255,255,255,.7);
  max-width: 680px;
  line-height: 1.65;
  margin-left: 18px;
}
.pkp-hub-hero__meta{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 14px 0 0 18px;
  font-family: var(--pkp-font-mono);
  font-size: 12px;
  color: rgba(255,203,5,.6);
}

/* ---------- 12. SPIS TREŚCI (TOC) ---------- */
.pkp-toc{
  background: #0D0D1A;
  border: 1px solid rgba(255,203,5,.2);
  border-left: 4px solid var(--pkp-yellow);
  border-radius: var(--pkp-radius-md);
  padding: 16px 20px;
  margin: 1.4em 0;
}
.pkp-toc__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.pkp-toc__label{
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pkp-yellow);
}
.pkp-toc__count{
  font-weight: 400;
  opacity: .55;
  margin-left: 4px;
}
.pkp-toc__toggle{
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pkp-yellow);
  opacity: .7;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: opacity var(--pkp-transition);
}
.pkp-toc__toggle:hover{ opacity: 1; }
.pkp-toc__list{
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.pkp-toc__list--cols{ grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
.pkp-toc__item{ counter-increment: toc; }
.pkp-toc__item--hidden{ display: none; }
.pkp-toc__item a{
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(255,203,5,.12);
  transition: color var(--pkp-transition);
}
.pkp-toc__item:last-child a{ border-bottom: none; }
.pkp-toc__item a:hover{ color: var(--pkp-yellow); }
.pkp-toc__item a::before{
  content: counter(toc, decimal-leading-zero);
  font-family: var(--pkp-font-mono);
  font-weight: 700;
  font-size: 10px;
  color: rgba(255,203,5,.5);
  background: rgba(255,203,5,.08);
  width: 22px; height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---------- 13. CONTENT ENTRY ---------- */
.entry-content{
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--pkp-ink);
}
.entry-content > *:first-child{ margin-top: 0 !important; }
.entry-content > *:last-child{ margin-bottom: 0 !important; }
.entry-content > * + *{ margin-top: 0; }

/* Reset inline-style z AI-generowanych artykułów */
.entry-content,
.entry-content *{
  max-width: none !important;
  box-sizing: border-box;
}
.entry-content p{
  margin: 0 0 0.9em;
  max-width: none !important;
}
.entry-content strong{ color: var(--pkp-ink-soft); font-weight: 700; }
.entry-content a{
  color: var(--pkp-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover{ color: var(--pkp-red-dark); }

/* H2 */
.entry-content h2{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 27px);
  color: var(--pkp-ink) !important;
  letter-spacing: -0.2px;
  margin: 1.1em 0 0.4em;
  padding: 9px 14px;
  background: var(--pkp-paper-dim) !important;
  border-left: 4px solid var(--pkp-yellow) !important;
  border-radius: 0 var(--pkp-radius-md) var(--pkp-radius-md) 0;
}
.entry-content p + h2,
.entry-content ul + h2,
.entry-content ol + h2,
.entry-content .pkp-callout + h2,
.entry-content table + h2{ margin-top: 0.6em; }

/* H3 */
.entry-content h3{
  font-family: var(--pkp-font-head);
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 21px);
  color: var(--pkp-ink) !important;
  margin: 0.9em 0 0.4em;
}
.entry-content p + h3,
.entry-content ul + h3{ margin-top: 0.6em; }

/* H4 */
.entry-content h4{
  font-weight: 700;
  font-size: 16px;
  color: var(--pkp-ink-soft) !important;
  margin: 0.8em 0 0.3em;
}

/* Listy */
.entry-content ul,
.entry-content ol{ margin: 0 0 0.9em; padding-left: 0; }
.entry-content ul:not([class]){
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.entry-content ul:not([class]) li{
  position: relative;
  padding: 4px 0 4px 22px;
  border-bottom: 1px dashed var(--pkp-line);
}
.entry-content ul:not([class]) li:last-child{ border-bottom: none; }
.entry-content ul:not([class]) li::before{
  content: "▸";
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 12px;
  color: var(--pkp-yellow);
  font-weight: 700;
}

/* OL — numerowana z żółtym kółkiem */
.entry-content ol:not([class]){
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry-content ol:not([class]) > li{
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 56px;
  background: var(--pkp-paper-dim) !important;
  border: 1px solid var(--pkp-line) !important;
  border-radius: var(--pkp-radius-md);
  color: var(--pkp-ink) !important;
}
.entry-content ol:not([class]) > li::before{
  content: counter(step);
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--pkp-yellow) !important;
  color: var(--pkp-ink) !important;
  font-family: var(--pkp-font-mono);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none !important;
}
/* Duplikat marker fix */
.entry-content ul:not([class]) li.has-text-marker::before,
.pkp-callout li.has-text-marker::before{ display: none !important; }
.entry-content ul:not([class]) li.has-text-marker{ padding-left: 4px !important; }

/* Tabele */
.entry-content table{
  width: 100% !important;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 14.5px;
}
.entry-content th{
  background: var(--pkp-ink) !important;
  color: var(--pkp-yellow) !important;
  padding: 10px 14px;
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}
.entry-content td{
  padding: 9px 14px;
  border-bottom: 1px solid var(--pkp-line);
  color: var(--pkp-ink) !important;
  vertical-align: top;
}
.entry-content tr:nth-child(even) td{ background: var(--pkp-paper-dim); }
.entry-content img{
  border-radius: var(--pkp-radius-md);
  max-width: 100% !important;
}

/* ---------- 14. CALLOUT (pkp-callout) ---------- */
.pkp-callout{
  background: #fffbea !important;
  color: var(--pkp-ink) !important;
  border-left: 5px solid #e6a817 !important;
  padding: 14px 18px 14px 50px;
  border-radius: var(--pkp-radius-md);
  margin: 1.2em 0;
  position: relative;
}
.pkp-callout::before{
  content: "⚠";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  line-height: 1;
  color: #e6a817;
}
.pkp-callout:has(ul)::before,
.pkp-callout:has(p + p)::before{ top: 16px; transform: none; }
.pkp-callout p{ margin: 0 !important; color: var(--pkp-ink) !important; font-size: 15px; }
.pkp-callout p + p{ margin-top: 6px !important; }

.pkp-callout ul,.pkp-callout ol,
.entry-content .pkp-callout ul,.entry-content .pkp-callout ol{
  list-style: none !important; counter-reset: none !important;
  margin: 4px 0 0 !important; padding: 0 !important;
  display: block !important; flex-direction: unset !important; gap: 0 !important;
}
.pkp-callout li,
.entry-content .pkp-callout li,
.entry-content .pkp-callout ol > li,
.entry-content .pkp-callout ul > li{
  counter-increment: none !important;
  position: relative !important;
  padding: 5px 0 5px 20px !important;
  border-bottom: 1px dashed rgba(0,0,0,.1) !important;
  border-left: none !important; border-right: none !important; border-top: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--pkp-ink) !important;
  font-size: 15px !important; line-height: 1.5 !important;
}
.pkp-callout li::before,
.entry-content .pkp-callout li::before,
.entry-content .pkp-callout ol > li::before,
.entry-content .pkp-callout ul > li::before{
  content: "▸" !important;
  position: absolute !important; left: 2px !important; top: 5px !important;
  width: auto !important; height: auto !important;
  font-size: 12px !important; line-height: 1 !important;
  font-weight: 700 !important; background: transparent !important;
  border: none !important; border-radius: 0 !important;
  display: inline !important; transform: none !important;
  color: #e6a817 !important;
}

.pkp-callout--info{
  background: #EAF4FF !important;
  border-left-color: var(--pkp-water) !important;
}
.pkp-callout--info::before{ content: "ℹ"; color: var(--pkp-water) !important; }
.pkp-callout--info li::before{ color: var(--pkp-water) !important; }

.pkp-callout--highlight{
  background: #FFFBE6 !important;
  border-left-color: var(--pkp-yellow) !important;
}
.pkp-callout--highlight::before{ content: "★"; color: var(--pkp-yellow) !important; }
.pkp-callout--highlight li::before{ color: var(--pkp-yellow) !important; }

.pkp-callout--tip{
  background: #EDFFF4 !important;
  border-left-color: var(--pkp-grass) !important;
}
.pkp-callout--tip::before{ content: "💡"; color: var(--pkp-grass) !important; }
.pkp-callout--tip li::before{ color: var(--pkp-grass) !important; }

/* ---------- 15. ARCHIWUM ---------- */
.pkp-archive__header{
  background: linear-gradient(135deg, #0D0D1A 0%, #1A1A3E 100%);
  padding: 40px 0 32px;
  border-bottom: 3px solid var(--pkp-yellow);
}
.pkp-archive__title{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(26px, 3.5vw, 38px);
  color: #fff;
  margin-bottom: 8px;
}
.pkp-archive__subtitle{
  color: rgba(255,255,255,.55);
  font-size: 16px;
  max-width: 580px;
}
.pkp-archive__content{
  padding: 32px 0 48px;
}
.pkp-archive__pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 0 0;
  flex-wrap: wrap;
}
.pkp-archive__pagination a,
.pkp-archive__pagination span{
  min-width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pkp-radius);
  font-family: var(--pkp-font-mono);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--pkp-line);
  color: var(--pkp-ink);
  transition: background var(--pkp-transition), border-color var(--pkp-transition), color var(--pkp-transition);
}
.pkp-archive__pagination a:hover{
  background: var(--pkp-yellow);
  border-color: var(--pkp-yellow);
  color: var(--pkp-ink);
}
.pkp-archive__pagination .current{
  background: var(--pkp-yellow);
  border-color: var(--pkp-yellow);
  color: var(--pkp-ink);
}

/* ---------- 16. SINGLE POST ---------- */
.pkp-single-header{
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--pkp-line);
}
.pkp-single-header__title{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--pkp-ink);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.pkp-single-header__meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--pkp-font-mono);
  font-size: 12px;
  color: var(--pkp-ink-muted);
}
.pkp-single-header__featured{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--pkp-radius-lg);
  margin: 20px 0 0;
}
.pkp-reading-time{ display: flex; align-items: center; gap: 5px; }

/* ---------- 17. RELATED POSTS ---------- */
.pkp-related{
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px solid var(--pkp-line);
}
.pkp-related__title{
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pkp-related__title::before{
  content: "";
  width: 5px; height: 20px;
  background: var(--pkp-yellow);
  border-radius: 3px;
}

/* ---------- 18. AUTOR BOX ---------- */
.pkp-author-box{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--pkp-ink);
  color: #e0e0f0;
  padding: 20px 24px;
  border-radius: var(--pkp-radius-lg);
  margin: 1.4em 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pkp-shadow-md);
}
.pkp-author-box::before{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--pkp-yellow);
}
.pkp-author-box__avatar img{
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,203,5,.4);
}
.pkp-author-box__label{
  font-family: var(--pkp-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pkp-yellow);
  margin-bottom: 4px;
}
.pkp-author-box__name{
  font-family: var(--pkp-font-head);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}
.pkp-author-box__bio{
  font-size: 13.5px;
  line-height: 1.55;
  opacity: .75;
}
.pkp-author-box__links{ display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.pkp-author-box__links a{
  font-size: 11px;
  font-family: var(--pkp-font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pkp-yellow);
  opacity: .7;
  transition: opacity var(--pkp-transition);
}
.pkp-author-box__links a:hover{ opacity: 1; }

/* ---------- 19. LOAD MORE ---------- */
.pkp-article-hidden{ display: none; }
.pkp-load-more-wrap{ text-align: center; padding: 24px 0 0; }
.pkp-load-more-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pkp-font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pkp-ink);
  background: var(--pkp-yellow);
  border: none;
  border-radius: var(--pkp-radius-md);
  padding: 11px 28px;
  cursor: pointer;
  transition: background var(--pkp-transition), transform var(--pkp-transition);
}
.pkp-load-more-btn:hover{ background: var(--pkp-yellow-dark); transform: translateY(-2px); }
.pkp-load-more-btn:disabled{ opacity: .5; cursor: default; transform: none; }
@keyframes pkpFadeIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- 20. FOOTER ---------- */
.pkp-footer{
  background: #0D0D1A;
  border-top: 3px solid var(--pkp-yellow);
  color: #8888AA;
  padding-top: 40px;
}
.pkp-footer__widgets{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,203,5,.1);
}
.pkp-footer__widget-col h4{
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--pkp-yellow);
  margin-bottom: 14px;
}
.pkp-footer__widget-col a{
  display: block;
  color: #6666AA;
  font-size: 13.5px;
  padding: 3px 0;
  transition: color var(--pkp-transition);
}
.pkp-footer__widget-col a:hover{ color: var(--pkp-yellow); }
.pkp-footer__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.pkp-footer__copyright{
  font-size: 13px;
  color: #4444AA;
}
.pkp-footer__menu{
  display: flex;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}
.pkp-footer__menu a{
  font-size: 13px;
  color: #4444AA;
  transition: color var(--pkp-transition);
}
.pkp-footer__menu a:hover{ color: var(--pkp-yellow); }
.pkp-footer__socials{ display: flex; gap: 12px; align-items: center; }
.pkp-footer__social-link{
  font-size: 12.5px;
  font-weight: 600;
  color: #6666AA;
  transition: color var(--pkp-transition);
}
.pkp-footer__social-link:hover{ color: var(--pkp-yellow); }

/* ---------- 21. BACK TO TOP ---------- */
.pkp-back-to-top{
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--pkp-yellow);
  color: var(--pkp-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--pkp-transition), visibility var(--pkp-transition), transform var(--pkp-transition);
  z-index: 99;
  box-shadow: 0 4px 12px rgba(255,203,5,.3);
  will-change: transform;
}
.pkp-back-to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.pkp-back-to-top:hover{ background: var(--pkp-yellow-dark); transform: translateY(-2px); }

/* ---------- 22. SEARCH PAGE ---------- */
.pkp-search-header{ padding: 32px 0; }
.pkp-search-title{
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--pkp-ink);
  margin-bottom: 6px;
}
.pkp-search-query{ color: var(--pkp-red); }

/* ---------- 23. 404 ---------- */
.pkp-404{
  text-align: center;
  padding: 80px 20px;
}
.pkp-404__icon{ font-size: 64px; margin-bottom: 16px; }
.pkp-404__title{
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--pkp-ink);
  margin-bottom: 12px;
}
.pkp-404__subtitle{ color: var(--pkp-ink-muted); font-size: 18px; margin-bottom: 28px; }

/* ---------- 24. RENDER PERFORMANCE ---------- */
.pkp-hub-section,
.pkp-footer__widgets{
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}
.pkp-card{ will-change: transform; }
.pkp-card__image{ transform: translateZ(0); }

/* ---------- 25. RESPONSIVE ---------- */
@media (max-width: 1024px){
  .pkp-grid{ grid-template-columns: repeat(2, 1fr); }
  .pkp-grid--4col{ grid-template-columns: repeat(2, 1fr); }
  .pkp-footer__widgets{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
  :root{ --pkp-header-h: 60px; }
  .pkp-header__nav{ display: none; }
  .pkp-header__nav.is-open{
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: var(--pkp-header-h);
    background: #0D0D1A;
    padding: 20px;
    overflow-y: auto;
    z-index: 150;
    border-top: 1px solid rgba(255,203,5,.15);
  }
  .pkp-header__menu{
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }
  .pkp-header__menu > li > a{
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--pkp-radius-md);
  }
  .pkp-header__menu .sub-menu{
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255,203,5,.05);
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-left: 12px;
    border-left: 2px solid rgba(255,203,5,.2);
  }
  .pkp-header__menu-toggle{ display: flex; }
  .pkp-topbar{ display: none; }

  .pkp-grid{ grid-template-columns: 1fr; }
  .pkp-grid--2col{ grid-template-columns: 1fr; }
  .pkp-grid--4col{ grid-template-columns: repeat(2, 1fr); }
  .pkp-footer__widgets{ grid-template-columns: 1fr; gap: 20px; }
  .pkp-footer__bottom{ flex-direction: column; text-align: center; }
  .pkp-hub-hero{ padding: 28px 0 22px; }
  .pkp-hub-hero__title{ font-size: clamp(22px, 6vw, 32px); padding-left: 12px; border-left-width: 4px; }
  .pkp-hub-hero__subtitle{ margin-left: 12px; }
  .pkp-hub-section__header{ flex-direction: column; align-items: flex-start; gap: 8px; }
  .pkp-toc__list--cols{ grid-template-columns: 1fr; }
  .pkp-author-box{ flex-direction: column; align-items: center; text-align: center; }
  .pkp-author-box__links{ justify-content: center; }
}

@media (max-width: 480px){
  .pkp-grid--4col{ grid-template-columns: 1fr; }
  .pkp-home-hero{ padding: 36px 0 28px; }
  .pkp-home-hero__cta{ flex-direction: column; }
  .pkp-btn{ width: 100%; justify-content: center; }
}

/* ============================================================
   POKEPOLIS ENGINE — SEKCJA 26: SYSTEM IKON FRAME
   18 dedykowanych ikon (.pkp-icon-*) dla typów treści.
   Ikony przechowywane w /wp-content/themes/pokepolis-engine/assets/images/icons/
   ============================================================ */

/* Bazowy styl ikony sekcji */
.pkp-section-icon {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--pkp-radius-lg);
  margin: 1.2em 0;
  position: relative;
}
.pkp-section-icon__img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.pkp-section-icon__body { flex: 1; min-width: 0; }
.pkp-section-icon__label {
  font-family: var(--pkp-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
  display: block;
  margin-bottom: 3px;
}
.pkp-section-icon__text {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
.pkp-section-icon__text strong { font-weight: 800; }

/* ── Warianty per typ sekcji ──────────────────────────────── */

/* PRO TIP — niebieski ekspert z profesorem */
.pkp-frame--protip {
  background: #E8F0FE;
  border-left: 4px solid #1565C0;
}
.pkp-frame--protip .pkp-section-icon__label { color: #1565C0; }
.pkp-frame--protip .pkp-section-icon__text  { color: #0D2A6B; }

/* EXPERT — zaawansowane, Gyarados */
.pkp-frame--expert {
  background: #E8EEFF;
  border-left: 4px solid #1A237E;
}
.pkp-frame--expert .pkp-section-icon__label { color: #1A237E; }
.pkp-frame--expert .pkp-section-icon__text  { color: #0A1055; }

/* CIEKAWOSTKI — fioletowy, Wobbuffet */
.pkp-frame--ciekawostki {
  background: #F3E5F5;
  border-left: 4px solid #8E24AA;
}
.pkp-frame--ciekawostki .pkp-section-icon__label { color: #6A1B9A; }
.pkp-frame--ciekawostki .pkp-section-icon__text  { color: #3E0053; }

/* POKÉDEX — czerwony, Dex */
.pkp-frame--dex {
  background: #FFEBEB;
  border-left: 4px solid #CC0000;
}
.pkp-frame--dex .pkp-section-icon__label { color: #A50000; }
.pkp-frame--dex .pkp-section-icon__text  { color: #5C0000; }

/* EWOLUCJA — bursztynowy */
.pkp-frame--evolve {
  background: #FFFDE7;
  border-left: 4px solid #F9A825;
}
.pkp-frame--evolve .pkp-section-icon__label { color: #E65100; }
.pkp-frame--evolve .pkp-section-icon__text  { color: #3E2100; }

/* EVENT — niebieski, megafon */
.pkp-frame--event {
  background: #E3F2FD;
  border-left: 4px solid #1565C0;
}
.pkp-frame--event .pkp-section-icon__label { color: #0D47A1; }
.pkp-frame--event .pkp-section-icon__text  { color: #0A2D6B; }

/* TYPY — wielokolorowy, ogień/woda/trawa */
.pkp-frame--types {
  background: #FFF8F1;
  border-left: 4px solid #FF6B35;
}
.pkp-frame--types .pkp-section-icon__label { color: #E64A19; }
.pkp-frame--types .pkp-section-icon__text  { color: #3E1100; }

/* STATYSTYKI — zielony, Riolu */
.pkp-frame--stats {
  background: #E8F5E9;
  border-left: 4px solid #2E7D32;
}
.pkp-frame--stats .pkp-section-icon__label { color: #1B5E20; }
.pkp-frame--stats .pkp-section-icon__text  { color: #0A2E0D; }

/* MAPA / LOKALIZACJE */
.pkp-frame--map {
  background: #E8F5E9;
  border-left: 4px solid #388E3C;
}
.pkp-frame--map .pkp-section-icon__label { color: #1B5E20; }
.pkp-frame--map .pkp-section-icon__text  { color: #0A2E0D; }

/* BAGPACK / PRZEDMIOTY */
.pkp-frame--bagpack {
  background: #FFF3E0;
  border-left: 4px solid #E65100;
}
.pkp-frame--bagpack .pkp-section-icon__label { color: #BF360C; }
.pkp-frame--bagpack .pkp-section-icon__text  { color: #3E1100; }

/* PIKACHU — żółty akcent Pokémon */
.pkp-frame--pikachu {
  background: #FFFDE7;
  border-left: 4px solid #FFCB05;
}
.pkp-frame--pikachu .pkp-section-icon__label { color: #B8860B; }
.pkp-frame--pikachu .pkp-section-icon__text  { color: #3E2D00; }

/* POKÉBALLE — tier-color dla rankingów ─────────────────── */
/* Pokéball (Tier C) */
.pkp-frame--pokeball {
  background: #FFEBEB;
  border-left: 4px solid #CC0000;
}
.pkp-frame--pokeball .pkp-section-icon__label { color: #A50000; }

/* Great Ball (Tier B) */
.pkp-frame--greatball {
  background: #E3F2FD;
  border-left: 4px solid #1565C0;
}
.pkp-frame--greatball .pkp-section-icon__label { color: #0D47A1; }

/* Ultra Ball (Tier A) */
.pkp-frame--ultraball {
  background: #FFFDE7;
  border-left: 4px solid #C19B00;
}
.pkp-frame--ultraball .pkp-section-icon__label { color: #7C6200; }

/* Master Ball (Tier S) */
.pkp-frame--masterball {
  background: #F3E5F5;
  border-left: 4px solid #6A1B9A;
}
.pkp-frame--masterball .pkp-section-icon__label { color: #4A148C; }

/* Bulbasaur (Grass) */
.pkp-frame--bulbasaur {
  background: #F1FAF1;
  border-left: 4px solid #388E3C;
}
.pkp-frame--bulbasaur .pkp-section-icon__label { color: #1B5E20; }

/* Charmander (Fire) */
.pkp-frame--charmander {
  background: #FFF1EC;
  border-left: 4px solid #FF6B35;
}
.pkp-frame--charmander .pkp-section-icon__label { color: #BF360C; }

/* Squirtle (Water) */
.pkp-frame--squirtle {
  background: #E3F2FD;
  border-left: 4px solid #1976D2;
}
.pkp-frame--squirtle .pkp-section-icon__label { color: #0D47A1; }

/* ============================================================
   27. POST TYPE BADGES — wizualne etykiety na kartach
   ============================================================ */
.pkp-post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--pkp-radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: var(--pkp-font-mono);
  line-height: 1;
  white-space: nowrap;
}
.pkp-post-type-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Warianty post-type badge */
.pkp-badge-poradnik    { background: #FFFDE7; color: #7C6200;  border: 1px solid #FFCB05; }
.pkp-badge-ranking     { background: #F3E5F5; color: #4A148C;  border: 1px solid #8E24AA; }
.pkp-badge-pokedex     { background: #FFEBEB; color: #A50000;  border: 1px solid #CC0000; }
.pkp-badge-kolekcja    { background: #FFF1EC; color: #BF360C;  border: 1px solid #FF6B35; }
.pkp-badge-recenzja    { background: #E8F0FE; color: #1A237E;  border: 1px solid #3949AB; }
.pkp-badge-ciekawostki { background: #F3E5F5; color: #6A1B9A;  border: 1px solid #9C27B0; }
.pkp-badge-event       { background: #E3F2FD; color: #0D47A1;  border: 1px solid #1976D2; }
.pkp-badge-tierlist    { background: #FFFDE7; color: #BF360C;  border: 1px solid #FF6B35; }
.pkp-badge-new         { background: #FFCB05; color: #1A1A2E;  border: 1px solid #E5B800; animation: pkpPulse 2s infinite; }

/* ============================================================
   28. TIER LIST COMPONENT
   Ranking Pokémonów z kulkami jako wskaźnikami tier
   ============================================================ */
.pkp-tier-list { margin: 1.2em 0; }
.pkp-tier-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 3px;
  border-radius: var(--pkp-radius-md);
  overflow: hidden;
  border: 1px solid var(--pkp-line);
}
.pkp-tier-label {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px;
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: 15px;
}
.pkp-tier-label img { width: 28px; height: 28px; object-fit: contain; }
.pkp-tier-label span { font-size: 11px; font-family: var(--pkp-font-mono); }

.pkp-tier-s .pkp-tier-label { background: #F3E5F5; color: #4A148C; }
.pkp-tier-a .pkp-tier-label { background: #FFFDE7; color: #7C6200; }
.pkp-tier-b .pkp-tier-label { background: #E3F2FD; color: #0D47A1; }
.pkp-tier-c .pkp-tier-label { background: #FFEBEB; color: #A50000; }

.pkp-tier-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  flex: 1;
  align-items: center;
  background: var(--pkp-paper-dim);
}
.pkp-tier-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--pkp-paper);
  border: 1px solid var(--pkp-line);
  border-radius: var(--pkp-radius-md);
  padding: 5px 10px 5px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pkp-ink);
  white-space: nowrap;
  transition: border-color var(--pkp-transition), box-shadow var(--pkp-transition);
}
.pkp-tier-item:hover {
  border-color: var(--pkp-yellow);
  box-shadow: var(--pkp-shadow-sm);
}
.pkp-tier-item img { width: 28px; height: 28px; object-fit: contain; }

/* ============================================================
   29. POKÉMON TYPE PILLS
   Kolorowe znaczniki typów (Fire, Water, Grass itd.)
   ============================================================ */
.pkp-type { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--pkp-radius-pill); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #fff; }
.pkp-type-fire     { background: #FF6B35; }
.pkp-type-water    { background: #1976D2; }
.pkp-type-grass    { background: #388E3C; }
.pkp-type-electric { background: #FFCB05; color: #1A1A2E; }
.pkp-type-psychic  { background: #D53FA1; }
.pkp-type-ice      { background: #4FC3F7; color: #1A1A2E; }
.pkp-type-dragon   { background: #5C3DCC; }
.pkp-type-dark     { background: #3D2B4A; }
.pkp-type-fairy    { background: #F48FB1; color: #5C0040; }
.pkp-type-fighting { background: #BF360C; }
.pkp-type-poison   { background: #7B1FA2; }
.pkp-type-ground   { background: #C19B00; color: #fff; }
.pkp-type-rock     { background: #795548; }
.pkp-type-bug      { background: #558B2F; }
.pkp-type-ghost    { background: #4527A0; }
.pkp-type-steel    { background: #546E7A; }
.pkp-type-normal   { background: #9E9E9E; }
.pkp-type-flying   { background: #5C9CD4; }

/* ============================================================
   30. POKÉDEX CARD COMPONENT
   Karta Pokémona z typami, stat bar, ewolucja
   ============================================================ */
.pkp-dex-card {
  background: var(--pkp-paper);
  border: 2px solid var(--pkp-line);
  border-radius: var(--pkp-radius-xl);
  overflow: hidden;
  max-width: 340px;
}
.pkp-dex-card__header {
  background: linear-gradient(135deg, #1A1A2E 0%, #2A2A50 100%);
  padding: 20px;
  text-align: center;
  position: relative;
}
.pkp-dex-card__number {
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  color: rgba(255,203,5,.6);
  font-weight: 700;
  position: absolute;
  top: 12px;
  left: 14px;
}
.pkp-dex-card__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  image-rendering: pixelated;
  margin: 0 auto;
}
.pkp-dex-card__name {
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  margin: 8px 0 6px;
}
.pkp-dex-card__types { display: flex; justify-content: center; gap: 6px; }
.pkp-dex-card__body { padding: 16px; }
.pkp-dex-card__stats { display: flex; flex-direction: column; gap: 6px; }
.pkp-dex-stat { display: flex; align-items: center; gap: 8px; }
.pkp-dex-stat__name { font-family: var(--pkp-font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; width: 36px; flex-shrink: 0; color: var(--pkp-ink-muted); }
.pkp-dex-stat__value { font-size: 12px; font-weight: 700; width: 30px; text-align: right; flex-shrink: 0; }
.pkp-dex-stat__bar { flex: 1; height: 6px; background: var(--pkp-line); border-radius: 3px; overflow: hidden; }
.pkp-dex-stat__fill { height: 100%; border-radius: 3px; background: var(--pkp-yellow); transition: width .6s ease; }
.pkp-dex-stat__fill--hp     { background: #FF5252; }
.pkp-dex-stat__fill--atk    { background: #FF6B35; }
.pkp-dex-stat__fill--def    { background: #FFCB05; }
.pkp-dex-stat__fill--spatk  { background: #7C4DFF; }
.pkp-dex-stat__fill--spdef  { background: #00BCD4; }
.pkp-dex-stat__fill--speed  { background: #4CAF50; }

/* ============================================================
   31. STRONA GŁÓWNA — HERO + SEKCJE bez Elementora Pro
   Pełna zamiana bloków Elementora na natywny PHP/CSS
   ============================================================ */

/* Hero — fullbleed, ciemny gradient, animacja cząstek */
.pkp-home-hero {
  background: linear-gradient(135deg, #0A0A1A 0%, #1A1A3E 45%, #0D1A2E 100%);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
}
/* Dekoracje — Pokéballe w tle */
.pkp-home-hero::before {
  content: "";
  position: absolute;
  width: 680px; height: 680px;
  border: 130px solid rgba(255,203,5,.035);
  border-radius: 50%;
  right: -240px; top: -240px;
  pointer-events: none;
}
.pkp-home-hero::after {
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  border: 90px solid rgba(204,0,0,.035);
  border-radius: 50%;
  left: -160px; bottom: -160px;
  pointer-events: none;
}
.pkp-home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
}
.pkp-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pkp-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--pkp-yellow);
  background: rgba(255,203,5,.1);
  padding: 5px 12px;
  border-radius: var(--pkp-radius-pill);
  margin-bottom: 16px;
  border: 1px solid rgba(255,203,5,.2);
}
.pkp-home-hero__title {
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(32px, 5.5vw, 62px);
  line-height: 1.08;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.pkp-home-hero__title em { color: var(--pkp-yellow); font-style: normal; }
.pkp-home-hero__title .pkp-hero-red { color: #FF4444; }
.pkp-home-hero__subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.6);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.pkp-home-hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pkp-home-hero__quicklinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ── Sekcja z lewym akcentem ─────────────────────────── */
.pkp-home-section {
  padding: 36px 0;
  border-top: 1px solid var(--pkp-line);
}
.pkp-home-section:first-child { border-top: none; }
.pkp-home-section__inner {
  max-width: var(--pkp-container);
  margin: 0 auto;
  padding: 0 20px;
}
.pkp-home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.pkp-home-section__title {
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: clamp(19px, 2.5vw, 24px);
  color: var(--pkp-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}
.pkp-home-section__title::before {
  content: "";
  display: inline-block;
  width: 5px; height: 24px;
  background: var(--pkp-yellow);
  border-radius: 3px;
  flex-shrink: 0;
}
.pkp-home-section__icon {
  width: 32px; height: 32px;
  object-fit: contain;
}
.pkp-home-section__more {
  font-family: var(--pkp-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pkp-red);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap var(--pkp-transition);
  white-space: nowrap;
}
.pkp-home-section__more:hover { gap: 9px; color: var(--pkp-red-dark); }

/* ── Featured + Sidebar layout ──────────────────────── */
.pkp-home-featured {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ── Top list numbered ───────────────────────────────── */
.pkp-top-list {
  list-style: none;
  counter-reset: pkp-top;
}
.pkp-top-list__item {
  counter-increment: pkp-top;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pkp-line);
  transition: opacity var(--pkp-transition);
}
.pkp-top-list__item:last-child { border-bottom: none; }
.pkp-top-list__item:hover { opacity: .75; }
.pkp-top-list__num {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 800;
  background: var(--pkp-paper-dim);
  color: var(--pkp-ink-muted);
  margin-top: 2px;
}
.pkp-top-list__item:nth-child(1) .pkp-top-list__num { background: var(--pkp-yellow); color: var(--pkp-ink); }
.pkp-top-list__item:nth-child(2) .pkp-top-list__num { background: #B0BEC5; color: #fff; }
.pkp-top-list__item:nth-child(3) .pkp-top-list__num { background: #C47D26; color: #fff; }
.pkp-top-list__body { flex: 1; min-width: 0; }
.pkp-top-list__cat {
  font-size: 10.5px;
  font-family: var(--pkp-font-mono);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--pkp-red);
  display: block;
  margin-bottom: 2px;
}
.pkp-top-list__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pkp-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pkp-top-list__item:hover .pkp-top-list__title { color: var(--pkp-red); }

/* ── Special sections (LEGO, Marvel, Planszowe) ──────── */
.pkp-special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pkp-special-card {
  background: var(--pkp-paper-dim);
  border: 1px solid var(--pkp-line);
  border-radius: var(--pkp-radius-lg);
  padding: 24px 20px 20px;
  text-align: center;
  transition: border-color var(--pkp-transition), box-shadow var(--pkp-transition), transform var(--pkp-transition);
}
.pkp-special-card:hover {
  border-color: var(--pkp-yellow);
  box-shadow: var(--pkp-shadow-md);
  transform: translateY(-2px);
}
.pkp-special-card__emoji { font-size: 44px; margin-bottom: 10px; display: block; }
.pkp-special-card__title {
  font-family: var(--pkp-font-head);
  font-weight: 900;
  font-size: 18px;
  color: var(--pkp-ink);
  margin-bottom: 8px;
}
.pkp-special-card__desc {
  font-size: 13.5px;
  color: var(--pkp-ink-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Event bar ──────────────────────────────────────── */
.pkp-event-bar {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
  border-radius: var(--pkp-radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  margin-bottom: 14px;
  transition: opacity var(--pkp-transition);
}
.pkp-event-bar:hover { opacity: .9; }
.pkp-event-bar__icon { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }
.pkp-event-bar__body { flex: 1; min-width: 0; }
.pkp-event-bar__label {
  font-family: var(--pkp-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,203,5,.8);
  display: block;
  margin-bottom: 2px;
}
.pkp-event-bar__title { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.pkp-event-bar__date {
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   32. SINGLE POST — post-type specific styling
   Automatyczne stylizowanie na podstawie kategorii
   ============================================================ */

/* Nagłówek single post — banner z ikoną */
.pkp-single-header__type-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--pkp-radius-md);
  margin-bottom: 14px;
  width: fit-content;
}
.pkp-single-header__type-banner img {
  width: 28px; height: 28px;
  object-fit: contain;
}
.pkp-single-header__type-banner span {
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Post-type: poradnik */
.pkp-post-poradnik .pkp-single-header__type-banner  { background: #FFFDE7; color: #7C6200; }
.pkp-post-ranking .pkp-single-header__type-banner   { background: #F3E5F5; color: #4A148C; }
.pkp-post-pokedex .pkp-single-header__type-banner   { background: #FFEBEB; color: #A50000; }
.pkp-post-kolekcja .pkp-single-header__type-banner  { background: #FFF1EC; color: #BF360C; }
.pkp-post-recenzja .pkp-single-header__type-banner  { background: #E8F0FE; color: #1A237E; }
.pkp-post-event .pkp-single-header__type-banner     { background: #E3F2FD; color: #0D47A1; }

/* ============================================================
   33. INLINE CSS RESET
   Agresywny reset inline styli z AI/Elementor w treści
   ============================================================ */
.entry-content [style*="color"],
.entry-content [style*="background"],
.entry-content [style*="font-size"],
.entry-content [style*="font-family"],
.entry-content [style*="margin"],
.entry-content [style*="padding"],
.entry-content [style*="width"],
.entry-content [style*="max-width"] {
  /* Nie resetujemy tutaj agresywnie — to mogłoby złamać tabele/obrazki.
     Zamiast tego używamy specificity przez klasy .pkp-frame--* */
}
/* Reset specyficzny dla bloków Elementora które wpadają w entry-content */
.entry-content .elementor-widget-container [style] {
  color: inherit !important;
  background: transparent !important;
}

/* ============================================================
   34. RESPONSIVE — uzupełnienia dla nowych sekcji
   ============================================================ */
@media (max-width: 900px) {
  .pkp-home-featured { grid-template-columns: 1fr; }
  .pkp-special-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pkp-special-grid  { grid-template-columns: 1fr; }
  .pkp-dex-card { max-width: 100%; }
  .pkp-tier-label { width: 52px; }
  .pkp-section-icon { flex-direction: column; align-items: flex-start; }
  .pkp-section-icon__img { width: 44px; height: 44px; }
}

/* Ikona typ-posta na kartach (widoczna po hover) */
.pkp-card__type-icon { opacity: 0; transition: opacity var(--pkp-transition); }
.pkp-card:hover .pkp-card__type-icon { opacity: 1; }
/* Na touch devices zawsze widoczna */
@media (hover: none) {
  .pkp-card__type-icon { opacity: .85; }
}

/* Featured card (hero na stronie głównej) */
.pkp-card--featured {
  border-radius: var(--pkp-radius-xl);
  box-shadow: var(--pkp-shadow-md);
}
.pkp-card--featured .pkp-card__thumb-wrap { aspect-ratio: 16/9; }
.pkp-card--featured .pkp-card__image { width: 100%; height: 100%; }

/* ============================================================
   35. KLASY ZASTĘPUJĄCE INLINE STYLES
   Każdy element który miał style="" dostał klasę CSS.
   ============================================================ */

/* Sidebar "Najczęściej czytane" — tytuł */
.pkp-home-sidebar-title {
  font-family: var(--pkp-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--pkp-ink-muted);
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: none;
}

/* Featured main column */
.pkp-home-featured__main { min-width: 0; }
.pkp-home-featured__sidebar { min-width: 0; }

/* Special card button (zastąpił pkp-btn inline) */
.pkp-special-card__btn {
  display: inline-flex;
  align-items: center;
  background: var(--pkp-yellow);
  color: var(--pkp-ink);
  font-family: var(--pkp-font-head);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--pkp-radius-md);
  transition: background var(--pkp-transition), transform var(--pkp-transition);
  margin-top: auto;
}
.pkp-special-card:hover .pkp-special-card__btn {
  background: var(--pkp-yellow-dark);
  transform: translateY(-1px);
}
/* Special card jako flex column dla właściwego btn alignment */
.pkp-special-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pkp-special-card__emoji {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  object-fit: contain;
}

/* Ikona sekcji w tytule */
.pkp-home-section__title img { flex-shrink: 0; }

/* ============================================================
   36. CONTENT SECTION ICONS — użycie w artykułach
   Identycznie jak wzb-callout/wzb-frame w WZBudowa Engine.
   
   HTML w artykule (Elementor HTML widget):
   <div class="pkp-frame pkp-frame--protip">
     <img src="/wp-content/themes/pokepolis-engine/assets/images/icons/frame-icon-protip.webp" 
          class="pkp-frame__icon" alt="Pro Tip" width="56" height="56">
     <div class="pkp-frame__body">
       <span class="pkp-frame__label">Pro Tip</span>
       <p class="pkp-frame__text">Treść wskazówki...</p>
     </div>
   </div>
   
   LUB shortcode:
   [pkp_frame icon="protip" label="Pro Tip"]Treść[/pkp_frame]
   ============================================================ */

/* Alias .pkp-frame = .pkp-section-icon (kompatybilność) */
.pkp-frame {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--pkp-radius-md);
  margin: 1.2em 0;
  position: relative;
}
.pkp-frame__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.pkp-frame__body { flex: 1; min-width: 0; }
.pkp-frame__label {
  display: block;
  font-family: var(--pkp-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  opacity: .75;
}
.pkp-frame__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.pkp-frame__text strong { font-weight: 800; }

/* Warianty — identyczne kolory co pkp-frame-- w sekcji 26 */
.pkp-frame--protip  { background: #E8F0FE; border-left: 4px solid #1565C0; }
.pkp-frame--protip  .pkp-frame__label { color: #1565C0; }
.pkp-frame--protip  .pkp-frame__text  { color: #0D2A6B; }

.pkp-frame--expert  { background: #E8EEFF; border-left: 4px solid #1A237E; }
.pkp-frame--expert  .pkp-frame__label { color: #1A237E; }
.pkp-frame--expert  .pkp-frame__text  { color: #0A1055; }

.pkp-frame--ciekawostki { background: #F3E5F5; border-left: 4px solid #8E24AA; }
.pkp-frame--ciekawostki .pkp-frame__label { color: #6A1B9A; }

.pkp-frame--dex     { background: #FFEBEB; border-left: 4px solid #CC0000; }
.pkp-frame--dex     .pkp-frame__label { color: #A50000; }

.pkp-frame--evolve  { background: #FFFDE7; border-left: 4px solid #F9A825; }
.pkp-frame--evolve  .pkp-frame__label { color: #E65100; }

.pkp-frame--event   { background: #E3F2FD; border-left: 4px solid #1565C0; }
.pkp-frame--event   .pkp-frame__label { color: #0D47A1; }

.pkp-frame--types   { background: #FFF8F1; border-left: 4px solid #FF6B35; }
.pkp-frame--types   .pkp-frame__label { color: #E64A19; }

.pkp-frame--stats   { background: #E8F5E9; border-left: 4px solid #2E7D32; }
.pkp-frame--stats   .pkp-frame__label { color: #1B5E20; }

.pkp-frame--map     { background: #E8F5E9; border-left: 4px solid #388E3C; }
.pkp-frame--map     .pkp-frame__label { color: #1B5E20; }

.pkp-frame--bagpack { background: #FFF3E0; border-left: 4px solid #E65100; }
.pkp-frame--bagpack .pkp-frame__label { color: #BF360C; }

.pkp-frame--pikachu { background: #FFFDE7; border-left: 4px solid #FFCB05; }
.pkp-frame--pikachu .pkp-frame__label { color: #B8860B; }

.pkp-frame--pokeball   { background: #FFEBEB; border-left: 4px solid #CC0000; }
.pkp-frame--greatball  { background: #E3F2FD; border-left: 4px solid #1565C0; }
.pkp-frame--ultraball  { background: #FFFDE7; border-left: 4px solid #C19B00; }
.pkp-frame--masterball { background: #F3E5F5; border-left: 4px solid #6A1B9A; }

/* Responsive — na mobile ikona mniejsza */
@media (max-width: 480px) {
  .pkp-frame { flex-direction: column; gap: 10px; }
  .pkp-frame__icon { width: 40px; height: 40px; }
}
