/*
Theme Name: AliensSheeps - 0401
Author: Matheus Arcanjo
Description: Tema com menu responsivo deslizante e grid de posts moderno.
Version: 1.3
*/

*{
  margin: 0;
  padding: 0;
}
body{
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}/* 1. O container externo: invisível, mas ocupa o topo da tela */
.header {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: none !important;      /* Remove sombra do container largo */
    pointer-events: none;             /* Permite clicar nos posts atrás do espaço vazio */
}

/* 2. O menu real: centralizado e com 80% */
.menu_header {
    pointer-events: auto;             /* Devolve o clique para o menu */
    width: 80% !important;
    max-width: 1200px;
    margin: 5px auto;                /* Centraliza horizontalmente e dá margem no topo */
    position: relative;               /* Não precisa de fixed aqui, o pai já é fixed */
    
    /* Estilos Visuais */
   /* box-shadow: 0 4px 15px rgba(0,0,0,0.15);*/
    display: block; 
    overflow: hidden;
}

/* 3. Ajuste do Body para o conteúdo não ficar escondido */
/* 1. O container externo: invisível, mas ocupa o topo da tela */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 130px;
    box-shadow: none !important;      /* Remove sombra do container largo */
    pointer-events: none;  
}

/* 2. O menu real: centralizado e com 80% */
.menu_header {
    pointer-events: auto;             /* Devolve o clique para o menu */
    width: 80% !important;
    max-width: 1200px;
    margin: 20px auto;                /* Centraliza horizontalmente e dá margem no topo */
    position: relative;               /* Não precisa de fixed aqui, o pai já é fixed */
    padding-top: 50px;
    /* Estilos Visuais */
    display: block; 
}

/* 3. Ajuste do Body para o conteúdo não ficar escondido */
body {
    padding-top: 120px !important;
}
nav ul{
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}
nav a:hover{
  background-color: none;
}


nav li:first-child{
  margin-right: auto;
}



nav ul li:not(:first-child) a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
}

/* Garante que a logo (primeiro item) nunca tenha sublinhado */
nav li:first-child a:hover {
  text-decoration: none;
}
.sidebar{
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
}
.sidebar li{
  width: 100%;
}
.sidebar a{
  width: 100%;
}
.menu-button{
  display: none;
}
@media(max-width: 800px){
  .hideOnMobile{
    display: none;
  }
  .menu-button{
    display: block;
  }
}
@media(max-width: 400px){
  .sidebar{
    width: 100%;
  }

  .menu-button{
    display: NONE;
  }
}

@media(min-width: 801px) {
  .sidebar {
    display: none !important; /* Força o fechamento ao expandir a tela */
  }
}

/* Estilo para o campo de busca no menu desktop */
.menu-search {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.menu-search input[type="search"] {
    padding: 5px 15px;
    border: 1px solid; /* A cor agora vem do PHP */
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
    background-color: transparent;
}

.menu-search input[type="search"]::placeholder {
    color: rgba(0, 0, 0, 1); /* Cor do texto "Buscar..." */
}

.menu-search input[type="search"]:focus {
    background-color: rgba(0, 0, 0, 0.1); /* Escurece um pouco mais ao clicar */
    border-color: rgba(0, 0, 0, 1);
    width: 180px;
}

/* Ajuste para a Sidebar (Mobile) */
.sidebar .menu-search {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar .menu-search input[type="search"] {
    width: 80%; /* Ocupa quase toda a largura da sidebar */
}

@media(max-width: 800px) {
  nav > ul > .menu-search {
    display: none;
  }
}

/* Garante que ele continue aparecendo dentro da sidebar */
.sidebar .menu-search {
  display: flex !important;
}


/* Container do Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-grid {
    display: grid;
    /* Cria 3 colunas no PC, e ajusta sozinho no mobile */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* O Card (estilo JujubaCast) */
.post-card {
    background: none; /* Card branco para contrastar com o fundo do site */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px); /* Efeito de levante */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.post-card a {
    text-decoration: none;
    color: #333; /* Cor do texto dentro do card */
}

/* Imagens do Grid */
.post-thumbnail {
    border-radius: 15px; /* Arredonda todos os cantos do container */
    overflow: hidden;    /* MÁGICA: Corta a imagem para obedecer o arredondamento do pai */
    line-height: 0;      /* Remove espaços fantasmas embaixo da imagem */
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px; /* Aplica na imagem também por segurança */
}

/* Texto do Card */
.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-excerpt p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}


/* Paginação */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Estilo dos Números e Botões */
/* No style.css, deixe assim: */
.pagination-wrapper a, 
.pagination-wrapper span {
    padding: 10px 18px;
    background: none; 
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.pagination-wrapper .current {
    background: none;
     background-color: transparent;
    /* Remova a cor fixa daqui, pois agora ela vem do header.php */
}

.pagination-wrapper a:hover {
    transform: translateY(-3px);
}


.pagination-wrapper {
    background-color: transparent;
}

.pagination-wrapper .nav-links a,
.pagination-wrapper .nav-links span {
    background-color: transparent;
}
.container {
    background-color: transparent;
}

.nav .navigation .pagination {
     background-color: none  !important;
}


/* Ajustes para a página do post */
/* Ajustes para a página do post */
.single-post-container {
    max-width: 850px; 
    margin: 40px auto !important; /* O 'auto' nas laterais é o que centraliza */
    padding: 40px;
    border-radius: 30px; /* Bordas mais suaves combinam com transparência */
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
    display: block; 
}

/* Ajuste para garantir que a imagem não quebre o arredondamento */
.post-featured-image {
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
}

.entry-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    max-width: 788px; 
    height: auto;
    border-radius: 15px 15px;
    margin-bottom: 30px;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Navegação entre posts */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-navigation a {
    text-decoration: none;
    font-weight: bold;
    color: inherit; /* Vai herdar a cor do seu tema */
}


/* Container Geral de Comentários */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.comments-title, .comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Lista de Comentários */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: rgba(255, 255, 255, 0.5); /* Efeito translúcido que você curtiu */
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.comment-body:hover {
    transform: translateX(5px);
}

/* Avatar */
.comment-author img {
    border-radius: 50%; /* Redondo como no exemplo */
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Texto do Comentário */
.comment-meta {
    margin-bottom: 10px;
}

.comment-author b {
    font-size: 1.1rem;
    color: #333;
}

.comment-metadata a {
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
}

.comment-content p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}

/* Formulário de Resposta */
#commentform {
    display: grid;
    gap: 15px;
    background: rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 20px;
}

#commentform textarea, #commentform input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
}

.submit-button {
    cursor: pointer;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    justify-self: start;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: 25px;
}

/* Comentário */
.comment-body {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 15px;
}

/* Avatar */
.comment-avatar img {
    border-radius: 50%;
}

/* Conteúdo */
.comment-content-wrapper {
    flex: 1;
}

/* Respostas (indentação REAL) */
.comment-list .children {
    margin-left: 60px;
    margin-top: 20px;
}

/* Botão responder */
.comment-actions a {
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
}

/* ===== Comentários: Responder (threaded) ===== */
/* Quando o formulário for movido para dentro do comentário, dá um respiro e mantém alinhado */
.comment-list li #respond {
    margin-top: 15px;
}

/* Mantém o formulário alinhado com o nível de resposta (mesma indentação das children) */
.comment-list .children #respond {
    margin-left: 60px;
}

/* Botão/Link "Responder" */
.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    background: rgba(0,0,0,0.05);
    padding: 6px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.comment-reply-link:hover {
    background: rgba(0,0,0,0.1);
    transform: translateY(-2px);
}


footer {
    color: #ffffff;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info h3 {
    margin: 0;
    font-size: 22px;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-copy {
    font-size: 14px;
    opacity: 0.7;
}