/* =========================================================
   HIFEM — LINKS
   Página de links institucionais, páginas externas e acessos úteis
   ========================================================= */

@import "./global.css";

/* =========================================================
   SEÇÕES
   ========================================================= */

.links-section {
    margin-top: 12px;
}

/* =========================================================
   GRID DE LINKS
   ========================================================= */

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.links-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   CARD DE LINK
   ========================================================= */

.link-card {
    position: relative;

    display: flex;
    flex-direction: column;
    min-height: 250px;

    padding: 30px;

    color: inherit;
    text-decoration: none;

    background: rgba(250, 248, 242, 0.76);
    border: 1px solid rgba(184, 155, 96, 0.24);
    border-left: 4px solid var(--gold);
    box-shadow: 0 12px 30px rgba(16, 47, 54, 0.045);

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

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-5px);
    background: rgba(250, 248, 242, 0.96);
    border-color: rgba(184, 155, 96, 0.52);
    box-shadow: 0 18px 42px rgba(16, 47, 54, 0.08);
    outline: none;
}

/* Seta do card */
.link-card::after {
    content: "→";

    position: absolute;
    right: 26px;
    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;
}

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

/* Cards externos */
.link-card.externo {
    background:
        linear-gradient(
            135deg,
            rgba(16, 47, 54, 0.96),
            rgba(28, 70, 80, 0.92)
        );

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

.link-card.externo h2,
.link-card.externo p {
    color: var(--paper);
}

.link-card.externo p {
    color: rgba(250, 248, 242, 0.76);
}

.link-card.externo .link-action {
    color: var(--gold);
    border-color: rgba(184, 155, 96, 0.62);
}

/* =========================================================
   CONTEÚDO DO CARD
   ========================================================= */

.link-label {
    display: block;

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

    margin-bottom: 18px;
}

.link-card h2 {
    color: var(--blue-dark);

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 2.8vw, 36px);
    line-height: 1.06;
    font-weight: 500;

    margin-bottom: 16px;
}

.link-card p {
    max-width: 620px;

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

    margin-bottom: 28px;
}

.link-action {
    display: inline-flex;
    width: fit-content;

    margin-top: auto;

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

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

/* =========================================================
   BLOCO DE DESCRIÇÃO OPCIONAL
   ========================================================= */

.links-description {
    max-width: 820px;

    color: var(--text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.65;
}

/* Pequena etiqueta opcional para categorizar links */
.link-tag {
    display: inline-block;
    margin-bottom: 14px;

    color: var(--gold);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

@media (max-width: 1040px) {
    .links-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .links-grid,
    .links-grid.three {
        grid-template-columns: 1fr;
    }

    .link-card {
        min-height: auto;
    }

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

@media (max-width: 560px) {
    .link-card {
        padding: 24px;
    }

    .link-card h2 {
        font-size: 29px;
    }

    .link-card p {
        font-size: 15.2px;
        line-height: 1.68;
    }

    .link-label {
        font-size: 10.5px;
        letter-spacing: 1.8px;
    }
}