/*
Theme Name: 4kxxx.vip
Theme URI: https://4kxxx.vip/
Author: Custom Theme Generator
Author URI: https://4kxxx.vip/
Description: Dark forum-style WordPress theme, SEO ready, tooltip thumbnails follow mouse, pagination, responsive sidebar, modern menu and search.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 4kxxx.vip
*/

/* Body & Base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #eee;
}

a {
    color: #e91e63;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Header */
header.site-header {
    background: #1e1e1e;
    padding: 1rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title a {
    color: #e91e63;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-search-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menu */
.main-nav ul {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li a {
    color: #e91e63;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: #ffffff;
    background: #ff4081;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    height: 38px;
    padding: 0 12px;
    border: 2px solid #e91e63;
    border-radius: 20px 0 0 20px;
    background: #1c1c1c;
    color: #eee;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: #ff4081;
    background: #2a2a2a;
}

.search-button {
    height: 38px;
    padding: 0 12px;
    border: 2px solid #e91e63;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background: #e91e63;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #ff4081;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    padding: 1rem;
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    aside {
        order: 2;
    }
    main {
        order: 1;
    }
}

/* Article Cards */
.article-card {
    background: #1c1c1c;
    padding: 1rem;
    border-bottom: 1px solid #333;
    position: relative;
}

.article-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

/* Tooltip */
.thumb-tooltip {
    display: none;
    position: absolute;
    z-index: 9999;
    background: #000;
    border: 1px solid #333;
    padding: 4px;
    pointer-events: none;
    top: 0;
    left: 0;
    transform: translateY(-100%);
}

.thumb-tooltip img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Meta info */
.meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

/* Imagem destacada no single */
.single-featured img {
    display: block;
    height: auto;
    margin: 0 auto 1rem auto;
    border-radius: 5px;
    width: 100%; /* padrão mobile: ocupa toda a largura */
}

/* Em telas maiores que 768px (desktop), limita a 50% */
@media (min-width: 769px) {
    .single-featured img {
        width: 50%;
    }
}


/* Sidebar */
aside {
    min-width: 300px;
}

/* Pagination */
.pagination {
    margin: 1rem 0;
    text-align: center;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 5px 10px;
    background: #1e1e1e;
    color: #eee;
    border-radius: 4px;
}

.pagination a:hover {
    background: #e91e63;
    color: #fff;
}

/* Footer */
footer {
    background: #1e1e1e;
    padding: 1rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-search-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}


.magnet-download-btn {
  display: inline-block;       /* não ocupa toda a largura do container pai */
  max-width: 100%;             /* nunca ultrapassa o conteúdo do post */
  width: 100%;                 /* dentro do container do post */
  background: #e91e63;
  color: #fff !important;
  padding: 15px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
  box-sizing: border-box;      /* garante que padding não quebre layout */
  margin: 10px 0;              /* espaçamento em cima/baixo */
}

.magnet-download-btn:hover {
  background: #c2185b; /* tom mais escuro no hover */
  color: #fff !important;
}


.related-posts {
    margin-top: 2rem;
}

.related-posts h3 {
    margin-bottom: 1rem;
    color: #e91e63;
}

.related-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-item {
    position: relative;
    display: block;
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    overflow: hidden;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
}

.related-thumb {
    position: relative;
}

.related-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.related-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 0.5rem 0.8rem 0.5rem; /* margem inferior maior */
    text-align: center;
    font-size: 0.9rem;
    box-sizing: border-box;
}


.related-title-only {
    background: #1c1c1c;
    padding: 0.5rem;
    text-align: center;
    border-radius: 5px;
}

.related-item:hover .related-title {
    background: rgba(233,30,99,0.8);
}

@media (max-width: 768px) {
    .related-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .related-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* Layout sem sidebar */
.layout {
    display: block;
    padding: 1rem;
}

main {
    width: 100%;
}



@media (max-width: 768px) {
    .main-nav {
        display: none; /* Esconde o menu inicialmente */
        width: 100%;
    }

    .main-nav.active {
        display: block; /* Mostra quando ativo */
    }
}


/* Estilo da listagem tipo fórum */
.post-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

/* Thumbnail */
.post-thumb img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

/* Infos */
.post-info {
    flex: 1;
}

.post-title {
    margin: 0;
}

.post-title a {
    color: #e91e63;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
}

.post-title a:hover {
    color: #fff;
}

.post-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.3rem;
}



/* ===== Mobile: force post thumbnail to full width ===== */
@media (max-width: 768px) {
  /* make the item stack and stretch */
  .post-list-item {
    display: flex;
    flex-direction: column; /* imagem em cima, infos abaixo */
    align-items: stretch;   /* garante que o filho ocupe toda a largura */
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
  }

  /* make the thumbnail container full width */
  .post-thumb {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block;
  }

  /* ensure the image itself fills its parent */
  .post-thumb img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;      /* mantém proporção e cobre o espaço */
    border-radius: 8px;
    margin: 0 0 0.5rem 0;
  }

  /* post-info ocupa 100% abaixo da imagem */
  .post-info {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* opcional: aumentar texto do título no mobile */
  .post-title a {
    font-size: 1.15rem;
  }
}


.post-meta .views {
    color: #e91e63;
    font-weight: bold;
}




/* ========================
   Estilo padrão (desktop)
   ======================== */
.logo-link {
    display: block;        
    text-align: center;    
    width: fit-content;    
    margin: 0 auto;        
}

.meu-logo {
    display: block;        
    max-width: 178px;      
    height: auto;          
}

/* ========================
   Estilo para dispositivos móveis
   ======================== */
@media (max-width: 768px) {
    .logo-link {
        width: 100%;        
    }

    .meu-logo {
        width: 100%;        
        max-width: none;    
        height: auto;       
        margin-bottom: 10px; /* margem abaixo da logo */
    }
}



.footer-full-widget {
    width: 100%;
    margin: 1rem 0;
    text-align: center;
}

.footer-widget-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}




h1 {
    font-size: 25px !important;
    line-height: 1.3em; /* opcional: melhora a leitura */
    margin: 0.5em 0;    /* opcional: espaçamento vertical */
}






/* Carrossel Top Viewed */
.top-viewed-carousel {
    margin-top: 2rem;
    padding: 1rem 0;
}

.top-viewed-carousel h3 {
    margin-bottom: 1rem;
    color: #e91e63;
    text-align: center;
}

/* Slide container */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Card */
.carousel-item {
    position: relative;
    width: 100%;
    max-width: 280px;
    overflow: hidden;
    border-radius: 5px;
    background: #1c1c1c;
    text-decoration: none;
    color: #fff;
}

/* Thumbnail */
.carousel-thumb {
    position: relative;
}

.carousel-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Título sobreposto na imagem */
.carousel-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* Força o link do título a ficar branco sempre */
.carousel-title a {
    color: #fff !important;
    text-decoration: none;
    display: block;
}

.carousel-title a:hover {
    color: #fff !important;
}


/* Metadados abaixo */
.carousel-meta {
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    color: #ccc;
}

/* Responsivo */
@media (max-width: 768px) {
    .carousel-item {
        max-width: 100%;
    }
    .carousel-title {
        font-size: 1rem;
    }
}

/* Botões de navegação do Swiper */
.swiper-button-next,
.swiper-button-prev {
    width: auto;   /* deixa o tamanho automático */
    height: auto;
}

/* Ícones das setas (pseudo-elemento) */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;  /* ajuste para metade do tamanho padrão */
    color: #e91e63 !important;
}

/* Opcional: reduzir a área clicável */
.swiper-button-next,
.swiper-button-prev {
    padding: 5px; /* diminui área do botão */
}






