/* ============================================
   BORTLE CERO — BLOG ARCHIVE
   ============================================ */

/* HEADER */
.bc-blog-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080c14;
}

.bc-blog-header__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 30%,
    #1a2840 0%,
    #0d1625 45%,
    #080c14 100%
  );
}

/* Con imagen de fondo: cover + Ken Burns suave */
.bc-blog-header__bg.has-image {
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.bc-blog-header__bg.has-image.loaded {
  transform: scale(1);
}

/* Overlay más denso cuando hay foto para mantener legibilidad */
.bc-blog-header__bg.has-image ~ .bc-blog-header__overlay {
  background: linear-gradient(
    to top,
    rgba(8,12,20,0.97) 0%,
    rgba(8,12,20,0.65) 55%,
    rgba(8,12,20,0.40) 100%
  );
}

.bc-blog-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,12,20,0.98) 0%,
    rgba(8,12,20,0.5) 100%
  );
}

.bc-blog-header__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bc-blog-header__content {
  position: relative;
  z-index: 2;
  padding: 60px;
  padding-bottom: 56px;
  max-width: 700px;
}

.bc-blog-header__eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #4a6080;
  font-weight: 400;
  margin-bottom: 14px;
}

.bc-blog-header__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  color: #f0f6ff;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 0 0 16px;
}

.bc-blog-header__accent {
  width: 32px;
  height: 2px;
  background: #7ba8d4;
  border-radius: 1px;
  margin-bottom: 20px;
}

.bc-blog-header__desc {
  font-size: 15px;
  font-weight: 300;
  color: #8aa4c0;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

/* FILTROS */
.bc-blog-filters {
  background: #080c14;
  border-bottom: 0.5px solid #1a2840;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.bc-blog-filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bc-blog-filters__inner::-webkit-scrollbar { display: none; }

.bc-blog-filter {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  color: #4a6080;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.bc-blog-filter:hover {
  color: #c8d8ec;
}

.bc-blog-filter.active {
  color: var(--filter-color, #7ba8d4);
  border-bottom-color: var(--filter-color, #7ba8d4);
}

/* GRID */
.bc-blog-grid {
  background: #080c14;
  padding: 60px 0 80px;
}

.bc-blog-grid__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CARD */
.bc-post-card {
  background: #0d1625;
  border: 0.5px solid #1a2840;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bc-post-card:hover {
  border-color: var(--card-color, #7ba8d4);
  transform: translateY(-3px);
}

/* Thumbnail */
.bc-post-card__thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.bc-post-card__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.bc-post-card:hover .bc-post-card__thumb {
  transform: scale(1.04);
}

/* Placeholder sin imagen: ver .bc-card-ph en style.css (bc_card_placeholder) */

.bc-post-card__thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,22,37,0.6) 0%,
    transparent 60%
  );
}

/* Cuerpo */
.bc-post-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bc-post-card__meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bc-post-card__cat {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--card-color, #7ba8d4);
}

.bc-post-card__read {
  font-size: 10px;
  color: #4a6080;
  font-weight: 300;
}

.bc-post-card__title {
  font-size: 17px;
  font-weight: 500;
  color: #f0f6ff;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 0 0 10px;
  flex: 1;
}

.bc-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.bc-post-card__title a:hover {
  color: var(--card-color, #7ba8d4);
}

.bc-post-card__excerpt {
  font-size: 13px;
  font-weight: 300;
  color: #4a6080;
  line-height: 1.6;
  margin: 0 0 16px;
}

.bc-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 0.5px solid #1a2840;
  margin-top: auto;
}

.bc-post-card__date {
  font-size: 11px;
  color: #4a6080;
  font-weight: 300;
}

.bc-post-card__link {
  font-size: 11px;
  color: var(--card-color, #7ba8d4);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.bc-post-card__link:hover {
  color: #f0f6ff;
}

/* EMPTY STATE */
.bc-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: #4a6080;
  font-size: 15px;
  font-weight: 300;
}

/* PAGINACIÓN */
.bc-blog-pagination {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 60px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bc-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #4a6080;
  border: 0.5px solid #1a2840;
  text-decoration: none;
  transition: all 0.15s;
}

.bc-blog-pagination .page-numbers:hover,
.bc-blog-pagination .page-numbers.current {
  color: #7ba8d4;
  border-color: #7ba8d4;
  background: rgba(123,168,212,0.08);
}

.bc-blog-pagination .prev,
.bc-blog-pagination .next {
  width: auto;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 1px;
}

/* OCULTAR BANNER DE KADENCE EN BLOG */
.blog .entry-header,
.blog .page-title-wrap,
.archive .entry-header,
.archive .page-title-wrap {
  display: none !important;
}

.blog .content-wrap,
.blog article {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .bc-blog-grid__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bc-blog-header__content { padding: 40px 24px 48px; }
  .bc-blog-filters__inner  { padding: 0 24px; }
  .bc-blog-grid__inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .bc-blog-pagination { padding: 0 24px; }
}

/* Thumbnail como <img> real (lazy + srcset)
   dentro del contenedor .bc-post-card__thumb */
.bc-post-card__thumb .bc-post-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Formulario de búsqueda (search.php) ── */
.bc-search-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 24px auto 0;
}

.bc-search-form input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  font-family: var(--bc-font, 'Space Grotesk', sans-serif);
  font-size: 14px;
  font-weight: var(--bc-fw-light, 300);
  color: var(--bc-blanco, #f0f6ff);
  background: rgba(13, 22, 37, 0.8);
  border: var(--bc-border-def, 0.5px solid #2a4060);
  border-radius: var(--bc-radius, 10px);
  outline: none;
  transition: var(--bc-transition, all 0.15s ease);
}

.bc-search-form input[type="search"]:focus {
  border-color: var(--bc-acento, #7ba8d4);
}

.bc-search-form input[type="search"]::placeholder {
  color: var(--bc-muted, #4a6080);
}

.bc-search-form button {
  padding: 12px 22px;
  font-family: var(--bc-font, 'Space Grotesk', sans-serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bc-cosmos, #080c14);
  background: var(--bc-estrella, #b8d4f0);
  border: none;
  border-radius: var(--bc-radius, 10px);
  cursor: pointer;
  transition: var(--bc-transition, all 0.15s ease);
}

.bc-search-form button:hover {
  background: var(--bc-blanco, #f0f6ff);
}
