/* ===== ESTILOS ESPECÍFICOS DO BLOG ===== */

/* Reset global para evitar overflow */
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.blog-body {
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #000;
  background-image: url("imagem/fundo.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Overlay escurecido para dar contraste */
.blog-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.9)
  );
  z-index: -1;
}

/* Layout principal do blog: conteúdo + sidebar */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 16px 120px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Cabeçalho da seção do blog */
.blog-hero {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.blog-hero-content h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
  word-wrap: break-word;
}

.blog-subtitle {
  margin-top: 8px;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Post principal */
.blog-post {
  background: radial-gradient(circle at top left, rgba(52, 62, 96, 0.7) 0, rgba(18, 22, 40, 0.8) 40%, rgba(5, 8, 22, 0.9) 100%);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.15);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-post-header {
  margin-bottom: 24px;
}

.blog-post-category {
  font-size: clamp(0.75rem, 2vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffd600;
  margin-bottom: 8px;
  font-weight: 600;
}

.blog-post-header h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 8px;
  line-height: 1.3;
  word-wrap: break-word;
}

.blog-post-meta {
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  color: rgba(255, 255, 255, 0.7);
}

.blog-post-body p {
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: clamp(0.9rem, 2.5vw, 0.95rem);
  word-wrap: break-word;
}

.blog-post-body ul {
  margin: 8px 0 16px 18px;
  padding-left: 4px;
  font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.blog-post-body li {
  margin-bottom: 4px;
  line-height: 1.6;
}

.blog-post-body h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 3vw, 1.15rem);
  word-wrap: break-word;
}

.blog-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 18px 0;
}

/* Imagem no blog */
.blog-image {
  margin: 32px 0;
  text-align: center;
}

.meme-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid rgba(255, 214, 0, 0.3);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meme-image:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 35px rgba(255, 214, 0, 0.2);
}

.image-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Call-to-Action Section - Design Melhorado */
.blog-cta {
  margin-top: 40px;
  text-align: center;
}

.blog-cta-container {
  background: linear-gradient(135deg, rgba(255, 214, 0, 0.15) 0%, rgba(255, 184, 0, 0.1) 100%);
  border: 2px solid rgba(255, 214, 0, 0.3);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(255, 214, 0, 0.2);
}

.blog-cta-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 214, 0, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.blog-cta-icon {
  margin-bottom: 16px;
}

.blog-cta-icon i {
  font-size: 3rem;
  color: #ffd600;
  text-shadow: 0 0 20px rgba(255, 214, 0, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.blog-cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffd600;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(255, 214, 0, 0.3);
}

.blog-cta-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffd600 0%, #ffb800 50%, #ff9500 100%);
  color: #000;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 214, 0, 0.4);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.blog-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.blog-cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 214, 0, 0.6);
  background: linear-gradient(135deg, #ffb800 0%, #ff9500 50%, #ff7700 100%);
  border-color: rgba(255, 255, 255, 0.3);
}

.blog-cta-button:hover::before {
  left: 100%;
}

.blog-cta-button i:first-child {
  font-size: 1.2rem;
}

.blog-cta-button i:last-child {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.blog-cta-button:hover i:last-child {
  transform: translateX(5px);
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #ffd600;
  font-weight: 600;
}

.sidebar-card ul {
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sidebar-card li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-card li:last-child {
  border-bottom: none;
}

.sidebar-card li + li {
  margin-top: 0;
}

/* Responsividade da página de blog */
@media (max-width: 900px) {
  .blog-main {
    grid-template-columns: 1fr;
    padding: 120px 16px 120px;
    gap: 30px;
  }

  .blog-sidebar {
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .blog-hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .blog-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .blog-post {
    padding: 1.5rem;
  }

  .blog-post-header h2 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .blog-cta {
    margin: 2rem 0;
  }

  .blog-cta-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  /* Ajustes específicos para seção WhatsApp em tablet */
  .whatsapp-section {
    padding: 0 16px;
    margin: 2rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .whatsapp-card {
    padding: 1.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .blog-main {
    padding: 100px 12px 100px;
    gap: 20px;
  }

  .blog-hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .blog-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .blog-post {
    padding: 20px 16px;
  }

  .blog-post-header {
    margin-bottom: 1.5rem;
  }

  .blog-post-header h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .blog-post-category {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .blog-post p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .blog-post h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
  }

  .blog-post ul, .blog-post ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
  }

  .blog-post li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .blog-divider {
    margin: 2rem 0;
  }

  .blog-cta-container {
    padding: 20px 16px;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .blog-cta-icon i {
    font-size: 2.5rem;
  }

  .blog-cta-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }

  .blog-cta-description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .blog-cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }

  .sidebar-card {
    padding: 16px;
  }

  .sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .sidebar-card ul {
    font-size: 0.85rem;
  }

  .sidebar-card li {
    padding: 6px 0;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .meme-image {
    border-radius: 12px;
    margin: 20px 0;
    max-height: 250px;
  }

  .image-caption {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
  }

  /* Ajustes específicos para seção WhatsApp */
  .whatsapp-section {
    padding: 0 12px;
    margin: 1.5rem auto 2rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .whatsapp-card {
    padding: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  .whatsapp-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .whatsapp-icon {
    font-size: 2.5rem;
  }
  
  .whatsapp-text {
    width: 100%;
    max-width: 100%;
  }
  
  .whatsapp-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
  }

  .whatsapp-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .whatsapp-button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Estilos para Seção WhatsApp */
.whatsapp-section {
  margin: 2rem auto;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.whatsapp-card {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 15px;
  padding: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.whatsapp-card:hover {
  transform: translateY(-5px);
}

.whatsapp-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.whatsapp-icon {
  font-size: 3rem;
  animation: pulse 2s infinite;
}

.whatsapp-text h3 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.whatsapp-text p {
  margin: 0;
  opacity: 0.95;
  font-size: 1rem;
  line-height: 1.5;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: #25D366;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-button:hover {
  background: #f8f9fa;
  color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@media (max-width: 600px) {
  .whatsapp-section {
    padding: 0 1rem;
  }
  
  .whatsapp-card {
    padding: 1.5rem;
  }
  
  .whatsapp-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .whatsapp-icon {
    font-size: 2.5rem;
  }
  
  .whatsapp-text h3 {
    font-size: 1.2rem;
  }
  
  .whatsapp-button {
    width: 100%;
    justify-content: center;
  }
}
