/*
 Theme Name:   GeneratePress Child Clean Blog
 Theme URI:    https://example.com/
 Description:  Tema filho moderno, leve, responsivo e otimizado para GeneratePress
 Author:       Davi & ChatGPT
 Author URI:   https://example.com/
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child-clean-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ===== BASE ===== */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #fcfcfc;
    color: #111;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.inside-header {
    padding: 10px 40px;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}
.hero h1 {
    font-size: 2.5rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto;
}
.hero .button {
    background: linear-gradient(135deg, #22D3EE, #8B5CF6, #F472B6, #F59E0B);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}
.hero .button:hover {
    filter: brightness(0.95);
}

/* ===== POST CARDS ===== */
.post-card {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
.post-card .category {
    background: linear-gradient(135deg, #22D3EE, #8B5CF6, #F472B6, #F59E0B);
    color: #fff;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.post-card h2 {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}
a.read-more {
  display: inline-block;
  background: linear-gradient(135deg, #22D3EE, #8B5CF6, #F472B6, #F59E0B);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  border: none;
  transition: filter 0.2s ease;
}

a.read-more:hover {
  filter: brightness(0.95);
  color: #ffffff;
}

/* ===== ENTRY META (CATEGORIA E COMENTÁRIOS) ===== */
.entry-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.entry-meta .cat-links,
.entry-meta .comments-link {
    margin: 0;
}
body .entry-meta .cat-links a,
body .entry-meta .comments-link a {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #333 !important;
    background-color: #f0f0f0 !important;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
    cursor: pointer;
}
body .entry-meta .cat-links a:hover,
body .entry-meta .comments-link a:hover {
    background-color: #e5e5e5 !important;
    color: #333 !important;
    box-shadow: none;
    filter: none;
}

.entry-meta .gp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    margin: 0;
}
.entry-meta svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.entry-meta .gp-icon.icon-categories,
.entry-meta .gp-icon.icon-comments {
    display: none !important;
}

/* ===== FEATURED IMAGE ===== */
.entry-featured-image,
.inside-article .post-image,
.wp-block-post-featured-image,
.inside-article .featured-image {
    position: relative;
    display: block;
    overflow: hidden;
}
.entry-featured-image img,
.inside-article .post-image img,
.wp-block-post-featured-image img,
.inside-article .featured-image img {
    display: block;
    width: 100%;
    height: auto;
}
.entry-featured-image::after,
.inside-article .post-image::after,
.wp-block-post-featured-image::after,
.inside-article .featured-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg,
        rgba(34, 211, 238, 0.4),
        rgba(139, 92, 246, 0.4),
        rgba(244, 114, 182, 0.4),
        rgba(245, 158, 11, 0.4)
    );
    pointer-events: none;
    z-index: 2;
}
.entry-featured-image::before,
.inside-article .post-image::before,
.wp-block-post-featured-image::before,
.inside-article .featured-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://deepgrowthlab.com/wp-content/uploads/2025/06/noise-texture-dgl.png');
    background-repeat: repeat;
    background-size: 64px 64px;
    opacity: 0.15;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* ===== FORMULÁRIOS ===== */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #111;
}
button,
input[type="submit"] {
    background: linear-gradient(135deg, #22D3EE, #8B5CF6, #F472B6, #F59E0B);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
button:hover,
input[type="submit"]:hover {
    filter: brightness(0.95);
}

/* ===== GRID RESPONSIVO ===== */
@media (min-width: 768px) {
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== LINKS GERAIS ===== */
a {
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sidebar a:hover,
.widget a:hover,
.widget-area a:hover,
.entry-content a:hover,
.author-name a:hover,
.entry-meta a:hover
{
    background-color: rgba(30, 64, 175, 0.1);
    /* sem underline */
}

a:hover {
    color: #1e40af;
}


@media (max-width: 768px) {
  .menu-toggle,
  .menu-toggle:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 10px;
    border-radius: 6px;
    background-color: #fff; /* ou transparente, se preferir */
    color: #000; /* ícone padrão */
  }

  .menu-toggle svg {
    fill: #000 !important;
  }
}

/* -- ajuste da caixa de comentários para aparecer sob demanda  */

/* por padrão, o form fica escondido */
.comment-respond {
  display: none;
}

/* ao adicionar a classe, mostramos tudo */
#comments.comments-visible .comment-respond {
  display: block !important;
  /*margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);*/
}

/* campos e botões do comentário */
#comments.comments-visible .comment-respond input,
#comments.comments-visible .comment-respond textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

#comments.comments-visible .comment-respond input[type="submit"] {
  background-color: #2563eb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
#comments.comments-visible .comment-respond input[type="submit"]:hover {
  background-color: #1d4ed8;
}

/* estilo do botão */
.show-comments-btn {
  display: inline-block;
  margin-top: 2rem;
  background-color: #2563eb;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  border: none;
}
.show-comments-btn:hover {
  background-color: #1d4ed8;
}
