/* =========================================================
   DETREVIEWS - CABECERA + META + SHARE (estilo Gemini)
   Archivo: /styles/social-share.css
   ========================================================= */

/* ============ CABECERA NARANJA (título + plataforma + nota) ============ */
.tj-review-hero {
    position: relative;
    width: 100%;
    background: #E88F2A;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 100px;
    margin: 0 0 16px 0;
}

/* “Brillo” diagonal */
.tj-review-hero__shine {
    position: absolute;
    right: 80px;
    top: 0;
    height: 100%;
    width: 140px;
    background: rgba(255, 255, 255, 0.10);
    transform: skewX(12deg);
    pointer-events: none;
}

.tj-review-hero__left {
    flex: 1;
    min-width: 0;
    /* clave para que el título pueda hacer wrap sin empujar la nota */
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tj-review-hero__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    font-size: 20px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.10);
}

.tj-review-hero__platforms {
    margin-top: 12px;
}

.tj-review-hero__platform {
    display: inline-block;
    background: #F4AC5B;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tj-review-hero__right {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* vital: la nota no se aplasta en móvil */
    position: relative;
    z-index: 1;
}

.tj-review-hero__score {
    background: #3D2E1E;
    color: #fff;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tj-review-hero__score-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Desktop / tablet */
@media (min-width: 768px) {
    .tj-review-hero__left {
        padding: 22px 24px;
    }

    .tj-review-hero__title {
        font-size: 34px;
    }

    .tj-review-hero__score {
        width: 100px;
        height: 70px;
        border-radius: 10px;
    }

    .tj-review-hero__score-value {
        font-size: 40px;
    }
}

/* ============ META (Publicado + Autor + Paginación) ============ */
.tj-review-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    padding: 0 0 12px 0;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tj-review-meta__left p {
    margin: 0;
}

.tj-review-meta__date {
    color: #6b7280;
}

.tj-review-meta__author {
    margin-top: 6px;
}

.tj-review-meta__author a {
    color: #E25C26;
    font-weight: 700;
    text-decoration: none;
}

.tj-review-meta__author a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .tj-review-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Ajuste para paginación inline (sin romper estilos existentes) */
.review-pagination--inline {
    margin: 0;
}

.review-pagination--inline .review-pagination__info {
    display: inline-block;
    margin-right: 10px;
}

/* ============ SOCIAL SHARE (card blanca + botones redondos) ============ */
.tj-social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    margin: 14px 0 26px 0;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tj-social-share__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.tj-social-share__label i {
    width: 18px;
    height: 18px;
    color: #E25C26;
}

/* Separador decorativo (solo desktop) */
.tj-social-share__sep {
    display: none;
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 6px;
}

@media (min-width: 768px) {
    .tj-social-share__sep {
        display: block;
    }
}

.tj-social-share__buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.tj-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform .20s ease, box-shadow .20s ease, background .20s ease, color .20s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}

.tj-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.tj-social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* WhatsApp */
.tj-social-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

/* X (Twitter) */
.tj-social-btn--twitter {
    background: #000;
    color: #fff;
}

/* Facebook */
.tj-social-btn--facebook {
    background: #1877F2;
    color: #fff;
}

/* Copiar enlace: a la derecha */
.tj-social-btn--copy {
    margin-left: auto;
    background: #f3f4f6;
    color: #4b5563;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.tj-social-btn--copy:hover {
    background: #e5e7eb;
    color: #E25C26;
    transform: none;
    box-shadow: none;
}

.tj-social-btn--copy i {
    width: 18px;
    height: 18px;
}

.tj-social-btn--copy.is-copied {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

/* Responsive: en móvil queda todo bonito y sin “aplastes” */
@media (min-width: 768px) {
    .tj-social-btn {
        width: 40px;
        height: 40px;
    }

    .tj-social-icon {
        width: 20px;
        height: 20px;
    }
}

/* =========================================================
   VARIANTE NOTICIA (article.tpl)
   ========================================================= */
.tj-review-hero--news .tj-review-hero__platforms {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Badge azul "Noticia" */
.tj-review-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.tj-review-hero__badge--news {
    background: #2563eb;
    color: #fff;
}

.tj-review-hero__badge .tj-badge-icon {
    width: 14px;
    height: 14px;
    display: block;
}

/* Caja derecha (icono periódico) */
.tj-review-hero__iconbox {
    background: #3D2E1E;
    color: rgba(255, 255, 255, .85);
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .10);
}

.tj-review-hero__iconbox .tj-iconbox-icon {
    width: 34px;
    height: 34px;
    display: block;
}

@media (min-width: 768px) {
    .tj-review-hero__iconbox {
        width: 100px;
        height: 70px;
    }

    .tj-review-hero__iconbox .tj-iconbox-icon {
        width: 40px;
        height: 40px;
    }
}

/* Subtitle en artículo (para que no herede estilos del tpl viejo) */
.tj-article-page .tj-article-subtitle {
    color: #b81414;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    margin: 18px 0 12px 0;
}

@media (max-width: 768px) {
    .tj-article-page .tj-article-subtitle {
        font-size: 22px;
    }
}