/* =========================================================
   HIFEM — NOTÍCIAS
   Página de atualizações, arquivo de notícias e notícia completa
   ========================================================= */

@import "./global.css";

/* =========================================================
   INTRODUÇÃO / BLOCO DE CONTEXTO
   ========================================================= */

.noticias-intro {
    max-width: 860px;

    background: rgba(250, 248, 242, 0.76);
    border: 1px solid rgba(184, 155, 96, 0.22);
    box-shadow: var(--shadow);

    padding: 32px 34px;
    margin-bottom: 42px;
}

.noticias-intro p {
    color: var(--text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.72;
}

/* =========================================================
   LISTA / ARQUIVO DE NOTÍCIAS
   ========================================================= */

.noticias-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;

    list-style: none;
    padding: 0;
    margin: 0;
}

.noticia-card {
    position: relative;

    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;

    padding: 28px;

    color: inherit;
    text-decoration: none;

    background: rgba(250, 248, 242, 0.76);
    border: 1px solid rgba(184, 155, 96, 0.22);
    border-left: 4px solid var(--gold);
    box-shadow: 0 14px 34px rgba(16, 47, 54, 0.05);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease;
}

.noticia-card:hover,
.noticia-card:focus-visible {
    transform: translateX(4px);
    background: rgba(250, 248, 242, 0.96);
    border-color: rgba(184, 155, 96, 0.5);
    outline: none;
}

.noticia-card::after {
    content: "→";

    position: absolute;
    right: 28px;
    bottom: 24px;

    color: var(--gold);
    font-size: 20px;
    font-weight: 800;

    opacity: 0;
    transform: translateX(-6px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.noticia-card:hover::after,
.noticia-card:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

/* Card em destaque */
.noticia-card.destaque {
    background:
        linear-gradient(
            135deg,
            rgba(16, 47, 54, 0.96),
            rgba(28, 70, 80, 0.92)
        );

    border-color: rgba(184, 155, 96, 0.45);
}

.noticia-card.destaque .noticia-title,
.noticia-card.destaque .noticia-summary {
    color: var(--paper);
}

.noticia-card.destaque .noticia-summary {
    color: rgba(250, 248, 242, 0.76);
}

/* Imagem opcional do card */
.noticia-thumb {
    width: 100%;
    min-height: 150px;
    height: 100%;

    object-fit: cover;

    background: var(--paper-2);
    border: 1px solid rgba(184, 155, 96, 0.28);

    filter: saturate(0.86) contrast(0.96);
}

/* Quando não houver imagem */
.noticia-thumb-placeholder {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(184, 155, 96, 0.18),
            rgba(238, 232, 220, 0.96) 68%
        );

    border: 1px solid rgba(184, 155, 96, 0.28);

    color: var(--gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 5px;
}

.noticia-content {
    min-width: 0;
    padding-right: 42px;
}

.noticia-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;

    margin-bottom: 14px;
}

.noticia-date,
.noticia-tag {
    color: var(--gold);

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.noticia-tag {
    color: var(--blue);
}

.noticia-card.destaque .noticia-tag {
    color: rgba(250, 248, 242, 0.72);
}

.noticia-title {
    color: var(--blue-dark);

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
    font-weight: 500;

    margin-bottom: 14px;
}

.noticia-summary {
    max-width: 760px;

    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

.noticia-read {
    display: inline-flex;
    width: fit-content;

    margin-top: 20px;

    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;

    border-bottom: 1px solid rgba(184, 155, 96, 0.62);
}

/* =========================================================
   NOTÍCIA COMPLETA
   ========================================================= */

.noticia-article {
    max-width: 920px;
}

.noticia-article-header {
    margin-bottom: 36px;
}

.noticia-eyebrow {
    display: block;

    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;

    font-size: 12px;
    font-weight: 800;

    margin-bottom: 16px;
}

.noticia-article-title {
    max-width: 860px;

    color: var(--blue-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    font-weight: 500;
    letter-spacing: 0.4px;

    margin-bottom: 22px;
}

.noticia-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;

    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.noticia-cover {
    width: 100%;
    max-height: 520px;

    object-fit: cover;

    margin: 34px 0;

    background: var(--paper-2);
    border: 1px solid rgba(184, 155, 96, 0.28);

    filter: saturate(0.9) contrast(0.96);
}

.noticia-lead {
    max-width: 820px;

    color: var(--text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.62;

    margin-bottom: 34px;
}

/* Corpo do texto completo */
.noticia-body {
    max-width: 820px;
}

.noticia-body p {
    color: var(--text);
    font-size: 17px;
    line-height: 1.78;

    margin-bottom: 18px;
}

.noticia-body h2 {
    color: var(--blue-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(31px, 3vw, 42px);
    line-height: 1.08;
    font-weight: 500;

    margin: 42px 0 16px;
}

.noticia-body h3 {
    color: var(--blue-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 500;

    margin: 32px 0 14px;
}

.noticia-body ul,
.noticia-body ol {
    margin: 20px 0 24px;
    padding-left: 22px;
}

.noticia-body li {
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;

    margin-bottom: 10px;
}

.noticia-body blockquote {
    margin: 34px 0;
    padding: 24px 30px;

    background: rgba(250, 248, 242, 0.78);
    border-left: 4px solid var(--gold);
    box-shadow: 0 12px 28px rgba(16, 47, 54, 0.04);

    color: var(--blue-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.5;
    font-style: italic;
}

/* Dados objetivos da notícia */
.noticia-info-box {
    max-width: 820px;

    margin: 34px 0;
    padding: 28px 30px;

    background: rgba(250, 248, 242, 0.76);
    border: 1px solid rgba(184, 155, 96, 0.24);
    box-shadow: var(--shadow);
}

.noticia-info-box h2 {
    color: var(--blue-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
    line-height: 1.08;
    font-weight: 500;

    margin-bottom: 18px;
}

.noticia-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.noticia-info-list li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;

    padding: 12px 0;

    border-bottom: 1px solid rgba(184, 155, 96, 0.18);

    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

.noticia-info-list li:last-child {
    border-bottom: 0;
}

.noticia-info-list strong {
    color: var(--gold);

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Botões e navegação da notícia */
.noticia-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 36px;
}

.noticia-actions a,
.noticia-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;

    color: var(--blue-dark);
    background: transparent;
    border: 1px solid rgba(184, 155, 96, 0.62);

    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.noticia-actions a:hover,
.noticia-actions a:focus-visible,
.noticia-back:hover,
.noticia-back:focus-visible {
    background: var(--gold);
    color: var(--paper);
    border-color: var(--gold);
    transform: translateY(-2px);
    outline: none;
}

.noticia-footer-nav {
    max-width: 820px;

    margin-top: 56px;
    padding-top: 28px;

    border-top: 1px solid rgba(184, 155, 96, 0.32);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 860px) {
    .noticia-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .noticia-thumb,
    .noticia-thumb-placeholder {
        min-height: 220px;
    }

    .noticia-content {
        padding-right: 0;
    }

    .noticia-card::after {
        opacity: 1;
        transform: translateX(0);
    }

    .noticia-info-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 560px) {
    .noticias-intro {
        padding: 26px;
    }

    .noticia-card {
        padding: 24px;
    }

    .noticia-thumb,
    .noticia-thumb-placeholder {
        min-height: 180px;
    }

    .noticia-title {
        font-size: 30px;
    }

    .noticia-summary,
    .noticia-body p,
    .noticia-body li {
        font-size: 15.8px;
        line-height: 1.74;
    }

    .noticia-article-title {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.02;
    }

    .noticia-lead {
        font-size: 20px;
        line-height: 1.64;
    }

    .noticia-body h2 {
        font-size: 32px;
    }

    .noticia-body blockquote {
        padding: 22px 24px;
        font-size: 21px;
    }

    .noticia-info-box {
        padding: 24px;
    }

    .noticia-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   AJUSTE — IMAGENS DE NOTÍCIAS SEM RECORTE
   Impede que folders, capas de livro e imagens com texto sejam cortados
   ========================================================= */

/* Imagem principal dentro da notícia */
.noticia-cover,
.noticia-article .noticia-cover {
    width: min(100%, 860px);
    height: auto !important;
    max-height: none !important;

    display: block;

    object-fit: contain !important;
    object-position: center !important;
    aspect-ratio: auto !important;

    margin: 34px auto 38px;

    background: transparent;
    border: 1px solid rgba(184, 155, 96, 0.28);
    box-shadow: 0 18px 45px rgba(16, 47, 54, 0.08);

    filter: saturate(0.94) contrast(0.97);
}

/* Miniaturas na página geral de notícias */
.noticias-list .noticia-thumb {
    width: 100%;
    height: 230px !important;
    min-height: 230px;

    object-fit: contain !important;
    object-position: center !important;

    padding: 10px;

    background: var(--paper-2);
    border: 1px solid rgba(184, 155, 96, 0.28);
}

/* Em telas menores, mantém a imagem legível */
@media (max-width: 560px) {
    .noticias-list .noticia-thumb {
        height: 200px !important;
        min-height: 200px;
    }

    .noticia-cover,
    .noticia-article .noticia-cover {
        width: 100%;
        margin: 28px auto 34px;
    }
}