/* ============================================================
   BCM Press Templates — non-Tailwind component CSS
   Loaded only on press CPT, archive, and topic taxonomy pages.
   ============================================================ */

/* Cards & surfaces */
.ent-card {
  background:#fff;
  border:1px solid #e4ecf5;
  box-shadow:0 1px 2px rgba(15,56,90,.04);
}
.dark .ent-card { background:#0a1628; border-color:rgba(20,41,82,.5); }

.ent-bg-white { background:#fff; }
.dark .ent-bg-white { background:#050b14; }

.ent-hero-bg {
  background:linear-gradient(180deg,#f6f9fc 0%,#fff 100%);
}
.dark .ent-hero-bg {
  background:linear-gradient(180deg,#0a1628 0%,#050b14 100%);
}

/* Search input */
.search-input {
  width:100%;
  height:42px;
  padding:0 2.5rem 0 1rem;
  background:#f6f9fc;
  border:1px solid #e4ecf5;
  border-radius:8px;
  font-size:14px;
  color:#0F385A;
  outline:none;
  transition:border-color .15s, background .15s;
}
.search-input:focus { border-color:#0F385A; background:#fff; }
.search-input::placeholder { color:#8aa6d3; }
.dark .search-input { background:#0a1628; border-color:#1e3a6e; color:#fff; }
.dark .search-input:focus { background:#142952; }

/* Filter chips */
.filter-chip {
  display:inline-flex;
  align-items:center;
  padding:.4rem .9rem;
  font-size:13px;
  font-weight:500;
  color:#5b6c81;
  background:transparent;
  border:1px solid #d4dce6;
  border-radius:999px;
  text-decoration:none;
  cursor:pointer;
  transition:all .15s;
}
.filter-chip:hover { border-color:#0F385A; color:#0F385A; }
.filter-chip.active { background:#0F385A; color:#fff; border-color:#0F385A; }
.dark .filter-chip { color:#8aa6d3; border-color:#1e3a6e; }
.dark .filter-chip.active { background:#2563eb; border-color:#2563eb; color:#fff; }

/* Section divider — thin hairline */
.section-divider {
  height:1px;
  background:linear-gradient(90deg,transparent 0%,#e4ecf5 50%,transparent 100%);
}
.dark .section-divider {
  background:linear-gradient(90deg,transparent 0%,#1e3a6e 50%,transparent 100%);
}

/* Noise overlay (subtle texture on hero/CTA backgrounds) */
.noise-overlay::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/></svg>");
  pointer-events:none;
  z-index:0;
}

/* Fade-in sections (controlled by IntersectionObserver) */
.fade-section { opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease; }
.fade-section.visible { opacity:1; transform:translateY(0); }

/* Button glow (used on enterprise CTA) */
.btn-glow { position:relative; }
.btn-glow::after {
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(60% 60% at 50% 50%,rgba(15,56,90,.25) 0%,transparent 70%);
  border-radius:inherit;
  z-index:-1;
  opacity:0;
  transition:opacity .2s;
}
.btn-glow:hover::after { opacity:1; }

/* Article prose body — adds spacing to the_content() output */
.bcm-prose-body p { font-size:15px; line-height:1.7; color:#3d4f66; margin:0 0 1.25rem; }
.bcm-prose-body p:first-of-type { font-size:18px; font-weight:500; color:#0F385A; }
.bcm-prose-body h2 { font-size:1.5rem; font-weight:700; color:#0F385A; margin:2.5rem 0 1rem; letter-spacing:-.01em; }
.bcm-prose-body h3 { font-size:1.125rem; font-weight:700; color:#0F385A; margin:2rem 0 .75rem; }
.bcm-prose-body ul, .bcm-prose-body ol { margin:0 0 1.5rem 1.5rem; padding:0; color:#3d4f66; }
.bcm-prose-body li { margin-bottom:.5rem; line-height:1.6; }
.bcm-prose-body a { color:#0F385A; text-decoration:underline; font-weight:500; }
.bcm-prose-body a:hover { color:#1a5a8a; }
.bcm-prose-body strong { color:#0F385A; }
.dark .bcm-prose-body p { color:#cbd5e1; }
.dark .bcm-prose-body p:first-of-type { color:#fff; }
.dark .bcm-prose-body h2, .dark .bcm-prose-body h3, .dark .bcm-prose-body strong { color:#fff; }
.dark .bcm-prose-body a { color:#60a5fa; }

/* Pagination */
.bcm-pagination .nav-links { display:flex; align-items:center; justify-content:center; gap:.5rem; flex-wrap:wrap; }
.bcm-pagination .page-numbers {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 .75rem;
  font-size:13px;
  font-weight:500;
  color:#5b6c81;
  background:#fff;
  border:1px solid #e4ecf5;
  border-radius:8px;
  text-decoration:none;
  transition:all .15s;
}
.bcm-pagination .page-numbers:hover { border-color:#0F385A; color:#0F385A; }
.bcm-pagination .page-numbers.current { background:#0F385A; color:#fff; border-color:#0F385A; }
.dark .bcm-pagination .page-numbers { background:#0a1628; border-color:#1e3a6e; color:#8aa6d3; }
.dark .bcm-pagination .page-numbers.current { background:#2563eb; border-color:#2563eb; color:#fff; }
