/*
Theme Name: Colorir Exclusivo
Theme URI: https://www.jogosdecolorir.com.br/
Author: Jogos de Colorir
Description: Tema exclusivo, leve e otimizado para sites de desenhos para colorir.
Version: 2.0
*/

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

/* Estilos básicos */
body {
  font-family: 'Comic Neue', cursive;
  background: #f0f8ff;
  color: #333;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: #2c3e50;
  font-weight: 700;
}

a {
  color: #2980b9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Estilo base para todas imagens */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img:not(.logo-fixo) {
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 auto;
}

/* Garante que não haja espaço sobrando na imagem do grid */
.post-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: block;
}

.logo-fixo {
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  display: block;
  max-height: 60px;
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 20px 10px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Cabeçalho */
.site-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #fff;
  border-bottom: 2px solid #eee;
}

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

.search-form input[type="search"] {
  padding: 8px 16px;
  border: 2px solid #ccc;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 16px;
}

.search-form button {
  padding: 8px 16px;
  border: 2px solid #ccc;
  border-left: none;
  background-color: #3498db;
  color: white;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.search-form button:hover {
  background-color: #2980b9;
}

/* Retângulo que envolve todo conteúdo */
.retangulo-conteudo {
  background: #fef9f1;	 /* fundo branco puro */
  border: 2px solid #dceaf9;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  margin-top: 30px;
}


.retangulo-conteudo h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Grade de posts */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px 0;
}

.post-item {
  width: 210px;
  height: 210px;
  background: #f9f9f9; /* fundo sutil nas imagens */
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  transition: box-shadow 0.3s, transform 0.3s;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.post-item h2 {
  font-size: 15px;
  color: #e74c3c;
  line-height: 1.3;
  margin: 8px 0 0;
  word-break: break-word;
}

/* Botão imprimir */
.button-print {
  background: #f39c12;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s;
}

.button-print:hover {
  background: #e67e22;
}

/* Selo em alta */
.badge-em-alta {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Responsivo */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }
  .button-print {
    width: 100%;
    padding: 14px;
  }
  .site-header {
    flex-direction: column;
    gap: 10px;
  }
}

/* Categorias em home ou lista */
.category-section-title {
  font-size: 24px;
  color: #2c3e50;
  margin: 30px 0 10px;
  text-align: center;
  font-weight: bold;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.category-card {
  text-align: center;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 140px;
  object-fit: cover;
}

.category-card span {
  margin-top: 8px;
  font-weight: bold;
  color: #e74c3c;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

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

/* Impressão apenas da imagem destacada com marca d'água */
@media print {
  body {
    margin: 0;
    padding: 0;
    background: #fff;
    text-align: center;
  }

  body * {
    visibility: hidden !important;
  }

  #print-area,
  #print-area * {
    visibility: visible !important;
  }

  #print-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 2cm;
    text-align: center;
    background: none !important;
  }

  .only-print-image {
    display: block;
    max-width: 100%;
    height: auto;
    border: none !important;
    box-shadow: none !important;
    margin: 0 auto;
  }

  .watermark-print-only {
    display: block !important;
    font-size: 14px;
    color: #000;
    margin-top: 10px;
    font-family: Arial, sans-serif;
  }

  header,
  .post-description,
  .button-print,
  .site-header,
  .container,
  .footer,
  .search-form,
  .category-card,
  .post-grid {
    display: none !important;
  }
}

h1 {
  margin-bottom: 20px;
  text-align: center;
}

/* Breadcrumb Yoast */
#breadcrumbs {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  text-align: left;
}

.category-description {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  margin-bottom: 40px;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .category-description {
    padding: 25px 20px;
    font-size: 16px;
    line-height: 1.7;
  }
}



.category-description h2 {
  font-size: 20px;
  margin-top: 25px;
  color: #2c3e50;
}

.category-images {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.category-images .post-item {
  width: 160px;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.category-images .post-item:hover {
  transform: scale(1.03);
}

.category-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

