/*
Theme Name: Acordei Assim
Theme URI: https://acordeiassim.com.br
Author: Alice Teixeira
Description: Tema customizado de alta performance.
Version: 1.0
*/

:root {
    /* NOVA PALETA DE CORES */
    --roxo-base: #D58DFD;     
    --roxo-medio: #E8B8FE;    
    --roxo-pastel: #F8E6FF;   
    --texto: #4A4A4A;
    --branco: #FFFFFF;
    --transicao: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--texto); background: var(--branco); line-height: 1.6; overflow-x: hidden; }

/* HEADER & LOGO */
.main-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 8%; background: var(--roxo-base); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(213, 141, 253, 0.3); }
.logo { font-family: 'Playfair Display', serif; font-size: 28px; color: #9800CF; text-decoration: none; font-weight: 700; }
nav a, nav li a { display: inline-block; text-decoration: none; color: var(--branco); margin-left: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: opacity 0.3s; }
nav a:hover, nav li a:hover { opacity: 0.8; }
nav li { list-style: none; display: inline-block; }

/* BOTÃO MENU MOBILE (Oculto no Desktop) */
.mobile-menu-btn {display: none; background: none; border: none; color: var(--branco); font-size: 24px; cursor: pointer; transition: var(--transicao);}

/* --- BARRA DE BUSCA NO HEADER --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2); /* Fundo branco translúcido */
    border-radius: 30px;
    padding: 2px 5px 2px 15px;
    transition: var(--transicao);
    border: 1px solid transparent;
}

.header-search:focus-within {
    background: var(--branco);
    border-color: var(--roxo-medio);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-field {
    background: transparent;
    border: none;
    outline: none;
    color: var(--branco);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    width: 140px;
    transition: width 0.3s;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search:focus-within .search-field {
    color: var(--texto); /* Muda a cor do texto quando clica para digitar */
    width: 180px; /* Aumenta a barra suavemente */
}

.header-search:focus-within .search-field::placeholder {
    color: #aaa;
}

.search-submit {
    background: transparent;
    border: none;
    color: var(--branco);
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    transition: var(--transicao);
}

.header-search:focus-within .search-submit {
    color: var(--roxo-base);
}

/* QUEM ELA É */
.about { padding: 80px 8%; display: flex; align-items: center; gap: 60px; background: linear-gradient(135deg, var(--roxo-pastel) 0%, #fff 100%); }
.about-img img { width: 320px; border-radius: 160px 160px 20px 20px; border: 10px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.about-text h1 { font-family: 'Playfair Display', serif; font-size: 42px; margin-bottom: 20px; color: var(--roxo-base); }
.about-text p { font-size: 16px; color: #666; margin-bottom: 15px; }

/* REDES SOCIAIS */
.social-bar { display: flex; justify-content: center; gap: 20px; padding: 30px 8%; background: #fff; flex-wrap: wrap; }
.social-chip { display: flex; align-items: center; gap: 10px; padding: 12px 25px; background: var(--branco); border: 1.5px solid var(--roxo-medio); border-radius: 50px; text-decoration: none; color: var(--roxo-base); font-weight: 600; transition: var(--transicao); }
.social-chip:hover { transform: translateY(-3px); background: var(--roxo-base); color: #fff; box-shadow: 0 10px 20px rgba(213, 141, 253, 0.2); }

/* CATEGORIAS & CARDS */
.category-section { padding: 40px 8% 20px; position: relative; }
.category-title { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--texto); margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.category-title::after { content: ''; flex: 1; height: 1px; background: var(--roxo-pastel); }

.slider-wrapper { position: relative; display: flex; align-items: center; }
.posts-slider { display: flex; gap: 25px; overflow-x: hidden; scroll-behavior: smooth; padding: 10px 5px; width: 100%; }

.post-card { flex: 0 0 300px; background: #fff; border-radius: 15px; overflow: hidden; border: 1px solid #f0f0f0; text-decoration: none; color: inherit; transition: var(--transicao); position: relative; }
.post-card:hover { transform: translateY(-5px); border-color: var(--roxo-medio); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.post-thumb { width: 100%; height: 180px; background-size: cover; background-position: center; position: relative; }

/* OVERLAY DE PLAY */
.play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.post-card:hover .play-overlay { opacity: 1; background: rgba(213, 141, 253, 0.4); }
.play-overlay i { color: #fff; font-size: 40px; transform: scale(0.8); transition: 0.3s; }
.post-card:hover .play-overlay i { transform: scale(1); }

.post-content { padding: 20px; }
.post-content h4 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 10px; line-height: 1.4; color: #333; }
.post-meta { display: flex; justify-content: space-between; font-size: 11px; color: #aaa; padding-top: 15px; border-top: 1px solid #f9f9f9; }
.post-meta i { color: var(--roxo-base); }

/* BOTÕES DE NAVEGAÇÃO */
.nav-btn { position: absolute; width: 40px; height: 40px; background: #fff; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 10; color: var(--roxo-base); transition: 0.3s; }
.nav-btn:hover { background: var(--roxo-base); color: #fff; }
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* VITRINE */
.shop { background: var(--roxo-pastel); padding: 60px 0; border-radius: 40px; margin: 40px 5%; position: relative; }
.carousel-container { display: flex; gap: 20px; overflow-x: hidden; scroll-behavior: smooth; padding: 20px 8%; }
.item-card { flex: 0 0 200px; background: #fff; padding: 25px 15px; border-radius: 20px; text-align: center; transition: var(--transicao); border: 1px solid transparent; }
.item-card:hover { transform: translateY(-5px); border-color: var(--roxo-base); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.item-card img { width: 50px; margin-bottom: 12px; }
.item-card span { font-weight: 600; font-size: 12px; display: block; height: 36px; overflow: hidden; color: #555; }
.btn-buy { display: inline-block; margin-top: 12px; padding: 7px 15px; background: var(--roxo-base); color: #fff; border-radius: 50px; text-decoration: none; font-size: 10px; font-weight: 600; transition: var(--transicao); }
.btn-buy:hover { background: #b86be0; }

/* FOOTER & FORMS */
.footer-cta { padding: 60px 8%; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; background: #fff; border-top: 1px solid #f5f5f5; }
.cta-box h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 15px; color: var(--roxo-base); }
.input-base { width: 100%; padding: 12px 20px; border-radius: 30px; border: 1px solid #eee; font-family: 'Montserrat'; outline: none; margin-bottom: 15px; font-size: 14px; display: block; transition: 0.3s; }
.input-base:focus { border-color: var(--roxo-medio); }

/* Forçar a herança da fonte em todos os elementos de input */
input, button, textarea, select {font-family: 'Montserrat', sans-serif !important;}

.btn-cta {background: var(--roxo-base); color: var(--branco); border: none; padding: 12px 30px; border-radius: 30px; font-weight: 600; font-family: 'Montserrat', sans-serif; cursor: pointer; width: 100%; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;}
.btn-cta:hover { background: #b86be0; }
textarea.input-base { height: 100px; border-radius: 15px; resize: none; }

footer { text-align: center; padding: 30px; color: #bbb; font-size: 11px; }

/* LAYOUT DO SINGLE POST (Página Interna) */
.single-container { max-width: 800px; margin: 40px auto; padding: 0 5%; }
.breadcrumb { font-size: 12px; color: #aaa; margin-bottom: 20px; }
.breadcrumb a { color: var(--roxo-base); text-decoration: none; font-weight: 600; }
.post-header { text-align: center; margin-bottom: 40px; }
.post-category { display: inline-block; background: var(--roxo-pastel); color: var(--roxo-base); padding: 5px 15px; border-radius: 50px; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; }
.post-header h1 { font-family: 'Playfair Display', serif; font-size: 36px; color: #333; line-height: 1.3; margin-bottom: 20px; }
.post-meta-top { font-size: 13px; color: #888; display: flex; justify-content: center; gap: 20px; align-items: center; flex-wrap: wrap; }
.post-meta-top img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.featured-image { width: 100%; height: auto; border-radius: 20px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.post-body { font-size: 17px; color: #444; }
.post-body p { margin-bottom: 25px; }
.post-body h2, .post-body h3 { font-family: 'Playfair Display', serif; color: var(--roxo-base); margin: 40px 0 20px; }
.post-body h2 { font-size: 28px; }
.post-body blockquote { font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic; border-left: 4px solid var(--roxo-base); padding-left: 20px; margin: 40px 0; color: #666; background: var(--roxo-pastel); padding: 20px; border-radius: 0 15px 15px 0; }
.post-body img { width: 100%; border-radius: 15px; margin: 30px 0; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; margin: 40px 0; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.author-box { display: flex; align-items: center; gap: 25px; background: #fff; border: 1px solid var(--roxo-medio); padding: 30px; border-radius: 20px; margin: 60px 0; box-shadow: 0 10px 20px rgba(213,141,253,0.1); }
.author-box img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--roxo-pastel); }
.author-info h4 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--roxo-base); margin-bottom: 5px; }
.author-info p { font-size: 14px; color: #666; margin-bottom: 0; line-height: 1.5; }
.share-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; padding-top: 20px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--roxo-pastel); color: var(--roxo-base); text-decoration: none; transition: var(--transicao); }
.share-btn:hover { background: var(--roxo-base); color: #fff; transform: translateY(-3px); }

/* ADSENSE GLOBAL */
.ads-container { max-width: 90%; margin: 30px auto; padding: 20px; background: #f9f9f9; border: 1px dashed #ccc; text-align: center; color: #999; font-size: 11px; border-radius: 15px; }

/* RESPONSIVIDADE E MENU MOBILE */
@media (max-width: 768px) { 
    .about { flex-direction: column; text-align: center; }
    .blog-grid, .footer-cta { grid-template-columns: 1fr; gap: 40px; }
    .nav-btn { display: none; }
    .carousel-container, .posts-slider { overflow-x: auto; padding: 20px 8%; }
    .post-header h1 { font-size: 26px; } 
    .author-box { flex-direction: column; text-align: center; }
    .post-meta-top { flex-direction: column; gap: 10px; }
    .header-search { display: none; }

    /* Lógica do Menu Hamburguer */
    .mobile-menu-btn {
        display: block; /* Mostra o botão no celular */
    }

    .main-header nav.main-nav {
        position: absolute;
        top: 100%; /* Fica exatamente abaixo do header */
        left: 0;
        width: 100%;
        background: var(--roxo-base);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(213, 141, 253, 0.2);
        
        /* Animação de esconder/mostrar */
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
        z-index: -1; 
    }

    /* Classe ativada pelo JavaScript */
    .main-header nav.main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 999;
    }

    /* Formatação dos links no formato lista para clique fácil (Touch) */
    .main-header nav.main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-header nav.main-nav li {
        display: block;
        width: 100%;
        text-align: center;
    }

    .main-header nav.main-nav li a {
        display: block;
        padding: 15px 0;
        font-size: 14px; /* Maior para facilitar o toque no celular */
        margin: 0;
    }
}