/* =============================================
   ChecklistInfo Homepage Styles v2
   Full-width hero · Light/Dark adaptive
   ============================================= */

/* ── Base ── */
.ci-home {
  font-family: var(--ci-font, 'Inter', sans-serif);
  color: var(--ci-text, #f0f2f8);
}

/* ══════════════════════════════════════════
   FULL-WIDTH BLEED HELPER
   Breaks out of Astra's .ast-container (max-width:1200px)
══════════════════════════════════════════ */
.ci-hero {
  /* Negative margin trick: pull left/right to viewport edges */
  margin-left:  calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;

  position: relative;
  padding: 100px 24px 90px;
  overflow: hidden;
  text-align: center;
}

/* Background blobs */
.ci-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%,  rgba(79,142,247,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%,   rgba(124,106,247,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%,   rgba(79,142,247,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Light mode blobs (softer) */
@media (prefers-color-scheme: light) {
  .ci-hero__bg {
    background:
      radial-gradient(ellipse 80% 60% at 50% -10%,  rgba(79,142,247,0.09) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 80% 60%,   rgba(124,106,247,0.06) 0%, transparent 60%);
  }
}

.ci-hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

/* Badge */
.ci-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.28);
  color: #60a5fa;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

@media (prefers-color-scheme: light) {
  .ci-hero__badge {
    background: rgba(79,142,247,0.08);
    border-color: rgba(79,142,247,0.22);
    color: #2563eb;
  }
}

/* Title */
.ci-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ci-text, #f0f2f8);
  margin: 0 0 22px;
}

.ci-hero__title-accent {
  background: linear-gradient(135deg, #4f8ef7 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode title fix */
@media (prefers-color-scheme: light) {
  .ci-hero__title { color: #111827; }
  .ci-hero__stat-num { color: #111827; }
  .ci-hero__stat-label { color: #9ca3af; }
  .ci-section-title { color: #111827; }
  .ci-set-card { background: #ffffff; border-color: rgba(0,0,0,0.12); }
  .ci-set-card__title { color: #111827; }
  .ci-set-card__img-placeholder {
    background: linear-gradient(135deg, #e2e6f2 0%, #d0d6e8 100%);
    color: rgba(0,0,0,0.18);
  }
  .ci-set-card__typebar { background: #e2e6f2; }
  .ci-typelegend__item { color: #9ca3af; }
  .ci-typelegend__count { color: #4b5563; }
}

/* Description */
.ci-hero__desc {
  font-size: 1.1rem;
  color: var(--ci-text2, #9aa3c0);
  line-height: 1.7;
  margin: 0 0 36px;
}

/* CTA buttons */
.ci-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.ci-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 30px;
  border-radius: 9px;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
  font-family: var(--ci-font, inherit);
}

.ci-btn--primary {
  background: linear-gradient(135deg, #4f8ef7 0%, #7c6af7 100%);
  color: #fff !important;
  box-shadow: 0 4px 22px rgba(79,142,247,0.38);
}
.ci-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,142,247,0.52);
  color: #fff !important;
}

.ci-btn--ghost {
  background: rgba(255,255,255,0.07);
  color: var(--ci-text2, #9aa3c0) !important;
  border: 1px solid rgba(255,255,255,0.15);
}
.ci-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--ci-text, #f0f2f8) !important;
  border-color: rgba(255,255,255,0.28);
}

@media (prefers-color-scheme: light) {
  .ci-btn--ghost {
    background: rgba(0,0,0,0.04);
    color: #4b5563 !important;
    border-color: rgba(0,0,0,0.14);
  }
  .ci-btn--ghost:hover {
    background: rgba(0,0,0,0.08);
    color: #111827 !important;
    border-color: rgba(0,0,0,0.22);
  }
}

/* Stats row */
.ci-hero__stats {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px 36px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

@media (prefers-color-scheme: light) {
  .ci-hero__stats {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
  }
}

.ci-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.ci-hero__stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ci-text, #f0f2f8);
  letter-spacing: -0.03em;
  line-height: 1;
}

.ci-hero__stat-label {
  font-size: 0.72rem;
  color: var(--ci-text3, #5d6585);
  font-weight: 500;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ci-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--ci-border, rgba(255,255,255,0.1));
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   SETS SECTION
══════════════════════════════════════════ */
.ci-sets-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.ci-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ci-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ci-text, #f0f2f8);
  letter-spacing: -0.02em;
  margin: 0;
}

.ci-section-link {
  color: #4f8ef7 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.ci-section-link:hover { color: #7c6af7 !important; }

/* Sets grid */
.ci-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Set card */
.ci-set-card {
  background: var(--ci-bg2, #181c27);
  border: 1px solid var(--ci-border2, rgba(255,255,255,0.14));
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none !important;
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ci-set-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
  border-color: rgba(79,142,247,0.42);
}

@media (prefers-color-scheme: light) {
  .ci-set-card:hover {
    box-shadow: 0 12px 32px rgba(79,142,247,0.15);
  }
}

/* Cover image area */
.ci-set-card__img-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--ci-bg3, #1e2336);
}

.ci-set-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ci-set-card:hover .ci-set-card__img { transform: scale(1.05); }

.ci-set-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ci-bg3, #1e2336) 0%, var(--ci-surface2, #2c3450) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ci-border2, rgba(255,255,255,0.2));
}

.ci-set-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,28,39,0.75) 0%, transparent 55%);
}

@media (prefers-color-scheme: light) {
  .ci-set-card__overlay {
    background: linear-gradient(to top, rgba(240,242,251,0.6) 0%, transparent 55%);
  }
}

.ci-set-card__count {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(79,142,247,0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* Card body */
.ci-set-card__body { padding: 18px; }

.ci-set-card__title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ci-text, #f0f2f8);
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ci-set-card__pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }

.ci-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--ci-surface, #242a3d);
  color: var(--ci-text2, #9aa3c0);
  border: 1px solid var(--ci-border2, rgba(255,255,255,0.14));
  letter-spacing: 0.02em;
}
.ci-pill--sport {
  background: rgba(79,142,247,0.12);
  color: #60a5fa;
  border-color: rgba(79,142,247,0.25);
}
@media (prefers-color-scheme: light) {
  .ci-pill--sport { color: #1d4ed8; }
}

/* Type breakdown bar */
.ci-set-card__typebar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ci-surface2, #2c3450);
  margin-bottom: 10px;
  gap: 2px;
}
.ci-typebar__seg--base        { background: #3b82f6; }
.ci-typebar__seg--autograph   { background: #f59e0b; }
.ci-typebar__seg--insert      { background: #10b981; }
.ci-typebar__seg--memorabilia { background: #8b5cf6; }

.ci-set-card__typelegend { display: flex; flex-wrap: wrap; gap: 10px; }

.ci-typelegend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: var(--ci-text3, #5d6585);
}
.ci-typelegend__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ci-typelegend__dot--base        { background: #3b82f6; }
.ci-typelegend__dot--autograph   { background: #f59e0b; }
.ci-typelegend__dot--insert      { background: #10b981; }
.ci-typelegend__dot--memorabilia { background: #8b5cf6; }

.ci-typelegend__count {
  color: var(--ci-text2, #9aa3c0);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   HOME PAGE – hide Astra entry chrome
══════════════════════════════════════════ */
.page-id-1290 .entry-header,
.page-id-1290 .entry-meta,
.page-id-1290 .entry-footer,
body.page-id-1290 .ast-article-post > .entry-header { display: none !important; }

body.page-id-1290 .entry-content { padding: 0 !important; margin: 0 !important; }
body.page-id-1290 .ast-article-post { padding: 0 !important; }
body.page-id-1290 #primary { padding: 0 !important; }

/* Also remove container side-padding so hero bleed works */
body.page-id-1290 .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ci-hero { padding: 70px 20px 60px; }
  .ci-hero__stats { padding: 16px 20px; }
  .ci-hero__stat { padding: 0 16px; }
  .ci-hero__stat-num { font-size: 1.5rem; }
  .ci-hero__stat-divider { height: 32px; }
}

@media (max-width: 520px) {
  .ci-hero { padding: 56px 16px 50px; }
  .ci-hero__stat { padding: 0 12px; }
  .ci-hero__stat-num { font-size: 1.3rem; }
  .ci-sets-grid { grid-template-columns: 1fr; }
  .ci-sets-section { padding: 40px 16px 50px; }
  .ci-hero__actions { flex-direction: column; align-items: center; }
  .ci-btn { width: 100%; max-width: 260px; justify-content: center; }
}
