/*
 Theme Name: Astra FutbolChapin Child
 Template: astra
 Version: 1.0.0
 Text Domain: astra-futbolchapin-child
*/

/* ===== FutbolChapin Home Mejorada ===== */

.fc-wrap{
  max-width:1600px;
  margin:0 auto;
  padding:0px 5px;
}

/* HERO */
.fc-hero{
  margin-bottom:24px;
}
.fc-site-title{
  margin:0;
  font-weight:900;
  font-size:32px;
}
.fc-site-desc{
  margin:6px 0 0;
  opacity:.7;
}

/* Layout */
.fc-layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:30px;
  align-items:start;
}

.fc-main{min-width:0}

/* Sidebar */
.fc-sidebar{
  position:sticky;
  top:20px;
}

.fc-sidebar-block{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:16px;
}

.fc-sidebar-title{
  margin:0 0 14px;
  font-weight:800;
  font-size:18px;
}

.fc-sidebar-content{
  background:transparent; /* SIN fondo azul */
}

/* Bloque noticias */
.fc-section-title{
  margin-bottom:18px;
  font-weight:800;
  font-size:20px;
}

/* Grid */
.fc-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:22px;
}

/* ===== Card estilo Astra (solo imagen se mueve) ===== */

.fc-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Contenedor imagen */
.fc-card__media{
  display:block;
  overflow:hidden;
}

/* Imagen con animación */
.fc-card__img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  transition: transform .4s ease;
}

/* SOLO la imagen hace zoom */
.fc-card:hover .fc-card__img{
  transform: scale(1.07);
}

/* Fallback */
.fc-card__img--fallback{
  background:linear-gradient(135deg,#0b1e3c,#0f7a3d);
  width:100%;
  aspect-ratio:16/9;
}

/* ===== TÍTULO: más espacio + SIN cortar + cards uniformes ===== */

.fc-card__title{
  margin:0;
  padding:18px 18px 20px;
  min-height:110px;
  display:flex;
  align-items:flex-start;
}

/* H2 (título) SOLO en cards de la Home */
.fc-card__title.entry-title.ast-blog-single-element{
  font-size:1.25rem;
  line-height:1.3;
  font-weight:800;
}

/* Link: sin clamp, se ve completo */
.fc-card__title a{
  color:inherit;
  text-decoration:none;
  display:block;
  overflow:visible;
}

/* Hover del link */
.fc-card__title a:hover{
  text-decoration:underline;
}

/* H1 SEO oculto */
.fc-seo-h1{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ===== Paginación (si la usas) ===== */
.fc-pagination{
  margin-top:28px;
  text-align:center;
}

.fc-pagination .page-numbers{
  display:inline-block;
  padding:8px 12px;
  margin:0 4px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:8px;
  text-decoration:none;
  color:inherit;
  font-weight:700;
}

.fc-pagination .page-numbers:hover{
  border-color:rgba(0,0,0,.28);
}

.fc-pagination .current{
  background:#126ec3;
  color:#fff;
  border-color:#126ec3;
}

/* ===== Buscador Home ===== */
.fc-search{
  display:flex;
  gap:10px;
  align-items:center;
  margin:0 0 14px 0;
}

.fc-search__input{
  flex:1;
  min-width:0;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:12px;
  background:#fff;
  color:inherit;
  outline:none;ti
}

.fc-search__input:focus{
  border-color: rgba(0,0,0,.35);
}

.fc-search__btn{
  padding:12px 14px;
  border:0;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
  background: var(--ast-global-color-0, #0b1e3c);
  color:#fff;
}

/* En PC: mostrar buscador del sidebar, ocultar el de arriba */
.fc-search--sidebar{ display:none; }
.fc-search--mobile{ display:flex; }

/* ===== Single Post ===== */

.fc-single-wrap{
  background:#fff;
}

.fc-single-article{
  background:#fff;
}

.fc-single-header{
  margin-bottom:18px;
}

.fc-single-title{
  margin:0 0 8px;
  font-size:32px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:0;
  color:#1f2a44;
}

.fc-single-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0;
  margin:0 0 14px;
  font-size:15px;
  line-height:1.4;
}

.fc-single-author{
  color:#1e73be;
  font-weight:700;
}

.fc-single-date{
  color:#4b5563;
  font-weight:400;
}

.fc-single-date::before{
  content:" / ";
  color:#4b5563;
  font-weight:400;
}


.fc-single-header .fc-single-subtitle{
  position:relative;
  margin:0 0 22px;
  padding:0 0 0 22px;
  max-width:900px;
  font-size:22px;
  line-height:1.5;
  font-weight:400;
  font-style: italic;
  color:#4b5563;
  letter-spacing:-0.02em;
  border-left:4px solid #1e73be;
}

.fc-single-header .fc-single-subtitle::before{
  content:"“";
  position:absolute;
  left:8px;
  top:-2px;
  font-size:26px;
  line-height:1;
  font-weight:700;
  color:#1e73be;
  opacity:.9;
}

.fc-single-thumb{
  margin:0 0 22px;
}

.fc-single-thumb img{
  display:block;
  width:100%;
  height:auto;
  border-radius:0;
}

.fc-single-content{
  font-size:17px;
  line-height:1.8;
  color:#1f2937;
}

.fc-single-content::after{
  content:"";
  display:block;
  clear:both;
}

@media (min-width: 769px){
  .fc-search--sidebar{ display:flex; }
  .fc-search--mobile{ display:none; }

  .fc-search--sidebar{
    margin:0 0 12px 0;
  }
}

/* Accesibilidad: si el usuario reduce movimiento */
@media (prefers-reduced-motion: reduce){
  .fc-card__img{
    transition:none !important;
  }
  .fc-card:hover .fc-card__img{
    transform:none !important;
  }
}

/* Responsive */
@media (max-width: 1024px){
  .fc-grid{
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .fc-card__title{
    min-height:120px;
  }
}

@media (max-width: 768px){
  
  .fc-wrap{
    padding-left:5px;
    padding-right:5px;
  }
  
  .fc-layout{
    grid-template-columns:1fr;
  }

  .fc-sidebar{
    position:static;
    margin-top:30px;
  }

  .fc-grid{
    grid-template-columns:1fr;
  }

  .fc-card__title{
    min-height:0;
  }

  .fc-single-wrap,
  .fc-single-article{
    padding-left:0 !important;
    padding-right:0 !important;
  }

  .fc-single-header{
    padding-left:5px;
    padding-right:5px;
    margin-bottom:16px;
  }

  .fc-single-title{
    font-size:28px;
    line-height:1.18;
    margin-bottom:6px;
  }

  .fc-single-meta{
    font-size:14px;
    margin-bottom:10px;
  }

  .fc-single-header .fc-single-subtitle{
    margin:0 0 18px;
    padding-left:18px;
    font-size:19px;
    line-height:1.45;
    font-weight:400;
    color:#4b5563;
    border-left:3px solid #1e73be;
    max-width:none;
  }

  .fc-single-thumb{
    position:relative;
    left:50%;
    width:100vw;
    max-width:100vw;
    transform:translateX(-50%);
    margin-bottom:18px;
    overflow:hidden;
  }

  .fc-single-thumb img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    border-radius:0;
  }

  .fc-single-content{
    padding-left:5px;
    padding-right:5px;
    font-size:16px;
    line-height:1.75;
  }
}
