/* =========================================================
   gnblog-articulos.css — Card de entrada de artículo blog
   Cargado solo en is_singular('blog')
   ========================================================= */

/* Card principal */
.gnblog-entry {
    display: flex;
    gap: 0;
    border: 1px solid #c1440e;
    border-radius: 6px;
    overflow: hidden;
    background: #1c1c1c;
    margin: 16px 0 20px;
    min-height: 320px;
}

/* Póster: 260px ancho, llena todo el alto del card sin espacio */
.gnblog-poster-wrap {
    flex: 0 0 260px;
}

.gnblog-poster-wrap a {
    display: block;
    height: 100%;
}

.gnblog-poster-wrap img {
    width: 260px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Contenido derecho */
.gnblog-details {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

/* Títulos — reset completo vs .gnblog-body h1/h2 del tema */
.gnblog-body .gnblog-entry h1.gnblog-title,
.gnblog-body .gnblog-entry h2.gnblog-title-orig {
    display: block !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    padding: 0 !important;
}

/* Suprimir la barra naranja que gnblog-post.css pone en ::before de h2 */
.gnblog-body .gnblog-entry h2.gnblog-title-orig::before {
    display: none !important;
    content: none !important;
}

.gnblog-titles {
    margin-bottom: 10px;
}

.gnblog-body .gnblog-entry h1.gnblog-title {
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}
@keyframes gnblog-title-flash {
    0%   { color: #ffffff; }
    35%  { color: #f07840; }
    65%  { color: #ffffff; }
    100% { color: #f07840; }
}

.gnblog-body .gnblog-entry h1.gnblog-title a {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
}

.gnblog-body .gnblog-entry h1.gnblog-title a:hover {
    animation: gnblog-title-flash .4s ease-out forwards;
    color: #f07840 !important;
}

.gnblog-body .gnblog-entry h2.gnblog-title-orig {
    margin: 0 0 8px !important;
    color: #aaaaaa !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
}

/* Font-size fijo para todos los títulos (consistente entre cards) */
.gnblog-body .gnblog-entry h1.gnblog-title      { font-size: 17px !important; }
.gnblog-body .gnblog-entry h2.gnblog-title-orig { font-size: 14px !important; }

/* Sinopsis: ocupa el espacio disponible entre títulos y botones */
.gnblog-synopsis {
    color: #ddd;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    min-height: 80px;
    max-height: 220px;
}

.gnblog-synopsis strong {
    color: #fff;
    font-weight: 600;
}

/* Botones: justo debajo de la sinopsis sin espacio extra */
.gnblog-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    flex-shrink: 0;
}

.gnblog-ver-btn {
    display: inline-block;
    background: #c1440e;
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s;
    border: none !important;
}

.gnblog-ver-btn:hover {
    background: #a33a0c;
}

.gnblog-trailer-btn {
    display: inline-block;
    border: 1.5px solid #d86530 !important;
    color: #d86530 !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background .2s, color .2s;
    cursor: pointer;
    background: none;
}

.gnblog-trailer-btn:hover {
    background: #c1440e !important;
    color: #fff !important;
    border-color: #c1440e !important;
}

/* Lightbox */
.gnblog-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gnblog-modal-inner {
    position: relative;
    width: 90vw;
    max-width: 860px;
    aspect-ratio: 16 / 9;
}

.gnblog-modal-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.gnblog-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* ── Separador numerado ── */
.separador-two {
    width: 100%;
    margin: 56px auto 28px;
    display: block;
    line-height: 0;
}

/* Artículos nuevos: SVG ocupa todo el ancho */
.separador-two svg { display: block; width: 100%; }

/* Artículos antiguos: ocultar divs internos, usar ::before/::after para las líneas */
.separador-two:not(:has(svg)) {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.separador-two:not(:has(svg))::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(to right, rgba(58,18,5,0) 0%, rgba(139,48,16,1) 35%, rgba(208,88,32,1) 50%, rgba(139,48,16,1) 65%, rgba(58,18,5,0) 100%);
}
.separador-two:not(:has(svg))::after {
    content: '';
    position: absolute;
    top: calc(50% + 3px); left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(to right, rgba(58,18,5,0) 0%, rgba(139,48,16,.5) 35%, rgba(208,88,32,.5) 50%, rgba(139,48,16,.5) 65%, rgba(58,18,5,0) 100%);
}
.separador-two .shadow { display: none !important; }
.separador-two .text2 {
    position: relative !important; z-index: 2 !important;
    background: #c84010 !important; border-radius: 4px !important;
    width: auto !important; height: auto !important;
    bottom: auto !important; left: auto !important; margin: 0 !important;
    display: flex !important; align-items: center !important; box-shadow: none !important;
}
.separador-two .text2 .numero {
    position: static !important; display: block !important;
    line-height: 1 !important; font-size: 13px !important;
    font-weight: 700 !important; padding: 4px 14px !important; color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .gnblog-entry {
        flex-direction: column;
    }

    .gnblog-poster-wrap {
        flex: none;
        display: flex;
        justify-content: center;
        padding: 14px 0 0;
        background: #111;
    }

    /* En mobile el height: 100% no aplica; usar dims explícitas */
    .gnblog-entry {
        min-height: unset;
    }

    .gnblog-poster-wrap a {
        height: auto;
    }

    .gnblog-poster-wrap img {
        width: 160px;
        height: 237px;
    }

    .gnblog-synopsis {
        flex: none;
        max-height: 160px;
        min-height: unset;
    }

    .gnblog-actions {
        flex-direction: column;
    }

    .gnblog-ver-btn,
    .gnblog-trailer-btn {
        text-align: center;
        display: block;
    }
}
