/*==================================================
ANIMAL-DETALHE.CSS
Projeto: AdotPet V2
Autor: ChatGPT + Codiub
==================================================*/



/*==================================================
1. LAYOUT GERAL
==================================================*/

.detalhe-animal{

    width:100%;
    max-width:1280px;

    margin:50px auto 80px;

    padding:0 24px;

}



.detalhe-animal *{

    box-sizing:border-box;

}



/*==================================================
2. CABEÇALHO
==================================================*/

.detalhe-animal-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:30px;

    margin-bottom:40px;

}



.detalhe-animal-titulo{

    flex:1;

}



.detalhe-animal-titulo h1{

    margin:12px 0 8px;

    color:#002069;

    font-size:3rem;

    font-weight:800;

    line-height:1.1;

    text-transform:uppercase;

}



.detalhe-animal-data{

    color:#777;

    font-size:.95rem;

}



/*==================================================
3. REDES SOCIAIS
==================================================*/

.detalhe-animal-share{

    display:flex;

    align-items:center;

    gap:12px;

}



.detalhe-animal-share a{

    width:46px;

    height:46px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:#ffffff;

    border:1px solid #e5e5e5;

    transition:.30s;

    text-decoration:none;

}



.detalhe-animal-share a:hover{

    background:#002069;

    border-color:#002069;

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(0,32,105,.18);

}



.detalhe-animal-share svg{

    fill:#002069;

    transition:.30s;

}



.detalhe-animal-share a:hover svg{

    fill:#ffffff;

}



/*==================================================
4. HERO
==================================================*/

.detalhe-animal-hero{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:40px;

    align-items:start;

}



/*==================================================
5. FOTO
==================================================*/

.detalhe-animal-foto{

    position:sticky;

    top:30px;

}



.detalhe-animal-foto-box{

    background:#ffffff;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    border:1px solid #ececec;

}



.detalhe-animal-foto-box img{

    width:100%;

    height:520px;

    object-fit:cover;

    display:block;

    transition:.45s;

}



.detalhe-animal-foto-box:hover img{

    transform:scale(1.04);

}



/*==================================================
6. BOTÃO ADOTAR
==================================================*/

.detalhe-animal-btn-adotar{

    width:100%;

    margin-top:24px;

    padding:18px;

    border:none;

    border-radius:14px;

    background:#002069;

    color:#ffffff;

    font-size:1.08rem;

    font-weight:700;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    transition:.30s;

}



.detalhe-animal-btn-adotar i{

    color:#f39c12;

    font-size:1.2rem;

}



.detalhe-animal-btn-adotar:hover{

    background:#0037b3;

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(0,32,105,.25);

}



/*==================================================
7. COLUNA DIREITA
==================================================*/

.detalhe-animal-info{

    display:flex;

    flex-direction:column;

    gap:28px;

}



/*==================================================
8. SUBTÍTULOS
==================================================*/

.detalhe-animal-subtitulo{

    margin:0;

    color:#002069;

    font-size:2rem;

    font-weight:700;

}

/*==================================================
9. FICHA DO ANIMAL
==================================================*/

.detalhe-animal-ficha{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}



.detalhe-animal-ficha-card{

    background:#ffffff;

    border:1px solid #ececec;

    border-radius:16px;

    padding:22px;

    transition:.30s;

    box-shadow:0 4px 15px rgba(0,0,0,.04);

}



.detalhe-animal-ficha-card:hover{

    transform:translateY(-4px);

    box-shadow:0 14px 30px rgba(0,32,105,.08);

    border-color:#d7e3ff;

}



.detalhe-animal-ficha-card span{

    display:block;

    margin-bottom:8px;

    color:#7b7b7b;

    font-size:.85rem;

    text-transform:uppercase;

    letter-spacing:.06em;

    font-weight:700;

}



.detalhe-animal-ficha-card strong{

    display:block;

    color:#002069;

    font-size:1.25rem;

    font-weight:700;

}



/*==================================================
10. TEMPERAMENTO
==================================================*/

.detalhe-animal-temperamento{

    background:#fff8ef;

    border-left:6px solid #f39c12;

    border-radius:16px;

    padding:28px;

}



.detalhe-animal-temperamento h3{

    margin:0 0 14px;

    color:#002069;

    font-size:1.35rem;

    font-weight:700;

}



.detalhe-animal-temperamento p{

    margin:0;

    color:#555;

    line-height:1.8;

    font-size:1.05rem;

    font-style:italic;

}



/*==================================================
11. SOBRE O ANIMAL
==================================================*/

.detalhe-animal-descricao{

    margin-top:50px;

    background:#ffffff;

    border-radius:20px;

    padding:40px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

    border:1px solid #ededed;

}



.detalhe-animal-descricao h2{

    margin:0 0 25px;

    color:#002069;

    font-size:2rem;

    font-weight:700;

    position:relative;

}



.detalhe-animal-descricao h2::after{

    content:"";

    display:block;

    width:70px;

    height:4px;

    margin-top:12px;

    border-radius:30px;

    background:#f39c12;

}



.detalhe-animal-descricao p{

    margin:0;

    color:#555;

    line-height:2;

    font-size:1.05rem;

    text-align:justify;

}



/*==================================================
12. DESTAQUES
==================================================*/

.detalhe-animal strong{

    color:#002069;

}



.detalhe-animal p{

    margin:0;

}



/*==================================================
13. TRANSIÇÕES
==================================================*/

.detalhe-animal-ficha-card,
.detalhe-animal-btn-adotar,
.detalhe-animal-share a,
.detalhe-animal-foto-box img{

    transition:.30s;

}



/*==================================================
14. ANIMAÇÕES
==================================================*/

@keyframes detalheFade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:none;

    }

}



.detalhe-animal-header{

    animation:detalheFade .45s ease;

}



.detalhe-animal-hero{

    animation:detalheFade .60s ease;

}



.detalhe-animal-descricao{

    animation:detalheFade .80s ease;

}



/*==================================================
15. SELEÇÃO DE TEXTO
==================================================*/

.detalhe-animal ::selection{

    background:#002069;

    color:#ffffff;

}

/*==================================================
16. MODAL
==================================================*/

.detalhe-modal{

    display:none;

    position:fixed;

    inset:0;

    z-index:99999;

}



.detalhe-modal-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.70);

    backdrop-filter:blur(6px);

}



.detalhe-modal-box{

    position:relative;

    width:min(92%,560px);

    margin:8vh auto;

    background:#ffffff;

    border-radius:24px;

    padding:45px;

    text-align:center;

    box-shadow:0 30px 80px rgba(0,0,0,.30);

    animation:modalOpen .35s ease;

}



@keyframes modalOpen{

    from{

        opacity:0;

        transform:translateY(50px) scale(.95);

    }

    to{

        opacity:1;

        transform:none;

    }

}



.detalhe-modal-close{

    position:absolute;

    top:18px;

    right:20px;

    width:42px;

    height:42px;

    border:none;

    background:#f4f4f4;

    border-radius:50%;

    cursor:pointer;

    color:#777;

    font-size:1.7rem;

    transition:.25s;

}



.detalhe-modal-close:hover{

    background:#002069;

    color:#ffffff;

}



.detalhe-modal-icon{

    width:90px;

    height:90px;

    margin:0 auto 30px;

    background:#002069;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

}



.detalhe-modal-icon i{

    color:#f39c12;

    font-size:2.3rem;

}



.detalhe-modal-box h2{

    margin:0;

    color:#002069;

    font-size:2rem;

    font-weight:800;

}



.detalhe-modal-texto{

    margin:22px 0 35px;

    color:#666;

    line-height:1.9;

}



.detalhe-modal-whatsapp{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    gap:14px;

    padding:18px 28px;

    border-radius:14px;

    background:#25D366;

    color:#ffffff;

    text-decoration:none;

    font-size:1.15rem;

    font-weight:700;

    transition:.30s;

}



.detalhe-modal-whatsapp:hover{

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(37,211,102,.35);

}



.detalhe-modal-whatsapp img{

    width:26px;

}



.detalhe-modal-info{

    margin:35px 0;

    color:#777;

    line-height:1.8;

}



.detalhe-modal-fechar{

    width:100%;

    padding:16px;

    border:none;

    border-radius:14px;

    background:#002069;

    color:#ffffff;

    font-size:1rem;

    font-weight:700;

    cursor:pointer;

    transition:.30s;

}



.detalhe-modal-fechar:hover{

    background:#0039bb;

}



/*==================================================
17. AVISO IMPORTANTE
==================================================*/

.detalhe-aviso{

    margin:70px 0;

}



.detalhe-aviso-card{

    display:flex;

    align-items:center;

    gap:35px;

    background:linear-gradient(135deg,#002069,#0037b3);

    color:#ffffff;

    border-radius:24px;

    padding:45px;

    overflow:hidden;

    position:relative;

}



.detalhe-aviso-card::before{

    content:"";

    position:absolute;

    width:260px;

    height:260px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

    right:-90px;

    top:-90px;

}



.detalhe-aviso-icon{

    flex:0 0 90px;

    width:90px;

    height:90px;

    border-radius:50%;

    background:rgba(255,255,255,.10);

    display:flex;

    justify-content:center;

    align-items:center;

}



.detalhe-aviso-icon i{

    color:#f39c12;

    font-size:2.5rem;

}



.detalhe-aviso-content{

    flex:1;

    position:relative;

    z-index:2;

}



.detalhe-aviso-content h2{

    margin:0 0 15px;

    color:#ffffff;

    font-size:2rem;

    font-weight:800;

}



.detalhe-aviso-content p{

    color:#dce7ff;

    line-height:1.9;

    margin-bottom:30px;

}



.detalhe-aviso-btn{

    display:inline-flex;

    align-items:center;

    gap:12px;

    padding:18px 28px;

    border-radius:14px;

    background:#25D366;

    color:#ffffff;

    text-decoration:none;

    font-weight:700;

    transition:.30s;

}



.detalhe-aviso-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 14px 30px rgba(37,211,102,.30);

}



.detalhe-aviso-btn img{

    width:24px;

}



/*==================================================
18. ACABAMENTOS
==================================================*/

.detalhe-animal a{

    transition:.30s;

}



.detalhe-animal img{

    user-select:none;

}



.detalhe-animal button{

    font-family:inherit;

}



.detalhe-animal svg{

    transition:.30s;

}

media (max-width:992px){

    .detalhe-animal{

        padding:0 20px;

    }

    .detalhe-animal-header{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .detalhe-animal-share{

        width:100%;

    }

    .detalhe-animal-hero{

        grid-template-columns:340px 1fr;

        gap:30px;

    }

    .detalhe-animal-foto-box img{

        height:450px;

    }

    .detalhe-animal-ficha{

        grid-template-columns:repeat(2,1fr);

    }

    .detalhe-aviso-card{

        padding:35px;

    }

}



/*==================================================
20. RESPONSIVO - TABLET
Até 768px
==================================================*/

@media (max-width:768px){

    .detalhe-animal{

        margin-top:35px;

    }

    .detalhe-animal-header{

        gap:18px;

    }

    .detalhe-animal-titulo h1{

        font-size:2.3rem;

    }

    .detalhe-animal-share{

        justify-content:flex-start;

        flex-wrap:wrap;

    }

    .detalhe-animal-share a{

        width:42px;

        height:42px;

    }

    .detalhe-animal-hero{

        grid-template-columns:1fr;

    }

    .detalhe-animal-foto{

        position:relative;

        top:auto;

    }

    .detalhe-animal-foto-box img{

        height:500px;

    }

    .detalhe-animal-ficha{

        grid-template-columns:1fr 1fr;

    }

    .detalhe-animal-descricao{

        padding:30px;

    }

    .detalhe-aviso-card{

        flex-direction:column;

        text-align:center;

    }

    .detalhe-aviso-btn{

        width:100%;

        justify-content:center;

    }

}



/*==================================================
21. RESPONSIVO - CELULAR
Até 576px
==================================================*/

@media (max-width:576px){

    .detalhe-animal{

        padding:0 15px;

    }

    .detalhe-animal-header{

        margin-bottom:25px;

    }

    .detalhe-animal-titulo h1{

        font-size:2rem;

    }

    .detalhe-animal-data{

        font-size:.90rem;

    }

    .detalhe-animal-share{

        justify-content:center;

    }

    .detalhe-animal-share a{

        width:40px;

        height:40px;

    }

    .detalhe-animal-foto-box{

        border-radius:18px;

    }

    .detalhe-animal-foto-box img{

        height:420px;

    }

    .detalhe-animal-btn-adotar{

        font-size:1rem;

        padding:16px;

    }

    .detalhe-animal-subtitulo{

        font-size:1.6rem;

    }

    .detalhe-animal-ficha{

        grid-template-columns:1fr;

        gap:15px;

    }

    .detalhe-animal-ficha-card{

        padding:20px;

    }

    .detalhe-animal-temperamento{

        padding:22px;

    }

    .detalhe-animal-descricao{

        margin-top:35px;

        padding:25px;

    }

    .detalhe-animal-descricao h2{

        font-size:1.6rem;

    }

    .detalhe-modal-box{

        padding:35px 25px;

    }

    .detalhe-modal-box h2{

        font-size:1.6rem;

    }

}



/*==================================================
22. RESPONSIVO - CELULAR PEQUENO
Até 380px
==================================================*/

@media (max-width:380px){

    .detalhe-animal{

        padding:0 12px;

    }

    .detalhe-animal-header{

        gap:15px;

    }

    .detalhe-animal-titulo h1{

        font-size:1.7rem;

        line-height:1.15;

    }

    .detalhe-animal-data{

        font-size:.82rem;

    }

    .detalhe-animal-share{

        gap:8px;

    }

    .detalhe-animal-share a{

        width:36px;

        height:36px;

    }

    .detalhe-animal-share svg{

        width:18px;

        height:18px;

    }

    .detalhe-animal-foto-box{

        border-radius:15px;

    }

    .detalhe-animal-foto-box img{

        height:330px;

    }

    .detalhe-animal-btn-adotar{

        font-size:.92rem;

        padding:14px;

    }

    .detalhe-animal-btn-adotar i{

        font-size:1rem;

    }

    .detalhe-animal-subtitulo{

        font-size:1.35rem;

    }

    .detalhe-animal-ficha-card{

        padding:18px;

    }

    .detalhe-animal-ficha-card strong{

        font-size:1.1rem;

    }

    .detalhe-animal-temperamento{

        padding:18px;

    }

    .detalhe-animal-temperamento h3{

        font-size:1.15rem;

    }

    .detalhe-animal-temperamento p{

        font-size:.95rem;

    }

    .detalhe-animal-descricao{

        padding:20px;

    }

    .detalhe-animal-descricao h2{

        font-size:1.35rem;

    }

    .detalhe-animal-descricao p{

        font-size:.95rem;

        line-height:1.8;

    }

    .detalhe-modal-box{

        padding:28px 20px;

    }

    .detalhe-modal-icon{

        width:70px;

        height:70px;

    }

    .detalhe-modal-icon i{

        font-size:1.8rem;

    }

    .detalhe-modal-whatsapp{

        width:100%;

        font-size:1rem;

        padding:15px;

    }

    .detalhe-aviso{

        margin:40px 0;

    }

    .detalhe-aviso-card{

        padding:25px 20px;

        border-radius:18px;

    }

    .detalhe-aviso-icon{

        width:70px;

        height:70px;

    }

    .detalhe-aviso-icon i{

        font-size:2rem;

    }

    .detalhe-aviso-content h2{

        font-size:1.4rem;

    }

    .detalhe-aviso-content p{

        font-size:.92rem;

        margin-bottom:20px;

    }

    .detalhe-aviso-btn{

        width:100%;

        justify-content:center;

        padding:15px;

        font-size:.95rem;

    }

}