/* ============================================================
   ADOTPET
   FICHA DO ANIMAL
   Arquivo: animal-detalhe.css
   ============================================================ */


/* ============================================================
   1. CABEÇALHO DO ANIMAL
   ============================================================ */

.animal-detalhe-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.animal-detalhe-identificacao {
    min-width: 0;
}

.animal-detalhe-nome {
    margin: 0;
    color: #002069;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
}

.animal-detalhe-data {
    margin: 8px 0 0;
    color: #777777;
    font-size: 0.9rem;
}

.animal-detalhe-compartilhar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-shrink: 0;
}

.animal-detalhe-compartilhar a {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.animal-detalhe-social-icon {
    width: 20px;
    height: 20px;

    display: block;

    fill: #002069;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.animal-detalhe-compartilhar a:hover .animal-detalhe-social-icon {
    transform: scale(1.15);
    opacity: 0.75;
}

.animal-detalhe-whatsapp-icon {
    width: 21px;
    height: 21px;
}


/* ============================================================
   2. CARD PRINCIPAL
   ============================================================ */

.animal-detalhe-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   3. COLUNA DA FOTO
   ============================================================ */

.animal-detalhe-foto-coluna {
    padding: 24px;

    background: #f7f9fc;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    min-width: 0;
}

.animal-detalhe-foto-container {
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 14px;

    background: #eeeeee;
}

.animal-detalhe-foto-container img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* ============================================================
   4. BOTÃO QUERO ADOTAR
   ============================================================ */

.animal-detalhe-btn-adotar {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: #20366f;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.animal-detalhe-btn-adotar i {
    color: #f39c12;
}

.animal-detalhe-btn-adotar:hover {
    background: #162a5b;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(0, 32, 105, 0.18);
}

.animal-detalhe-btn-adotar:focus-visible {
    outline: 3px solid rgba(0, 32, 105, 0.3);
    outline-offset: 3px;
}


/* ============================================================
   5. COLUNA DE INFORMAÇÕES
   ============================================================ */

.animal-detalhe-info-coluna {
    min-width: 0;

    padding: 34px 42px 40px;
}


/* ============================================================
   6. TÍTULO DA FICHA
   ============================================================ */

.animal-detalhe-secao-titulo {
    margin-bottom: 28px;
}

.animal-detalhe-secao-titulo h2 {
    display: inline-block;

    margin: 0;

    padding-bottom: 8px;

    color: #002069;

    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 800;

    border-bottom: 3px solid #00a9d8;
}


/* ============================================================
   7. CARACTERÍSTICAS
   ============================================================ */

.animal-detalhe-caracteristicas {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 28px;
}

.animal-detalhe-caracteristica {
    padding: 16px 18px;

    background: #f7f9fc;

    border: 1px solid #e5e9ef;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.animal-detalhe-label {
    color: #666666;

    font-size: 1.6rem;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.animal-detalhe-caracteristica strong {
    color: #002069;

    font-size: 1.6rem;
    font-weight: 700;
}


/* ============================================================
   8. TEMPERAMENTO
   ============================================================ */

.animal-detalhe-temperamento {
    margin-bottom: 28px;
    padding: 20px;
    background: #eef8fd;
    border-left: 4px solid #00a9d8;
    border-radius: 8px;
}

.animal-detalhe-temperamento h3 {
    margin: 0 0 10px;
    color: #002069;
    font-size: 1.6rem;
    line-height: 1.3;
}

.animal-detalhe-temperamento p {
    margin: 0;
    color: #333333;
    font-size: 1.6rem;
    line-height: 1.2;
}


/* ============================================================
   9. SOBRE O ANIMAL
   ============================================================ */

.animal-detalhe-sobre {
    margin-top: 8px;
}

.animal-detalhe-sobre h3 {
    margin: 0 0 14px;
    color: #002069;
    font-size: 1.9rem;
    line-height: 1.4;
}

.animal-detalhe-descricao {
    color: #333333;
    font-size: 1rem;
    line-height: 1.7;
}

.animal-detalhe-descricao p {
    margin: 0 0 14px;
}

.animal-detalhe-descricao p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   10. BOTÃO DE ADOÇÃO MOBILE
   ============================================================ */

.animal-detalhe-adocao-mobile {
    display: none;
}


/* ============================================================
   11. MODAL
   ============================================================ */

.animal-detalhe-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);
}

.animal-detalhe-modal.is-open {
    display: flex;
}

.animal-detalhe-modal-box {
    position: relative;

    width: 100%;
    max-width: 480px;

    padding: 38px 34px 32px;

    background: #ffffff;

    border-radius: 16px;

    text-align: center;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

    animation: animalDetalheModalEntrada 0.25s ease;
}

@keyframes animalDetalheModalEntrada {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.animal-detalhe-modal-fechar {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #555555;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;
}

.animal-detalhe-modal-fechar:hover {
    background: #f1f1f1;
    color: #002069;
}

.animal-detalhe-modal-icon {
    width: 56px;
    height: 56px;

    margin: 0 auto 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef8fd;

    color: #f39c12;

    font-size: 1.5rem;
}

.animal-detalhe-modal-box h2 {
    margin: 0 0 14px;

    color: #002069;

    font-size: 1.45rem;
    line-height: 1.35;
}

.animal-detalhe-modal-box p {
    margin: 0 0 24px;

    color: #444444;

    font-size: 0.98rem;
    line-height: 1.6;
}

.animal-detalhe-modal-whatsapp {
    width: 100%;

    min-height: 50px;

    margin-bottom: 14px;

    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 8px;

    background: #eef8fd;

    color: #002069;

    font-size: 1rem;
    font-weight: 700;

    text-decoration: none;
}

.animal-detalhe-modal-whatsapp img {
    width: 22px;
    height: 22px;
}

.animal-detalhe-modal-whatsapp:hover {
    background: #e2f2fa;
}

.animal-detalhe-modal-btn-fechar {
    width: 100%;

    min-height: 46px;

    padding: 10px 18px;

    border: 1px solid #d5dbe3;
    border-radius: 8px;

    background: #ffffff;

    color: #555555;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;
}

.animal-detalhe-modal-btn-fechar:hover {
    background: #f5f6f8;
}


/* ============================================================
   12. AVISO IMPORTANTE
   ============================================================ */

.animal-detalhe-aviso {
    width: 100%;
    max-width: 1050px;

    margin: 60px auto 30px;

    padding: 4px;

    border-left: 4px solid #20366f;
}

.animal-detalhe-aviso-conteudo {
    padding: 24px 26px;

    background: #ffffff;

    border: 1px solid #dce3ec;
    border-radius: 0 12px 12px 0;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.animal-detalhe-aviso-titulo {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 12px;
}

.animal-detalhe-aviso-titulo i {
    color: #f39c12;

    font-size: 1.05rem;
}

.animal-detalhe-aviso-titulo h2 {
    margin: 0;

    color: #20366f;

    font-size: 2rem;
    line-height: 1.4;
    font-weight: 800;
}

.animal-detalhe-aviso-texto {
    margin: 0 0 18px;

    color: #444444;

    font-size: 1.6rem;
    line-height: 1.6;
}

.animal-detalhe-aviso-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 7px;
    background: #20366f;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.animal-detalhe-aviso-btn i {
    font-size: 1rem;
}

.animal-detalhe-aviso-btn:hover {
    background: #162a5b;
    transform: translateY(-1px);
}


/* ============================================================
   13. RESPONSIVO — 992px
   ============================================================ */

@media (max-width: 992px) {

    .animal-detalhe-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .animal-detalhe-card {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .animal-detalhe-foto-coluna {
        padding: 20px;
    }

    .animal-detalhe-info-coluna {
        padding: 28px 30px 32px;
    }

    .animal-detalhe-aviso {
        max-width: calc(100% - 40px);
        margin-top: 45px;
    }

}


/* ============================================================
   14. RESPONSIVO — 768px
   ============================================================ */

@media (max-width: 768px) {

    .animal-detalhe-header {
        padding-top: 5px;
        padding-bottom: 18px;

        gap: 20px;
    }

    .animal-detalhe-nome {
        font-size: 1.7rem;
    }

    .animal-detalhe-compartilhar {
        gap: 14px;
    }

    .animal-detalhe-social-icon {
        width: 19px;
        height: 19px;
    }


    /* Card passa para uma coluna */

    .animal-detalhe-card {
        grid-template-columns: 1fr;

        margin-left: 20px;
        margin-right: 20px;

        width: auto;
    }


    .animal-detalhe-foto-coluna {
        padding: 20px;

        background: #f7f9fc;
    }


    .animal-detalhe-foto-container {
        max-width: 500px;
        margin: 0 auto;
    }


    /* Esconde botão da coluna da foto */

    .animal-detalhe-foto-coluna > .animal-detalhe-btn-adotar {
        display: none;
    }


    /* Mostra botão dentro das informações */

    .animal-detalhe-adocao-mobile {
        display: block;

        margin-top: 28px;
    }

    .animal-detalhe-adocao-mobile .animal-detalhe-btn-adotar {
        margin-top: 0;
    }


    .animal-detalhe-info-coluna {
        padding: 28px 25px 30px;
    }


    .animal-detalhe-aviso {
        max-width: calc(100% - 40px);
    }

}


/* ============================================================
   15. RESPONSIVO — 576px
   ============================================================ */

@media (max-width: 576px) {

    .animal-detalhe-header {
        padding: 0 15px 15px;

        align-items: flex-start;
    }

    .animal-detalhe-nome {
        font-size: 1.5rem;
    }

    .animal-detalhe-data {
        margin-top: 5px;

        font-size: 0.8rem;
    }

    .animal-detalhe-compartilhar {
        gap: 10px;
    }

    .animal-detalhe-compartilhar a {
        width: 25px;
        height: 25px;
    }

    .animal-detalhe-social-icon {
        width: 18px;
        height: 18px;
    }


    .animal-detalhe-card {
        margin-left: 15px;
        margin-right: 15px;

        border-radius: 12px;
    }


    .animal-detalhe-foto-coluna {
        padding: 15px;
    }


    .animal-detalhe-foto-container {
        border-radius: 10px;
    }


    .animal-detalhe-info-coluna {
        padding: 24px 20px 25px;
    }


    .animal-detalhe-secao-titulo {
        margin-bottom: 20px;
    }

    .animal-detalhe-secao-titulo h2 {
        font-size: 1.25rem;
    }


    .animal-detalhe-caracteristicas {
        grid-template-columns: 1fr 1fr;

        gap: 10px;

        margin-bottom: 22px;
    }


    .animal-detalhe-caracteristica {
        padding: 13px 14px;
    }

    .animal-detalhe-label {
        font-size: 0.74rem;
    }

    .animal-detalhe-caracteristica strong {
        font-size: 0.9rem;
    }


    .animal-detalhe-temperamento {
        padding: 16px;

        margin-bottom: 22px;
    }

    .animal-detalhe-temperamento p {
        font-size: 0.92rem;
    }


    .animal-detalhe-sobre h3 {
        font-size: 1.05rem;
    }

    .animal-detalhe-descricao {
        font-size: 0.92rem;
        line-height: 1.65;
    }


    .animal-detalhe-aviso {
        max-width: calc(100% - 30px);

        margin-top: 35px;
        margin-bottom: 20px;
    }

    .animal-detalhe-aviso-conteudo {
        padding: 20px;
    }

}


/* ============================================================
   16. RESPONSIVO — 380px
   ============================================================ */

@media (max-width: 380px) {

    .animal-detalhe-header {
        padding-left: 10px;
        padding-right: 10px;

        gap: 10px;
    }


    .animal-detalhe-nome {
        font-size: 1.3rem;
    }

    .animal-detalhe-data {
        font-size: 0.75rem;
    }


    .animal-detalhe-compartilhar {
        gap: 7px;
    }

    .animal-detalhe-compartilhar a {
        width: 23px;
        height: 23px;
    }

    .animal-detalhe-social-icon {
        width: 17px;
        height: 17px;
    }


    .animal-detalhe-card {
        margin-left: 10px;
        margin-right: 10px;

        border-radius: 10px;
    }


    .animal-detalhe-foto-coluna {
        padding: 10px;
    }


    .animal-detalhe-foto-container {
        border-radius: 8px;
    }


    .animal-detalhe-info-coluna {
        padding: 20px 15px 22px;
    }


    .animal-detalhe-secao-titulo {
        margin-bottom: 16px;
    }

    .animal-detalhe-secao-titulo h2 {
        font-size: 1.1rem;

        padding-bottom: 6px;

        border-bottom-width: 2px;
    }


    .animal-detalhe-caracteristicas {
        gap: 8px;

        margin-bottom: 18px;
    }


    .animal-detalhe-caracteristica {
        padding: 11px 10px;

        border-radius: 7px;
    }


    .animal-detalhe-label {
        font-size: 0.68rem;
    }


    .animal-detalhe-caracteristica strong {
        font-size: 0.82rem;
    }


    .animal-detalhe-temperamento {
        padding: 13px;

        margin-bottom: 18px;

        border-left-width: 3px;
    }


    .animal-detalhe-temperamento h3 {
        font-size: 0.9rem;
    }


    .animal-detalhe-temperamento p {
        font-size: 0.86rem;
        line-height: 1.5;
    }


    .animal-detalhe-sobre h3 {
        font-size: 0.95rem;
    }


    .animal-detalhe-descricao {
        font-size: 0.86rem;
        line-height: 1.55;
    }


    .animal-detalhe-btn-adotar {
        min-height: 45px;

        padding: 10px 12px;

        font-size: 0.78rem;
    }


    .animal-detalhe-aviso {
        max-width: calc(100% - 20px);

        margin-top: 25px;
    }


    .animal-detalhe-aviso-conteudo {
        padding: 16px;
    }


    .animal-detalhe-aviso-titulo {
        gap: 7px;
    }


    .animal-detalhe-aviso-titulo h2 {
        font-size: 0.9rem;
    }


    .animal-detalhe-aviso-texto {
        font-size: 0.82rem;
        line-height: 1.5;
    }


    .animal-detalhe-aviso-btn {
        min-height: 43px;

        padding: 9px 10px;

        font-size: 0.76rem;
    }


    /* Modal */

    .animal-detalhe-modal {
        padding: 12px;
    }

    .animal-detalhe-modal-box {
        padding: 32px 20px 22px;

        border-radius: 12px;
    }

    .animal-detalhe-modal-box h2 {
        font-size: 1.2rem;
    }

    .animal-detalhe-modal-box p {
        font-size: 0.88rem;
    }

    .animal-detalhe-modal-whatsapp {
        font-size: 0.9rem;
    }

}