/* =========================================================
   PÁGINA DE ARTIGOS
   Reaproveita header, nav, .container, .botao e cores de style.css
========================================================= */

.artigos-hero{

    padding-top:100px;

    padding-bottom:40px;

    text-align:justify;

}

.artigos-hero h1{

    font-family:'Allura',cursive;

    font-size:clamp(48px,6vw,72px);

    font-weight:normal;

    color:#0B3552;

}

.artigos-hero p{

    max-width:600px;

    margin:16px auto 0;

    font-size:clamp(16px,2vw,19px);

    line-height:1.7;

}

.artigos-main{

    padding-bottom:100px;

}

.artigos-container{

    display:flex;

    align-items:flex-start;

    gap:36px;

    height:72vh;

    min-height:520px;

}

/* ===== LISTA (esquerda) ===== */

.artigos-lista{

    flex:0 0 38%;

    max-width:460px;

    height:100%;

    overflow-y:auto;

    display:flex;

    flex-direction:column;

    gap:20px;

    padding-right:10px;

}

.artigos-lista::-webkit-scrollbar{

    width:6px;

}

.artigos-lista::-webkit-scrollbar-thumb{

    background:#c9d6e0;

    border-radius:10px;

}

.artigo-card{

    display:flex;

    gap:16px;

    background:white;

    border-radius:20px;

    padding:16px;

    box-shadow:0 12px 30px rgba(11,53,82,.07);

    cursor:pointer;

    text-align:left;

    border:2px solid transparent;

    transition:.3s;

    font:inherit;

    color:inherit;

    width:100%;

}

.artigo-card:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 36px rgba(11,53,82,.12);

}

.artigo-card.selecionado{

    border-color:#0B3552;

}

.artigo-card img{

    width:96px;

    height:96px;

    border-radius:14px;

    object-fit:cover;

    flex-shrink:0;

}

.artigo-card-info h3{

    font-size:18px;

    font-weight:600;

    margin-bottom:6px;

    line-height:1.3;

}

.artigo-meta{

    font-size:13px;

    opacity:.65;

    margin-bottom:8px;

}

.artigo-resumo{

    font-size:14px;

    line-height:1.6;

    opacity:.85;

}

/* ===== PAINEL DE DETALHE (direita no desktop) ===== */

.artigo-detalhe{

    position:relative;

    flex:1;

    height:100%;

    border-radius:28px;

    overflow:hidden;

    background-image:

    linear-gradient(rgba(246,239,230,.88),rgba(246,239,230,.88)),

    url("../assets/papel-aquarela.jpg");

    background-size:cover;

    background-position:center;

    box-shadow:0 20px 50px rgba(11,53,82,.1);

}

.artigo-detalhe-placeholder{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:40px;

    font-size:18px;

    opacity:.55;

}

.artigo-detalhe-conteudo{

    position:absolute;

    inset:0;

    overflow-y:auto;

    padding:56px 56px 50px;

    transform:scale(.05);

    opacity:0;

    pointer-events:none;

    transition:transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;

}

.artigo-detalhe-conteudo.aberto{

    transform:scale(1);

    opacity:1;

    pointer-events:auto;

}

.artigo-fechar{

    position:absolute;

    top:22px;

    right:22px;

    width:42px;

    height:42px;

    border-radius:50%;

    border:0;

    background:white;

    color:#0B3552;

    font-size:24px;

    line-height:1;

    cursor:pointer;

    box-shadow:0 8px 20px rgba(11,53,82,.15);

    transition:.3s;

    z-index:2;

}

.artigo-fechar:hover{

    background:#0B3552;

    color:white;

    transform:rotate(90deg);

}

.artigo-detalhe-conteudo img{

    width:100%;

    max-height:260px;

    object-fit:cover;

    border-radius:20px;

    margin-bottom:28px;

}

.artigo-detalhe-conteudo h2{

    font-size:clamp(26px,3vw,34px);

    font-weight:600;

    margin-bottom:10px;

    max-width:640px;

}

.artigo-detalhe-conteudo .artigo-meta{

    font-size:14px;

    margin-bottom:22px;

}

.artigo-detalhe-conteudo .artigo-texto{

    font-size:18px;

    line-height:1.9;

    max-width:640px;

}

/* =========================================================
   TABLET
========================================================= */

@media(max-width:1024px){

    .artigos-lista{

        flex-basis:44%;

    }

    .artigo-detalhe-conteudo{

        padding:44px 40px;

    }

}

/* =========================================================
   MOBILE — lista ocupa a largura toda,
   detalhe vira overlay em tela cheia
========================================================= */

@media(max-width:900px){

    .artigos-hero{

        padding-top:120px;

    }

    .artigos-container{

        flex-direction:column;

        height:auto;

        gap:16px;

    }

    .artigos-lista{

        flex-basis:auto;

        max-width:none;

        width:100%;

        height:auto;

        overflow-y:visible;

        padding-right:0;

    }

    .artigo-detalhe{

        position:fixed;

        inset:0;

        z-index:1200;

        border-radius:0;

        display:none;

    }

    .artigo-detalhe.aberto-mobile{

        display:block;

    }

    .artigo-detalhe-placeholder{

        display:none;

    }

    .artigo-detalhe-conteudo{

        padding:90px 24px 50px;

        border-radius:0;

    }

    .artigo-fechar{

        top:20px;

        right:20px;

    }

    .artigo-detalhe-conteudo .artigo-texto,
    .artigo-detalhe-conteudo h2{

        max-width:none;

    }

}

@media(max-width:480px){

    .artigo-card img{

        width:76px;

        height:76px;

    }

    .artigo-card-info h3{

        font-size:16px;

    }

    .artigo-detalhe-conteudo{

        padding:80px 18px 40px;

    }

}
