/* ===== PÁGINA DE GRUPOS DE APOIO ===== */

/* Seção de Grupos */
.grupos-section {
  background: #09101c;
  padding: 60px 0 40px 0;
  border-bottom: none;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.grupos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,70,6,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,70,6,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,70,6,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,70,6,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,70,6,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.grupos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.grupos-page-title {
  color: #fff;
  font-family: 'Boldonse', sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.grupos-page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff4606;
  border-radius: 2px;
}

.grupos-description {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Seção de Cards de Grupos */
.grupos-cards-section {
  background-color: #fff;
  padding: 40px 0 60px 0;
}

.grupos-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grupos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

/* Card de grupo */
.grupo-card {
  background: #fff;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  box-shadow: 0 2px 20px 0 rgba(9, 16, 28, 0.04);
  border-radius: 0px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.grupo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px 0 rgba(9, 16, 28, 0.08);
}

.grupo-card-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0px;
}

.grupo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.grupo-card:hover .grupo-card-image {
  transform: scale(1.05);
}

.grupo-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
  border-radius: 3px;
  border: 1px solid #000;
}

.grupo-badge-blue,
.grupo-badge-green,
.grupo-badge-orange,
.grupo-badge-pink,
.grupo-badge-purple,
.grupo-badge-teal {
  background: #a4e5ff;
}

.grupo-card-content {
  padding: 20px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grupo-card-title {
  font-family: 'Barlow', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: text-decoration 0.3s ease;
}

.grupo-card-title:hover {
  text-decoration: underline;
}

.grupo-card-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.grupo-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.grupo-members {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.grupo-activity {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #25d366;
  font-weight: 500;
}

.grupo-whatsapp-btn {
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.grupo-whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.grupo-whatsapp-btn:active {
  transform: translateY(0);
}

/* Estados de filtro */
.grupo-card.hidden {
  display: none;
}

/* Responsividade */
@media (max-width: 1024px) {
  .grupos-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 980px) {
  .grupos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .grupos-section {
    padding: 40px 0 30px 0;
    margin-top: 60px;
  }

  .grupos-page-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .grupos-description {
    font-size: 1rem;
  }

  .grupos-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grupo-card-content {
    padding: 16px;
  }

  .grupo-card-title {
    font-size: 1.125rem;
  }

  .grupo-card-description {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .grupos-container {
    padding: 0 16px;
  }

  .grupos-cards-container {
    padding: 0 16px;
  }

  .grupos-page-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .grupos-description {
    font-size: 0.875rem;
  }

  .grupo-card-image {
    height: 180px;
  }

  .grupo-card-content {
    padding: 14px;
  }

  .grupo-card-title {
    font-size: 1rem;
  }

  .grupo-card-description {
    font-size: 0.8125rem;
  }

  .grupo-whatsapp-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
