/* ============================================================
   StylHampton – Poradniki page
   Ścieżka: /themes/TWOJ_MOTYW/assets/css/poradniki-page.css
   ============================================================ */

.poradniki-page h1 {
  margin-bottom: 0;
}

.poradniki-intro {
  font-size: 0.95rem;
  color: #6b6560;
  font-weight: 300;
  margin: 10px 0 28px;
  letter-spacing: 0.03em;
}

.poradniki-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a07c38;
  margin-bottom: 14px;
  padding-left: 2px;
}

/* ── GRID ── */
.cms-page .poradnik {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}

/* ── STAGGERED ANIMATION ── */
.cms-page .poradnik li {
  animation: poradnikFadeUp 0.4s ease both;
}
.cms-page .poradnik li:nth-child(1)  { animation-delay: 0.03s }
.cms-page .poradnik li:nth-child(2)  { animation-delay: 0.06s }
.cms-page .poradnik li:nth-child(3)  { animation-delay: 0.09s }
.cms-page .poradnik li:nth-child(4)  { animation-delay: 0.12s }
.cms-page .poradnik li:nth-child(5)  { animation-delay: 0.15s }
.cms-page .poradnik li:nth-child(6)  { animation-delay: 0.18s }
.cms-page .poradnik li:nth-child(7)  { animation-delay: 0.21s }
.cms-page .poradnik li:nth-child(8)  { animation-delay: 0.24s }
.cms-page .poradnik li:nth-child(9)  { animation-delay: 0.27s }
.cms-page .poradnik li:nth-child(10) { animation-delay: 0.30s }
.cms-page .poradnik li:nth-child(11) { animation-delay: 0.33s }
.cms-page .poradnik li:nth-child(12) { animation-delay: 0.36s }
.cms-page .poradnik li:nth-child(13) { animation-delay: 0.39s }
.cms-page .poradnik li:nth-child(14) { animation-delay: 0.42s }
.cms-page .poradnik li:nth-child(15) { animation-delay: 0.45s }
.cms-page .poradnik li:nth-child(16) { animation-delay: 0.48s }
.cms-page .poradnik li:nth-child(17) { animation-delay: 0.51s }
.cms-page .poradnik li:nth-child(18) { animation-delay: 0.54s }
.cms-page .poradnik li:nth-child(19) { animation-delay: 0.57s }
.cms-page .poradnik li:nth-child(20) { animation-delay: 0.60s }
.cms-page .poradnik li:nth-child(21) { animation-delay: 0.63s }
.cms-page .poradnik li:nth-child(22) { animation-delay: 0.66s }

/* ── PIGUŁKA ── */
.cms-page .poradnik li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 8px;
  color: #1a1714;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  height: 100%;
  min-height: 52px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.cms-page .poradnik li a::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a25d;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.cms-page .poradnik li a:hover {
  background: #c9a25d;
  border-color: #c9a25d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(160, 124, 56, 0.22);
}

.cms-page .poradnik li a:hover::before {
  background: #fff;
  opacity: 1;
  transform: scale(1.3);
}

.cms-page .poradnik li a:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── ANIMATION ── */
@keyframes poradnikFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .cms-page .poradnik {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cms-page .poradnik li a {
    font-size: 0.82rem;
    padding: 12px 13px;
  }
}

@media (max-width: 360px) {
  .cms-page .poradnik {
    grid-template-columns: 1fr;
  }
}
