/*
Theme Name: Pequenos com Propósito
Theme URI: https://pequenoscomproposito.com
Author: Seu Nome
Author URI: https://pequenoscomproposito.com
Description: Tema WordPress personalizado para Pequenos com Propósito - Kit de Atividades Cristãs para Crianças
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pequenoscomproposito
*/

/* ===========================
   IMPORTAÇÃO DE FONTES
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ===========================
   VARIÁVEIS CSS
   =========================== */
:root {
  /* Cores Primárias */
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  
  /* Cores Secundárias */
  --secondary: 197 71% 73%;
  --secondary-foreground: 0 0% 0%;
  
  /* Cores de Fundo */
  --background: 36 39% 88%;
  --foreground: 0 0% 0%;
  
  /* Cores de Cartão */
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  
  /* Cores Muted */
  --muted: 36 39% 80%;
  --muted-foreground: 0 0% 40%;
  
  /* Cores de Destaque */
  --accent: 43 74% 66%;
  --accent-foreground: 0 0% 0%;
  
  /* Cores de Sucesso */
  --success: 142 71% 45%;
  --success-foreground: 0 0% 100%;
  
  /* Bordas e Inputs */
  --border: 0 0% 89%;
  --input: 0 0% 89%;
  --ring: 262 83% 58%;
  
  /* Raio de Borda */
  --radius: 1rem;
}

.dark {
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  --secondary: 197 71% 73%;
  --secondary-foreground: 0 0% 0%;
  --background: 0 0% 10%;
  --foreground: 0 0% 100%;
  --card: 0 0% 15%;
  --card-foreground: 0 0% 100%;
  --muted: 0 0% 20%;
  --muted-foreground: 0 0% 70%;
  --accent: 43 74% 66%;
  --accent-foreground: 0 0% 0%;
  --border: 0 0% 25%;
  --input: 0 0% 25%;
  --ring: 262 83% 58%;
}

/* ===========================
   RESET E BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: hsl(var(--accent));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   CONTAINER E LAYOUT
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background-color: hsl(var(--card));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.site-footer {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

/* ===========================
   BOTÕES
   =========================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-accent {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* ===========================
   CARDS
   =========================== */
.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===========================
   SEÇÕES
   =========================== */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: hsl(var(--foreground));
}

/* ===========================
   GRID E FLEXBOX
   =========================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* ===========================
   ANIMAÇÕES
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ===========================
   WORDPRESS CLASSES
   =========================== */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 0.5rem;
}

.sticky {
  background-color: hsl(var(--accent) / 0.1);
  border-left: 4px solid hsl(var(--accent));
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}
