/* =========================================
   1. RESET E GERAIS
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* =========================================
   1. RESET E GERAIS
   ========================================= */
body { 
    background-color: #fff; 
    font-family: 'Roboto', sans-serif; 
    /* Removemos o padding-top de 140px daqui, volta ao normal */
}

a { text-decoration: none; }

/* =========================================
   2. CABEÇALHO (HEADER)
   ========================================= */
.secao-header {
    width: 100%;
    background: #fff;
    /* Espaço para o site não entrar atrás da barra */
    padding-top: 70px !important; 
    margin-top: 0 !important;
}

.container-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   A PÍLULA FLUTUANTE (Forçada)
   ========================================= */
.barra-superior-vermelha {
    position: fixed !important;
    top: 0 !important; 
    left: 50% !important;
    transform: translateX(-50%) !important; 
    
    width: calc(100% - 40px) !important; 
    max-width: 1240px !important;
    
    /* z-index ajustado! Fica na frente do site, mas atrás do menu lateral quando ele abre */
    z-index: 999 !important; 
    
    background-color: #ecd6a8;
    height: 60px;
    border-radius: 22px !important; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Ícones e Logo */
.menu-icon i { font-size: 20px; cursor: pointer; }

.logo-header {
    position: absolute;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    padding-bottom: 4px;
    white-space: nowrap;
    cursor: pointer;
}

.logo-header a {
    cursor: pointer;
}

.grupo-icones {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
}

.social-icons, .action-icons { display: flex; gap: 15px; }

.barra-superior-vermelha a {
    color: #fff;
    font-size: 16px;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}
.barra-superior-vermelha a:hover { opacity: 0.8; }

.divisor-icones { width: 1px; height: 20px; background-color: rgba(255,255,255,0.4); }

/* Menu Inferior */
.menu-inferior-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 25px 0;
}

.menu-inferior-links a {
    color: #ecd6a8;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.menu-inferior-links a:hover { color: #d1b476; }

/* =========================================
   3. BANNER CARROSSEL
   ========================================= */
.banner-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    border-radius: 18px;
}

.carousel-viewport { width: 100%; overflow: hidden; }
.carousel-track { display: flex; width: 100%; }

.banner-slide { min-width: 100%; flex-shrink: 0; line-height: 0; }
.img-banner-carousel { width: 100%; height: 464px; object-fit: cover; display: block; }

/* Setas do Banner */
.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 100;
    transform: translateY(-50%);
    background-color: transparent;
    color: #ecd6a8;
    border: none;
    font-size: 24px;
    font-weight: bold;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.2) !important; }
.btn-prev { left: 0; }
.btn-next { right: 0; }

/* Paginação (Dots) */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}
.dot {
    width: 12px; height: 12px;
    background: #ecd6a8;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active { background: #f0d69d; }
.dot:hover { background: rgba(0, 0, 0, 0.8); }

/* =========================================
   4. SEÇÃO LANÇAMENTOS (CORREÇÃO DE TAMANHO)
   ========================================= */

.secao-lancamentos {
    background-color: #fff;
    padding: 60px 0;
    width: 100%;
}

.container-lancamentos {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
}

.titulo-lancamentos {
    font-family: 'Barlow Condensed', sans-serif;
    color: #ecd6a8;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: left;
    text-transform: lowercase;
}

/* O TRILHO (A Pista) */
.trilho-lancamentos {
    display: flex;
    gap: 20px;               /* Espaço entre os livros */
    overflow-x: auto;        /* Permite rolar para o lado */
    padding: 20px 5px;
    scroll-behavior: smooth;
    
    /* SEGURANÇA TOTAL: Impede que os itens quebrem linha ou encolham */
    flex-wrap: nowrap;       
    
    scroll-snap-type: x mandatory; /* Efeito imã */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.trilho-lancamentos::-webkit-scrollbar { display: none; }


/* O CARD (Onde estava o erro) */
.card-livro {
    /* Define o tamanho base para 5 livros */
    flex: 0 0 calc((100% - 80px) / 5);
    width: calc((100% - 80px) / 5);
    
    /* A LINHA SALVADORA: Obriga o card a ter pelo menos 220px */
    /* Isso impede o texto de ficar vertical e a capa de ficar pequena */
    min-width: 220px; 
    
    display: flex;
    flex-direction: column;
    position: relative;
    scroll-snap-align: start; /* Alinha à esquerda */
}

/* A CAPA (Imagem Grande) */
.capa-livro {
    width: 100%;             /* Ocupa toda a largura do card (que agora é grande) */
    aspect-ratio: 2 / 3;     /* Formato de livro alto */
    object-fit: cover;
    border-radius: 0.9px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
}

/* =========================================
   ALINHAMENTO DE TEXTOS E BOTÃO "VEJA MAIS"
   ========================================= */

/* 1. O INNER DO CARD (Garante que todos tenham a mesma altura) */
.card-livro-inner {
    display: flex;
    flex-direction: column;
    height: 100%; /* Força a ocupar a altura toda do trilho */
    width: 100%;
}

/* 2. INFOS DO LIVRO (Ocupa o espaço restante) */
.infos-livro {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Estica para empurrar o fundo */
}

/* 3. TÍTULO E AUTOR */
.titulo-livro {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    line-height: 1.1;
    color: #d1b476;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 5px;
    white-space: normal;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.autor-livro {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

/* 4. ÁREA DE PREÇO (O Segredo do Alinhamento) */
.preco-area {
    margin-top: auto; /* EMPURRA TUDO ISSO AQUI PARA O FUNDO */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px; /* Espaço entre o preço e o botão */
    flex-wrap: wrap;
}

.preco {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

.tag-prevenda {
    background-color: #e0ded9;
    color: #333;
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
}

/* 5. BOTÃO VEJA MAIS (Estilo Intrínseca) */
.btn-veja-mais {
    background-color: #ecd6a8;
    color: #fff;
    border: none;
    width: 100%;
    padding: 10px 0;
    
    /* AQUI ESTÁ O FORMATO DE PÍLULA: */
    border-radius: 15px; 
    
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px; /* Fonte um pouco maior para preencher o botão */
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.btn-veja-mais:hover { 
    background-color: #d1b476; 
}

.btn-veja-mais:active {
    transform: scale(0.98); /* Efeito sutil de clique */
}

/* RESPONSIVO (Reduz número de livros, mas mantém tamanho GRANDE) */
@media (max-width: 1200px) {
    .card-livro { 
        flex: 0 0 calc((100% - 60px) / 4); /* 4 livros */
        min-width: 200px; 
    }
}
@media (max-width: 900px) {
    .card-livro { 
        flex: 0 0 calc((100% - 40px) / 3); /* 3 livros */
        min-width: 180px; 
    }
}
@media (max-width: 600px) {
    .card-livro { 
        flex: 0 0 calc((100% - 20px) / 2); /* 2 livros grandes no celular */
        min-width: 160px;
    }
}

/* =========================================
   ESTILO DAS SETAS DE NAVEGAÇÃO
   ========================================= */

/* 1. O ENVOLTÓRIO (Importante: segura as setas no lugar) */
.wrapper-carrossel {
    position: relative; /* As setas usam isso como referência */
    width: 100%;
    display: flex;
    align-items: center;
}

/* 2. A SETA (Botão Base) */
/* 2. A SETA (Botão Base) */
.seta-carrossel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    font-size: 40px; 
    
    /* A COR PADRÃO AGORA É O VERMELHO FORTE (ATIVO) */
    color: #d1b476; 
    
    width: 50px;
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* 3. HOVER (Só funciona se não estiver desativada) */
.seta-carrossel:hover:not(.desativada) {
    color: #e2b95f; /* Vermelho mais escuro no clique */
    transform: translateY(-50%) scale(1.2); 
}

/* 4. ESTADO DESATIVADO (Fim da linha) */
.seta-carrossel.desativada {
    color: #ffc2c5; /* Vermelho bem clarinho idêntico à Intrínseca */
    cursor: default;
    pointer-events: none; /* Desativa o clique pelo mouse */
    transform: translateY(-50%); /* Remove o efeito de crescimento */
}

/* 3. HOVER (Quando passa o mouse) */
.seta-carrossel:hover {
    color: #d1b476; /* Vermelho forte Fllumen */
    transform: translateY(-50%) scale(1.2); /* Cresce um pouquinho */
}

/* 4. POSIÇÃO ESQUERDA E DIREITA */
.seta-carrossel.esquerda {
    left: -45px; /* Joga para fora do trilho à esquerda */
}

.seta-carrossel.direita {
    right: -45px; /* Joga para fora do trilho à direita */
}

/* =========================================
   AJUSTE MOBILE (Para celular)
   ========================================= */
@media (max-width: 768px) {
    /* No celular, a seta não pode ficar fora da tela */
    .seta-carrossel.esquerda { left: 0; }
    .seta-carrossel.direita { right: 0; }
    
    /* Adiciona um fundinho branco semi-transparente para dar leitura em cima da capa */
    .seta-carrossel {
        background: rgba(255,255,255,0.7);
        width: 40px;
        height: 40px;
        border-radius: 50%; /* Bolinha */
        font-size: 24px;
        color: #e30613;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}

/* =========================================
   5. MODAL DINÂMICO
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    display: flex; width: 100%; max-width: 950px; height: 600px;
    background: #e30613;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
}

.modal-left {
    flex: 1;
    background-color: #f2efe9;
    display: flex; justify-content: center; align-items: center;
    padding: 40px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    z-index: 2;
}

.modal-capa-grande {
    max-height: 90%; max-width: 90%;
    width: auto; object-fit: contain;
    box-shadow: 10px 15px 30px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.modal-right {
    flex: 1.2;
    color: #d1b476;
    padding: 50px;
    display: flex; flex-direction: column; justify-content: center;
}

#modalTitulo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem; line-height: 0.9;
    font-weight: 800; text-transform: uppercase;
    margin-bottom: 10px;
}

#modalAutor { font-size: 1.2rem; margin-bottom: 20px; opacity: 0.9; }
#modalPreco { font-size: 3rem; font-weight: 700; margin-bottom: 20px; }

.tags-container { display: flex; gap: 10px; margin-bottom: 20px; }
.tag-modal {
    background: #ecd6a8; color: #fff;
    padding: 5px 15px; border-radius: 20px;
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
}

.desc-texto {
    font-size: 1rem; 
    line-height: 1.5;
    margin-bottom: 30px; 
    opacity: 0.95;
    
    /* A MÁGICA PARA NÃO ROLAR E FICAR ELEGANTE: */
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Número máximo de linhas antes de cortar com "..." */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-btn-comprar {
    background: #ecd6a8; color: #e30613;
    border: none; padding: 15px;
    border-radius: 22px;
    font-weight: 900; font-size: 1.2rem;
    width: 100%; cursor: pointer;
    text-transform: uppercase; transition: transform 0.2s;
    margin-top: auto;
}
.modal-btn-comprar:hover { transform: scale(1.02); }

.close-btn {
    position: absolute; top: 20px; right: 30px;
    font-size: 2rem; color: #fff;
    cursor: pointer; z-index: 10;
    transition: transform 0.2s;
}
.close-btn:hover { transform: rotate(90deg); }

/* =========================================
   6. SEÇÃO BLOG
   ========================================= */
.secao-blog {
    background-color: #f2efe9;
    padding: 60px 20px 80px 20px;
}
.container-blog { max-width: 1200px; margin: 0 auto; }

.titulo-blog {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px; color: #ecd6a8;
    text-align: left; margin-bottom: 40px;
    font-weight: 700;
}

.grade-blog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; margin-bottom: 60px;
}

.img-blog-wrapper {
    width: 100%; aspect-ratio: 1/1;
    border-radius: 15px; overflow: hidden;
    margin-bottom: 15px;
}
.img-blog { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.img-blog-wrapper:hover .img-blog { transform: scale(1.05); }

/* =========================================
   A PÍLULA DE ASSUNTO NO BLOG DA HOME
   ========================================= */
.tags-blog { 
    margin-top: 15px;
    margin-bottom: 12px; 
    display: flex; 
}

.tags-blog a {
    background-color: #f4ede6; /* O fundo bege Fllumen */
    color: #555; /* Texto cinza escuro */
    padding: 4px 14px; /* Gordinho nas laterais */
    border-radius: 15px; /* Bordas 100% redondas (A Pílula) */
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease; /* Transição suave */
}

/* O efeitinho de pulo e cor ao passar o mouse */
.tags-blog a:hover { 
    color: #e30613; /* Fica vermelho */
    transform: translateY(-3px); /* Dá o pulinho pra cima */
}

.titulo-post {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; line-height: 1.2;
    color: #ecd6a8; font-weight: 700;
    margin-bottom: 10px; display: block;
    text-decoration: none; transition: color 0.3s ease;
}
.titulo-post:hover { color: #666666; }
.resumo-post { font-size: 14px; color: #555; line-height: 1.4; }

/* Mais Lidas */
.container-mais-lidas {
    display: flex; border: 1px solid #ccc;
    border-radius: 15px; overflow: hidden;
    background-color: transparent;
}
.etiqueta-vertical {
    background-color: #e6e2db; width: 60px;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid #ccc;
}
.etiqueta-vertical span {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 18px;
    color: #000; letter-spacing: 2px; text-transform: uppercase;
}
.lista-mais-lidas { flex: 1; display: flex; padding: 20px; gap: 20px; }
.item-mais-lidas {
    flex: 1; display: flex; gap: 15px; align-items: center;
    border-right: 1px solid #e0e0e0; padding-right: 20px;
}
.item-mais-lidas:last-child { border-right: none; }
.img-mais-lidas { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.texto-mais-lidas a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px; line-height: 1.2;
    color: #ecd6a8; font-weight: 600;
    text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================
   7. NEWSLETTER
   ========================================= */
.secao-newsletter {
    background-color: #fff; padding: 50px 20px;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.container-newsletter {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.titulo-newsletter {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px; color: #ecd6a8;
    font-weight: 700; margin: 0; white-space: nowrap;
}
.form-newsletter { display: flex; flex: 1; gap: 15px; flex-wrap: wrap; justify-content: flex-end; }
.campo-newsletter { flex: 1; min-width: 220px; }

.input-pilula {
    width: 100%; padding: 12px 25px;
    border: 2px solid #ccc; border-radius: 50px;
    font-family: 'Roboto', sans-serif; font-size: 16px;
    outline: none; transition: all 0.3s ease; background-color: #f9f9f9;
}
.input-pilula:focus { border-color: #e30613; background-color: #fff; }
.btn-pilula {
    background-color: #ecd6a8; color: #fff; border: none;
    padding: 14px 51px; border-radius: 22px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; font-weight: 700;
    cursor: pointer; transition: background-color 0.3s ease; white-space: nowrap;
}
.btn-pilula:hover { background-color: #d1b476; }

/* =========================================
   8. RODAPÉ (FOOTER)
   ========================================= */
.secao-rodape {
    background-color: #ecd6a8; color: #fff;
    padding: 60px 20px 30px 20px;
}
.container-rodape {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 40px; padding-bottom: 40px;
}
.rodape-esquerda { display: flex; align-items: center; gap: 10px; }
.logo-rodape { height: 250px; object-fit: contain; }
.nav-rodape { display: flex; gap: 60px; }
.coluna-links { display: flex; flex-direction: column; gap: 6px; }
.coluna-links a {
    color: #fff; font-size: 16px; font-weight: 500; transition: opacity 0.3s;
}
.coluna-links a:hover { opacity: 0.8; }

.rodape-direita { display: flex; align-items: center; gap: 20px; }
.social-icons-rodape { display: flex; gap: 15px; }
.social-icons-rodape a {
    color: #fff; font-size: 18px;
    transition: transform 0.3s;
}
.social-icons-rodape a:hover { transform: translateY(-3px); }
.separador-vertical { width: 1px; height: 40px; background-color: #fff; opacity: 0.5; }

.selo-acessivel { display: flex; align-items: center; gap: 10px; }
.selo-acessivel i { font-size: 28px; }
.selo-acessivel span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; line-height: 1.1; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
}

.endereco-rodape {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px; text-align: center;
}
.endereco-rodape p { font-size: 12px; opacity: 0.8; margin: 0; }

/* =========================================
   9. DROPDOWN E SIDEBAR
   ========================================= */
.usuario-container { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 10px; }
.icone-user-link i { color: inherit; font-size: 20px; }

.dropdown-login {
    position: absolute; top: 100%; right: 0;
    margin-top: 15px; width: 220px;
    background-color: #fff; padding: 20px;
    border-top: 4px solid #f1c40f; 
    border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center; z-index: 9999;
    opacity: 0; visibility: hidden; transition: all 0.2s ease;
}
.usuario-container:hover .dropdown-login { opacity: 1; visibility: visible; margin-top: 12px; }

.setinha-dropdown {
    position: absolute; top: -8px; right: 10px;
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #f1c40f; 
}

.btn-entrar-dropdown {
    background-color: #e30613; color: #fff;
    border: none; width: 100%; padding: 10px 0;
    font-weight: 800; border-radius: 25px; cursor: pointer;
    font-size: 14px; margin-bottom: 10px; text-transform: uppercase;
    transition: background 0.2s;
}
.btn-entrar-dropdown:hover { background-color: #b30000; }

.texto-cadastro {
    font-size: 13px; color: #333; line-height: 1.5;
    text-align: left; padding-left: 5px; margin-top: 8px;
}
.texto-cadastro a { color: inherit; font-weight: normal; text-decoration: none; display: block; }
.texto-cadastro a:hover { text-decoration: underline; }

/* Sidebar */
.sidebar-fllumen {
    position: fixed; top: 0; left: -320px;
    width: 300px; height: 100vh;
    background-color: #f2ede8;
    z-index: 999990 !important;
    padding-top: 70px !important;
    transition: 0.4s ease-in-out;
    display: flex; flex-direction: column;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}
.sidebar-fllumen.open { left: 0; }
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: none; z-index: 999980 !important;
}

/* Sidebar Links */
.link-red { color: #e30613 !important; font-family: 'Barlow Condensed', sans-serif; }
.link-home { color: #888; font-family: 'Barlow Condensed', sans-serif; }
.sidebar-divider { border: 0; border-top: 1px solid #dcd6d0; margin: 20px 0; }
.btn-quero { background-color: #e30613; color: #fff; border: none; border-radius: 20px; padding: 10px; cursor: pointer; font-weight: bold; }

/* =========================================
   10. MEDIA QUERIES (RESPONSIVO GERAL)
   ========================================= */
@media (max-width: 1050px) {
    .social-icons, .divisor-icones { display: none; }
}

@media (max-width: 900px) {
    .menu-inferior-links { gap: 20px; font-size: 16px; }
    .logo-header { font-size: 28px; }
    
    .modal-content { flex-direction: column; height: auto; max-height: 90vh; overflow-y: auto; }
    .modal-left { width: 100%; height: 300px; border-radius: 0; }
    .modal-right { width: 100%; padding: 30px; }
    #modalTitulo { font-size: 2.5rem; }
    
    .grade-blog { grid-template-columns: repeat(2, 1fr); }
    .container-mais-lidas { flex-direction: column; }
    .etiqueta-vertical { width: 100%; height: 40px; border-right: none; border-bottom: 1px solid #ccc; }
    .etiqueta-vertical span { writing-mode: horizontal-tb; transform: rotate(0); }
    .lista-mais-lidas { flex-direction: column; }
    .item-mais-lidas { border-right: none; border-bottom: 1px solid #e0e0e0; padding-bottom: 15px; }
    
    .container-rodape { flex-direction: column; align-items: flex-start; }
    .rodape-esquerda { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nav-rodape { flex-direction: column; gap: 20px; }
    .rodape-direita { width: 100%; justify-content: space-between; margin-top: 20px; }
}

@media (max-width: 600px) {
    .grade-blog { grid-template-columns: 1fr; }
}

/* =========================================
   7. NEWSLETTER (ESTILO REVISADO)
   ========================================= */
.secao-newsletter {
    background-color: #fff; 
    padding: 60px 20px;
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee;
}

.container-newsletter {
    max-width: 1200px; 
    margin: 0 auto;
    display: flex; 
    align-items: center;
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 30px; /* Aumentei o espaço entre o título e os campos */
}

.titulo-newsletter {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px; 
    color: #e30613;
    font-weight: 800; /* Mais grosso para dar impacto */
    margin: 0; 
    white-space: nowrap;
    text-transform: uppercase;
}

.form-newsletter { 
    display: flex; 
    flex: 1; 
    gap: 15px; 
    flex-wrap: wrap; 
    justify-content: flex-end; 
}

.campo-newsletter { 
    flex: 1; 
    min-width: 250px; 
}

/* O Estilo da Pílula (Input) */
.input-pilula {
    width: 100%; 
    padding: 14px 25px;
    border: 2px solid #e0ded9; /* Cinza clarinho da Fllumen */
    border-radius: 50px;
    font-family: 'Roboto', sans-serif; 
    font-size: 16px;
    outline: none; 
    transition: all 0.3s ease; 
    background-color: #fcfcfc;
}

.input-pilula:focus { 
    border-color: #e30613; 
    background-color: #fff; 
    box-shadow: 0 0 8px rgba(227, 6, 19, 0.1);
}

/* O Botão QUERO! */
.btn-pilula {
    background-color: #e30613; 
    color: #fff; 
    border: none;
    padding: 14px 60px; 
    border-radius: 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; 
    font-weight: 800;
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-pilula:hover { 
    background-color: #000; /* Fica preto no hover, estilo bem moderno */
    transform: translateY(-2px);
}

/* =========================================
   ESTILO DA MENSAGEM DE SUCESSO (O que faltava!)
   ========================================= */
.msg-sucesso-news {
    width: 100%;
    text-align: center; /* Centraliza a frase */
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #e30613;
    padding: 20px 0;
    letter-spacing: 1px;
    animation: fadeIn 0.5s ease forwards; /* Efeitinho de aparecer suave */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste para celular */
@media (max-width: 768px) {
    .container-newsletter {
        flex-direction: column;
        text-align: center;
    }
    .form-newsletter {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   ESTILOS DO DROPDOWN (ESTADO LOGADO)
   ========================================= */
.nome-usuario-dropdown {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linha-dropdown {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0;
}

.link-dropdown-logado {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
    font-family: 'Roboto', sans-serif;
}

.link-dropdown-logado:hover {
    color: #e30613; /* Vermelho Fllumen no hover */
}

/* =========================================
   ESTILOS DA BARRA DE BUSCA (Fllumen Style)
   ========================================= */
.barra-busca-suspensa {
    width: 100%;
    max-height: 0; /* Começa fechada */
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    position: relative;
    z-index: 98;
}

/* Quando clicamos na lupa, ela ganha esta classe */
.barra-busca-suspensa.ativa {
    max-height: 85px; 
}

.conteudo-busca-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
}

.input-busca-pill {
    background-color: #f4eee8; /* Bege da imagem */
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
}

.input-busca-pill input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

#btnExecutarBusca {
    background-color: #e30613;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#btnExecutarBusca:hover { background-color: #b00000; }

/* =========================================
   BUSCA FLUTUANTE - BOTÃO SEPARADO (FLLUMEN)
   ========================================= */
.container-header {
    position: relative; 
}

.barra-superior-vermelha {
    position: relative;
    z-index: 100;
}

/* A Gaveta Vermelha Mestra */
.barra-busca-dropdown {
    position: absolute !important;
    top: 100% !important; 
    margin-top: -25px !important; /* Puxa para cima para morder a barra */
    right: 5% !important;
    width: 100% !important;
    max-width: 1020px !important;
    background-color: #e30613 !important; 
    padding: 10px 15px !important; 
    border-radius: 22px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important; 
    z-index: 99 !important; 
    
    /* Animação */
    transform: translateY(-30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.barra-busca-dropdown.ativa {
    transform: translateY(0); 
    opacity: 1;
    visibility: visible;
}

/* O Container que separa a pílula do botão */
.linha-busca-elementos {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important; /* Distância entre o campo bege e o botão */
}

/* A Pílula Bege (Só com o texto) */
.input-busca-pill {
    flex: 1 !important; 
    background-color: #f4eee8 !important; 
    border-radius: 17px !important; 
    padding: 0 20px !important; 
    display: flex !important;
    align-items: center !important;
    height: 45px !important; /* Altura fixa para alinhar com o botão */
    max-width: 870px;
    margin: 0 !important;
}

.input-busca-pill input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 15px !important;
    color: #333 !important;
}

.input-busca-pill input::placeholder {
    color: #888 !important;
}

/* O Botão BUSCAR (Separado) */
#btnExecutarBusca {
    background-color: #9e0009 !important; /* Vermelho vinho */
    color: white !important;
    border: 2px solid #ffffff !important; /* Borda branca elegante */
    padding: 0 30px !important;
    border-radius: 50px !important; 
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    height: 45px !important; /* Mesma altura do campo bege */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important; 
}

#btnExecutarBusca:hover {
    background-color: #ffffff !important; 
    color: #e30613 !important; 
}

/* =========================================
   11. GERENCIADOR DE POSTS (ADMIN BLOG)
   ========================================= */
.item-post-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d5d9d9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Destaque visual para os posts que já estão fixados */
.item-post-admin.fixado {
    border-left: 5px solid #28a745;
    background: #f8fff9;
}

.info-post-admin {
    display: flex;
    align-items: center;
    gap: 15px;
}

.img-admin-miniatura {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.acoes-admin-post {
    display: flex;
    gap: 8px;
}

/* Estilo base de todos os botõezinhos */
.btn-acao-mover, .btn-acao-fixar, .btn-acao-desfixar {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-acao-mover {
    background: #f1f1f1;
    color: #333;
}

.btn-acao-mover:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-acao-mover:hover:not(:disabled) {
    background: #e2e2e2;
}

.btn-acao-fixar {
    background: #e30613;
    color: #fff;
}

.btn-acao-fixar:hover {
    background: #c20510;
}

.btn-acao-desfixar {
    background: #666;
    color: #fff;
}

.btn-acao-desfixar:hover {
    background: #444;
}

/* Responsivo para celular */
@media (max-width: 768px) {
    .item-post-admin {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .acoes-admin-post {
        width: 100%;
        justify-content: flex-end;
    }
}

/* O menu fica escondido fora da tela */
.sidebar-fllumen {
    position: fixed;
    top: 0;
    left: -300px; /* Escondido na esquerda */
    width: 250px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 9999;
}

/* Quando o JS adiciona a classe .active, ele entra na tela */
.sidebar-fllumen.active {
    left: 0; 
}

/* Película escura escondida */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

/* Película escura aparece */
.sidebar-overlay.active {
    display: block;
}

/* =========================================
   MENU LATERAL (BARRINHAS) - ESTILO FLLUMEN
   ========================================= */

/* Fundo escuro atrás do menu */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
    display: block;
}

/* Caixa principal do Menu */
.sidebar-fllumen {
    position: fixed;
    top: 0;
    left: -350px; /* Fica escondido fora da tela */
    width: 300px;
    height: 100vh;
    background-color: #eee9e0; /* Cor creme da Fllumen */
    z-index: 10000;
    transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    padding: 25px 35px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.2);
    border-radius: 0 25px 25px 0; /* Arredonda só a direita */
    overflow-y: auto;
    font-family: 'Barlow Condensed', sans-serif;
}

/* Quando o JS ativa, o menu desliza pra tela */
.sidebar-fllumen.active {
    left: 0;
}

/* Botão Fechar (X) */
.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.btn-close-menu {
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}
.btn-close-menu:hover {
    transform: scale(1.1);
}

/* Links do Menu */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os links */
}
.sidebar-nav a {
    text-decoration: none;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.sidebar-nav a:hover {
    opacity: 0.7;
}
.link-home { color: #666 !important; }
.link-red { color: #e30613 !important; }

/* Linhas divisórias finas */
.sidebar-divider {
    border: 0;
    border-top: 1px solid #dcd4c9; /* Linha sutil */
    margin: 25px 0;
}

/* Redes Sociais */
.sidebar-social {
    display: flex;
    justify-content: space-between; /* Espalha igualmente */
    padding: 0 10px;
}
.sidebar-social a {
    color: #e30613;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}
.sidebar-social a:hover {
    transform: translateY(-3px);
}

/* =========================================
   FORMULÁRIO DE NEWSLETTER (DENTRO DO MENU)
   ========================================= */
.sidebar-newsletter h3 {
    color: #e30613;
    font-size: 20px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.sidebar-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-newsletter input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #a8a8a8; /* Apenas linha embaixo */
    padding: 5px 0 8px 0;
    font-family: 'Roboto', sans-serif; /* Fonte mais limpa para textos digitados */
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.sidebar-newsletter input::placeholder {
    color: #777;
}

.sidebar-newsletter input:focus {
    border-bottom-color: #e30613; /* Linha fica vermelha ao digitar */
}

.sidebar-newsletter button {
    background: #e30613;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50px; /* Formato de pílula */
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
}

.sidebar-newsletter button:hover {
    background: #c2000d;
    transform: scale(1.02);
}  