/* ══════════════════════════════════════════════════════
   BLOG PAGE — Pixie PK
   Loaded only on blog index via functions.php is_home()
══════════════════════════════════════════════════════ */

/* Full-width breakout */
.ct-container, .ct-container-full, .site-main,
.entry-content, article, #primary, #content, .content-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
.entry-header, .entry-title, .ct-breadcrumbs,
.ct-hero, .ct-page-hero { display: none !important; }

#pxk-blog {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  overflow-x: hidden;
  font-family: inherit;
}

/* ── HERO ────────────────────────────────────────────── */
.pxk-blog-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2d1b4e 60%, #16082e 100%);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pxk-blog-hero::before {
  content: '';
  position: absolute; top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 450px;
  background: radial-gradient(ellipse, rgba(232,23,122,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.pxk-blog-hero__inner {
  max-width: 720px; margin: 0 auto;
  position: relative; z-index: 1;
}
.pxk-blog-hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,23,122,0.18); color: #F7B8D8;
  border: 1px solid rgba(232,23,122,0.35);
  border-radius: 99px; padding: 5px 18px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.pxk-blog-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff;
  margin: 0 0 14px; line-height: 1.15;
}
.pxk-blog-hero__title em { color: #E8177A; font-style: normal; }
.pxk-blog-hero__sub {
  font-size: 15px; color: rgba(255,255,255,0.6);
  margin: 0 0 32px; line-height: 1.8;
  max-width: 540px; margin-inline: auto;
}
.pxk-blog-hero__stats {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.pxk-blog-hero__stat { text-align: center; }
.pxk-blog-hero__stat strong {
  display: block; font-size: 22px; font-weight: 900; color: #E8177A;
}
.pxk-blog-hero__stat span {
  font-size: 11px; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── CATEGORY FILTER TABS ────────────────────────────── */
.pxk-blog-filter {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pxk-blog-filter__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pxk-blog-filter__inner::-webkit-scrollbar { display: none; }
.pxk-blog-filter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 20px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  color: #888;
  transition: all 0.2s;
  flex-shrink: 0;
}
.pxk-blog-filter__btn:hover { color: #E8177A; border-bottom-color: #F7B8D8; }
.pxk-blog-filter__btn.active { color: #E8177A; border-bottom-color: #E8177A; }
.pxk-blog-filter__btn .pxk-filter-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.pxk-blog-filter__count {
  background: #f3f4f6; color: #888;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  transition: all 0.2s;
}
.pxk-blog-filter__btn.active .pxk-blog-filter__count,
.pxk-blog-filter__btn:hover .pxk-blog-filter__count {
  background: #FFF0F7; color: #E8177A;
}

/* ── MAIN LAYOUT ─────────────────────────────────────── */
.pxk-blog-body {
  background: #f8fafc;
  padding: 48px 24px 80px;
}
.pxk-blog-body__container {
  max-width: 1200px; margin: 0 auto;
}

/* ── FEATURED POST ───────────────────────────────────── */
.pxk-blog-featured { margin-bottom: 48px; }
.pxk-blog-featured__card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.pxk-blog-featured__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}
.pxk-blog-featured__img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1A1A2E, #2d1b4e);
  overflow: hidden;
  position: relative;
}
.pxk-blog-featured__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.pxk-blog-featured__card:hover .pxk-blog-featured__img img { transform: scale(1.04); }
.pxk-blog-featured__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.pxk-blog-featured__content {
  padding: 40px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.pxk-blog-featured__label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #E8177A; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.pxk-blog-featured__label::before {
  content: ''; display: inline-block;
  width: 20px; height: 2px; background: #E8177A;
}
.pxk-blog-featured__badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 99px;
  margin-bottom: 16px;
}
.pxk-blog-featured__title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 900; color: #111;
  margin: 0 0 14px; line-height: 1.25;
}
.pxk-blog-featured__excerpt {
  font-size: 14px; color: #666;
  line-height: 1.8; margin: 0 0 24px;
}
.pxk-blog-featured__meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: #999; margin-bottom: 24px;
}
.pxk-blog-featured__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: #E8177A; text-decoration: none;
  transition: gap 0.2s;
}
.pxk-blog-featured__cta:hover { gap: 12px; color: #C01265; }

/* ── POST GRID ───────────────────────────────────────── */
.pxk-blog-grid__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.pxk-blog-grid__head h2 {
  font-size: 18px; font-weight: 900; color: #111; margin: 0;
}
.pxk-blog-grid__count { font-size: 13px; color: #999; }
.pxk-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── POST CARD ───────────────────────────────────────── */
.pxk-post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none; color: inherit;
}
.pxk-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.09);
  border-color: #F7B8D8;
}
.pxk-post-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A2E, #2d1b4e);
  position: relative; flex-shrink: 0;
}
.pxk-post-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.pxk-post-card:hover .pxk-post-card__img img { transform: scale(1.06); }
.pxk-post-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.pxk-post-card__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pxk-post-card__body {
  padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column;
}
.pxk-post-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: #aaa; margin-bottom: 10px;
}
.pxk-post-card__meta span { display: flex; align-items: center; gap: 4px; }
.pxk-post-card__title {
  font-size: 15px; font-weight: 800; color: #111;
  line-height: 1.35; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pxk-post-card__excerpt {
  font-size: 13px; color: #777; line-height: 1.7;
  margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pxk-post-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #f0f0f0;
  margin-top: auto;
}
.pxk-post-card__read {
  font-size: 12px; font-weight: 700; color: #E8177A;
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.pxk-post-card:hover .pxk-post-card__read { gap: 8px; }
.pxk-post-card__time {
  font-size: 11px; color: #bbb;
  display: flex; align-items: center; gap: 4px;
}

/* ── EMPTY STATE ─────────────────────────────────────── */
.pxk-blog-empty {
  text-align: center; padding: 80px 24px;
  background: #fff; border-radius: 20px;
  border: 1px solid #e5e7eb;
}
.pxk-blog-empty__icon { font-size: 60px; margin-bottom: 16px; }
.pxk-blog-empty h3 { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 8px; }
.pxk-blog-empty p { font-size: 14px; color: #888; margin: 0 0 24px; }

/* ── PAGINATION ──────────────────────────────────────── */
.pxk-blog-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.pxk-blog-pagination a,
.pxk-blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.pxk-blog-pagination a { background: #fff; color: #333; border: 1px solid #e5e7eb; }
.pxk-blog-pagination a:hover { background: #FFF0F7; color: #E8177A; border-color: #F7B8D8; }
.pxk-blog-pagination .current { background: #E8177A; color: #fff; border: 1px solid #E8177A; }

/* ── SHOP CTA ────────────────────────────────────────── */
.pxk-blog-cta {
  background: linear-gradient(135deg, #1A1A2E 0%, #2d1b4e 100%);
  border-radius: 20px; padding: 40px 36px;
  text-align: center; margin-top: 48px;
  position: relative; overflow: hidden;
}
.pxk-blog-cta::before {
  content: '';
  position: absolute; top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(232,23,122,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.pxk-blog-cta__inner { position: relative; z-index: 1; }
.pxk-blog-cta h3 { font-size: 20px; font-weight: 900; color: #fff; margin: 0 0 10px; }
.pxk-blog-cta p { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0 0 24px; line-height: 1.7; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .pxk-blog-featured__card { grid-template-columns: 1fr; }
  .pxk-blog-featured__content { padding: 28px 24px; }
  .pxk-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pxk-blog-hero { padding: 48px 16px 40px; }
  .pxk-blog-grid { grid-template-columns: 1fr; }
  .pxk-blog-body { padding: 32px 16px 60px; }
  .pxk-blog-hero__stats { gap: 20px; }
}