/* =========================================================================
   Wypromujemy Poradnik — CSS
   Prefix .wpp-  Żeby nie kolidować z Divi i innymi pluginami.
   ========================================================================= */

/* ---------- Divi menu — gradient marki (żeby białe menu było widoczne na stronie z shortcode'em) ---------- */
/* Reguła aktywna tylko na stronach, na których jest osadzony shortcode (CSS ładowany on-demand). */
#top-header,
#main-header,
#top-header.et-fixed-header,
#main-header.et-fixed-header {
  background: linear-gradient(60deg, #8834fd 0%, #c756ec 100%) !important;
  background-image: linear-gradient(60deg, #8834fd 0%, #c756ec 100%) !important;
  background-color: transparent !important;
}

/* ---------- Mobile hamburger icon — kontrast do gradientu ---------- */
/* Divi koloruje .mobile_menu_bar:before/:after na #bd51ef — niewidoczne na firmowym
   gradiencie #8834fd → #c756ec. Pierwsza wersja (1,1,1) przegrywala z jakas reguly
   Divi o wyzszej specyficznosci, ktorej user nie pokazal w wycinku. Bumpujemy do
   (2,2,3): 2 ID (#page-container + #main-header) + 2 klasy (et_mobile_nav_menu +
   mobile_menu_bar) + 3 elementy (html, body, :before/:after). Plus 4 warianty
   pokrywajace wersje sticky (.et-fixed-header) i top-header. */
html body #page-container #main-header .et_mobile_nav_menu .mobile_menu_bar:before,
html body #page-container #main-header .et_mobile_nav_menu .mobile_menu_bar:after,
html body #page-container #main-header.et-fixed-header .et_mobile_nav_menu .mobile_menu_bar:before,
html body #page-container #main-header.et-fixed-header .et_mobile_nav_menu .mobile_menu_bar:after,
html body #page-container #top-header .et_mobile_nav_menu .mobile_menu_bar:before,
html body #page-container #top-header .et_mobile_nav_menu .mobile_menu_bar:after,
/* Fallbacki gdyby struktura DOM Divi byla nietypowa (np. brak page-container lub et_mobile_nav_menu): */
html body #main-header .mobile_menu_bar:before,
html body #main-header .mobile_menu_bar:after,
html body .mobile_menu_bar:before,
html body .mobile_menu_bar:after {
  color: #ffffff !important;
}

.wpp-root {
  --wpp-bg: #FFFFFF;
  --wpp-bg-alt: #F7F7FB;
  --wpp-ink: #111122;
  --wpp-ink-2: #2A2A3D;
  --wpp-muted: #5B5B7A;
  --wpp-muted-light: #9999B0;
  --wpp-border: #E8E8F0;
  --wpp-border-strong: #D8D8E5;
  --wpp-accent: #8834fd;
  --wpp-accent-2: #c756ec;
  --wpp-accent-soft: rgba(136, 52, 253, 0.08);
  --wpp-gradient: linear-gradient(60deg, #8834fd 0%, #c756ec 100%);
  --wpp-shadow-sm: 0 1px 2px rgba(17, 17, 34, 0.04);
  --wpp-shadow-md: 0 4px 24px rgba(17, 17, 34, 0.06);
  --wpp-shadow-lg: 0 20px 60px rgba(17, 17, 34, 0.08);
  --wpp-shadow-glow: 0 12px 40px rgba(136, 52, 253, 0.18);
  --wpp-radius: 16px;
  --wpp-radius-sm: 10px;
  --wpp-radius-lg: 24px;
  --wpp-container: 1240px;
  --wpp-easing: cubic-bezier(.22, 1, .36, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--wpp-ink);
  font-size: 16px;
  line-height: 1.6;
}

.wpp-root *, .wpp-root *::before, .wpp-root *::after { box-sizing: border-box; }
.wpp-root a { color: inherit; text-decoration: none; }
.wpp-root button { font-family: inherit; cursor: pointer; border: none; background: none; }
.wpp-root img { max-width: 100%; display: block; }

.wpp-container { max-width: var(--wpp-container); margin: 0 auto; padding: 0 24px; }

.wpp-h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--wpp-ink);
  margin: 0 0 24px;
}
.wpp-root h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--wpp-ink);
  margin: 0;
}
.wpp-root h3 {
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--wpp-ink);
  margin: 0;
}
.wpp-serif { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500; }

/* ---------- Eyebrow ---------- */
.wpp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--wpp-accent);
  padding: 6px 12px; border: 1px solid var(--wpp-border); border-radius: 100px;
  background: var(--wpp-bg);
  margin-bottom: 22px;
}
.wpp-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wpp-gradient);
  animation: wppDotPulse 2.4s ease-in-out infinite;
}
@keyframes wppDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* ---------- Hero ---------- */
.wpp-hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--wpp-bg);
}
.wpp-hero-orb {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}
.wpp-hero-orb-1 {
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(199, 86, 236, 0.22), transparent 70%);
  animation: wppOrb1 18s ease-in-out infinite;
}
.wpp-hero-orb-2 {
  bottom: -200px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(136, 52, 253, 0.16), transparent 70%);
  animation: wppOrb2 22s ease-in-out infinite;
}
@keyframes wppOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes wppOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -30px) scale(1.05); }
}
.wpp-hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.wpp-grad {
  background: linear-gradient(60deg, #8834fd 0%, #c756ec 50%, #8834fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wppShimmer 6s linear infinite;
}
@keyframes wppShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.wpp-hero-lead { font-size: 19px; color: var(--wpp-muted); margin: 0 0 14px; }
.wpp-hero-lead-second { font-size: 16px; max-width: 720px; margin: 0 auto 36px; }
.wpp-hero-meta {
  display: inline-flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  padding: 18px 28px; border: 1px solid var(--wpp-border);
  border-radius: 100px; background: var(--wpp-bg-alt);
  margin-top: 8px;
}
.wpp-hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wpp-muted); }
.wpp-hero-meta-item strong { color: var(--wpp-ink); font-weight: 700; }
.wpp-hero-meta-item svg { width: 16px; height: 16px; color: var(--wpp-accent); }

/* ---------- Search ---------- */
.wpp-search-wrap { background: var(--wpp-bg); padding: 24px 0; }
.wpp-search-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wpp-search-box { flex: 1; min-width: 280px; position: relative; }
.wpp-search-box .wpp-search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--wpp-muted-light); pointer-events: none;
}
.wpp-search-box input {
  width: 100%; padding: 18px 56px 18px 54px;
  font-family: inherit; font-size: 16px; color: var(--wpp-ink);
  border: 1.5px solid var(--wpp-border);
  border-radius: 100px;
  background: white;
  box-shadow: var(--wpp-shadow-sm);
  transition: all .25s var(--wpp-easing);
  outline: none;
  margin: 0;
}
.wpp-search-box input::placeholder { color: var(--wpp-muted-light); }
.wpp-search-box input:focus {
  border-color: var(--wpp-accent);
  box-shadow: 0 0 0 4px rgba(136, 52, 253, 0.12);
}
.wpp-search-clear {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wpp-bg-alt); color: var(--wpp-muted);
  display: none; align-items: center; justify-content: center;
  font-size: 14px; transition: all .2s ease;
}
.wpp-search-clear:hover { background: var(--wpp-accent-soft); color: var(--wpp-accent); }
.wpp-search-clear.wpp-visible { display: inline-flex; }
.wpp-sort-box {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid var(--wpp-border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--wpp-muted);
}
.wpp-sort-box select {
  border: none; background: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--wpp-ink); cursor: pointer;
  padding-right: 4px; outline: none;
}
.wpp-search-summary { margin-top: 14px; font-size: 14px; color: var(--wpp-muted); }
.wpp-search-summary strong { color: var(--wpp-ink); font-weight: 700; }

/* ---------- Posts grid ---------- */
.wpp-posts-section { padding: 40px 0 80px; background: var(--wpp-bg); }
.wpp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.wpp-card {
  background: white;
  border: 1px solid var(--wpp-border);
  border-radius: var(--wpp-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .35s var(--wpp-easing);
  position: relative;
  color: inherit;
}
.wpp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--wpp-shadow-glow);
  border-color: transparent;
}
.wpp-card-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--wpp-bg-alt);
}
.wpp-card-thumb-img {
  position: absolute; inset: 0;
  background: linear-gradient(60deg, #8834fd 0%, #c756ec 100%) !important;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--wpp-easing);
}
.wpp-card:hover .wpp-card-thumb-img { transform: scale(1.06); }
.wpp-card-thumb-img::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.18), transparent 50%);
}
.wpp-card-mark {
  width: 80px; height: 80px;
  border-radius: 22px;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(11, 11, 31, 0.22);
  position: relative; z-index: 2;
  transition: transform .35s var(--wpp-easing);
}
.wpp-card:hover .wpp-card-mark { transform: rotate(-6deg) scale(1.06); }
.wpp-logo-mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--wpp-gradient);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800; font-size: 28px; letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}
.wpp-card-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wpp-ink);
}
.wpp-card-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wpp-accent);
}
.wpp-card-body {
  padding: 24px 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  flex-grow: 1;
}
.wpp-card-meta {
  display: flex; gap: 14px; align-items: center;
  font-size: 12px; color: var(--wpp-muted);
}
.wpp-card-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.wpp-card-meta-item svg { width: 13px; height: 13px; }
.wpp-root .wpp-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--wpp-ink);
  margin: 0;
  transition: color .25s ease;
}
.wpp-card:hover .wpp-card-title { color: var(--wpp-accent); }
.wpp-card-excerpt {
  color: var(--wpp-muted); font-size: 14px; line-height: 1.6;
  flex-grow: 1; margin: 0;
}
.wpp-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--wpp-accent);
  margin-top: 4px;
  transition: gap .25s ease;
}
.wpp-card:hover .wpp-card-cta { gap: 10px; }
.wpp-card-cta svg { width: 14px; height: 14px; }

/* ---------- Pagination ---------- */
.wpp-pagination {
  margin-top: 56px;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.wpp-page-btn {
  min-width: 44px; height: 44px;
  padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: white;
  border: 1.5px solid var(--wpp-border);
  border-radius: 100px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--wpp-ink);
  cursor: pointer;
  transition: all .25s var(--wpp-easing);
}
.wpp-page-btn:hover:not(:disabled):not(.wpp-active) {
  border-color: var(--wpp-accent);
  color: var(--wpp-accent);
  transform: translateY(-2px);
  box-shadow: var(--wpp-shadow-md);
}
.wpp-page-btn.wpp-active {
  background: var(--wpp-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 18px rgba(136, 52, 253, 0.32);
  cursor: default;
}
.wpp-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.wpp-page-btn svg { width: 14px; height: 14px; }
.wpp-page-arrow { padding: 0 18px; }
.wpp-page-ellipsis {
  min-width: 32px; color: var(--wpp-muted-light);
  font-weight: 700; user-select: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.wpp-page-info {
  width: 100%; text-align: center;
  margin-top: 18px;
  font-size: 13px; color: var(--wpp-muted);
}
.wpp-page-info strong { color: var(--wpp-ink); font-weight: 700; }

/* ---------- Empty state ---------- */
.wpp-empty {
  text-align: center;
  padding: 80px 24px;
  border: 1.5px dashed var(--wpp-border-strong);
  border-radius: var(--wpp-radius-lg);
  background: var(--wpp-bg-alt);
  display: none;
}
.wpp-empty.wpp-visible { display: block; }
.wpp-empty-emoji { font-size: 48px; margin-bottom: 16px; }
.wpp-empty .wpp-empty-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--wpp-ink); margin: 0 0 8px; }
.wpp-empty p { color: var(--wpp-muted); margin: 0; }

/* ---------- CTA ---------- */
.wpp-cta-section { padding: 100px 0; background: var(--wpp-bg); }
.wpp-cta-band {
  background: var(--wpp-gradient);
  border-radius: var(--wpp-radius-lg);
  padding: 80px 64px;
  text-align: center;
  color: white;
  position: relative; overflow: hidden;
}
.wpp-cta-band::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
  animation: wppCtaSweep 16s linear infinite;
}
@keyframes wppCtaSweep {
  0%, 100% { transform: translate(-10%, -10%); }
  50% { transform: translate(10%, 10%); }
}
.wpp-cta-band h2 { color: white; margin-bottom: 16px; position: relative; }
.wpp-cta-band p { color: rgba(255,255,255,0.92); font-size: 18px; margin: 0 auto 32px; max-width: 580px; position: relative; }
.wpp-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; position: relative; }
.wpp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 600;
  border-radius: 100px;
  transition: all .25s var(--wpp-easing);
  white-space: nowrap;
}
/* Bardzo wysoka specyficznosc (.wpp-root .wpp-cta-band a.wpp-btn-primary = 0,3,1) + !important.
   Divi/motyw czesto maja regule typu `.et_pb_section a { color: inherit !important }`,
   ktora bez tego zabieralaby buttonowi fioletowy kolor i czynila go niewidocznym na gradiencie. */
.wpp-root .wpp-cta-band a.wpp-btn-primary,
.wpp-root .wpp-cta-band .wpp-btn-primary {
  background: white !important;
  background-image: none !important;
  color: var(--wpp-accent) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  text-decoration: none !important;
}
.wpp-root .wpp-cta-band a.wpp-btn-primary:hover,
.wpp-root .wpp-cta-band a.wpp-btn-primary:focus,
.wpp-root .wpp-cta-band .wpp-btn-primary:hover {
  background: white !important;
  background-image: none !important;
  color: var(--wpp-accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.2);
}
.wpp-btn svg { width: 16px; height: 16px; transition: transform .25s var(--wpp-easing); }
.wpp-root .wpp-cta-band a.wpp-btn-primary svg,
.wpp-root .wpp-cta-band .wpp-btn-primary svg { color: var(--wpp-accent) !important; stroke: currentColor !important; }
.wpp-root .wpp-cta-band a.wpp-btn-primary:hover svg { transform: translateX(3px); }

/* ---------- Fade-in ---------- */
.wpp-fade-in { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--wpp-easing), transform .8s var(--wpp-easing); }
.wpp-fade-in.wpp-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wpp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wpp-hero { padding: 56px 0; }
  .wpp-grid { grid-template-columns: 1fr; gap: 20px; }
  .wpp-hero-meta { gap: 16px 24px; padding: 16px 22px; }
  .wpp-cta-band { padding: 40px 24px; }
  .wpp-cta-band .wpp-btn { width: 100%; }
  .wpp-pagination { gap: 6px; margin-top: 40px; }
  .wpp-page-btn { min-width: 40px; height: 40px; padding: 0 10px; font-size: 13px; }
  .wpp-page-arrow { padding: 0 14px; }
  .wpp-page-arrow .wpp-arrow-label { display: none; }
  .wpp-sort-box { flex: 1; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .wpp-root *, .wpp-root *::before, .wpp-root *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
