/* ========================= RESET ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

body {
    background: #ffffff;
    color: #111;
    transition: .3s;
}

/* ========================= HEADER ========================= */
/* ========================= HEADER TRANSPARENTE ========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter 0.4s ease, background 0.4s ease;
    z-index: 999;
    /* efeito vidro permanente */
    background: #2a2a2a ;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* borda de vidro ultra fina */
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

}

/* HEADER ESCURECIDO APÓS HERO */
.header.scrolled-light {
    background:#2a2a2a;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}



.logo {
    font-family: 'Playfair Display', ;
    font-size: 35px;    
    color: #ffffff !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}

.menu-icon {
    position: absolute;
    left: 25px;
    font-size: 25px;
    cursor: pointer;
    color: #ffffff !important;
    display: none;
}

/* ========================= DARK TOGGLE ========================= */
.dark-toggle {
    position: absolute;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.sun,
.moon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    position: relative;
}

.sun::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid white;
    border-radius: 50%;
    opacity: .6;
}

.moon::after {
    content: "";
    position: absolute;
    left: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #959595;
}

.switch {
    width: 42px;
    height: 20px;
    background: #959595;
    border-radius: 20px;
    position: relative;
    transition: .3s;
}

.ball {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: .3s;
}

body.dark .switch {
    background: #777;
}

body.dark .ball {
    transform: translateX(22px);
}

/* ========================= HERO ========================= */
.hero {
    width: 100%;
    height: 100vh;
    background-image: url("img/hero-tulipas.png");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0) 80%);
}

.hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    padding-left: 40px;
    color: white;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 35px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.6;
    opacity: .9;
}

/* ========================= PUBLICIDADE ========================= */
.ad-hero {
    width: 100%;
    background: #f5f5f5;
    padding: 40px 20px;
}

body.dark .ad-hero {
    background: #1a1a1a;
}

.ad-container {
    max-width: 1200px;
    margin: 60px auto;
    /* AJUSTE PROFISSIONAL */
}

.ad-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .6;
    display: block;
    margin-bottom: 10px;
}

.ad-box {
    width: 100%;
    height: 120px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    border-radius: 6px;
}

body.dark .ad-box {
    background: #2a2a2a;
    color: #aaa;
}

/* ========================= ARTIGO (AJUSTE REVISTA PROFISSIONAL) ========================= */
.intro-text {
    padding: 80px 20px;
}

/* largura editorial profissional */
.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ritmo de leitura */
.article-container p {
    font-size: 1.15rem;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #333;
}

/* LEAD JORNALÍSTICO */
.lead {
    font-size: 1.35rem;
    line-height: 1.9;
    margin-bottom: 40px;
}

/* H2 estilo revista */
.article-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 60px;
    margin-bottom: 18px;
}

/* H3 apoio narrativo */
.article-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 14px;
    opacity: .9;
}

/* ========================= META DO ARTIGO ========================= */
.article-meta {
    font-size: 12px;
    opacity: .65;
    margin-bottom: 35px;
    letter-spacing: .3px;
}

.article-meta .separator {
    margin: 0 6px;
}

body.dark .article-meta {
    color: #aaa;
}

/* conclusão editorial */
.conclusion {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    margin-top: 60px;
    font-style: italic;
}

/* leitura relacionada */
.related {
    margin-top: 70px;
}

.related ul {
    list-style: none;
}

.related li {
    margin-bottom: 10px;
}

.related a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

.related a:hover {
    text-decoration: underline;
}

body.dark {
    background: #111;
    color: #eee;
}

body.dark .article-container p,
body.dark .related a {
    color: #ddd;
}

/* ========================= MENU OVERLAY ========================= */
.menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0b0b0b;
    color: white;
    transition: .4s;
    overflow: auto;
    z-index: 1000;
}

.menu-overlay.active {
    left: 0;
}

.menu-container {
    padding: 80px 40px;
}

.search {
    width: 100%;
    padding: 15px;
    margin-bottom: 40px;
    background: #111;
    border: 1px solid #444;
    color: white;
}

.menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.menu-columns h3 {
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.menu-columns ul {
    list-style: none;
}

.menu-columns li {
    margin: 8px 0;
    cursor: pointer;
    opacity: .8;
}

.menu-columns li:hover {
    opacity: 1;
}

.close-menu {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 25px;
    cursor: pointer;
}

/* ========================= FOOTER ========================= */
.footer {
    background: #0b0b0b;
    color: #aaa;
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
}

.footer-text {
    max-width: 800px;
    margin: 0 auto 25px;
    font-size: 13px;
    line-height: 1.7;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.copyright {
    font-size: 12px;
    opacity: .6;
}


/* ========================= REFERÊNCIAS ========================= */

.references {
    margin-top: 80px;
    border-top: 1px solid #ddd;
    padding-top: 40px;
    font-size: 14px;
}

.references h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.references ul {
    padding-left: 18px;
}

.references li {
    margin-bottom: 10px;
    line-height: 1.6;
}

body.dark .references {
    border-color: #333;
}

/* ========================= AUTHOR BIO ========================= */

.author-bio {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 25px;
}

.author-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.instagram-link img {
    width: 22px;
    opacity: .7;
    transition: .3s;
}

.instagram-link img:hover {
    opacity: 1;
    transform: scale(1.1);
}

body.dark .author-bio {
    border-color: #333;
}

/* ========================= RESPONSIVO ========================= */
@media(max-width:768px) {
    .logo {
        font-size: 20px;
        flex:1;
    text-align:left;}

    .hero {
        height: 90vh;
    }

    .hero-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    }

    .hero-content {
        width: 100%;
        padding: 0 25px;
        text-align: center;
    }

    .article-container {
        max-width: 1200px;
        margin: auto;
        padding: 1px 1px;
    }

    .article-content {
        font-size: 6px;
        line-height: 1.7;
        max-width: 72ch;
    }

    .menu-icon {
        display: block;
        font-size: 25px;
        cursor: pointer;
        color: #ffffff !important;
    }

    .header{
    justify-content: space-between;
}

.author-bio {
    flex-direction: column;
    text-align: center;
}

    
}