/* ========================================
   VARIÁVEIS CSS ESPECÍFICAS - PÁGINA DE CONVENÇÕES
   ======================================== */

:root {
  /* Cores Principais - Tema Sindicato Moderno */
  --background: 210 20% 8%;
  --foreground: 210 15% 95%;
  --card: 210 20% 9%;
  --card-foreground: 210 15% 95%;
  --popover: 210 20% 9%;
  --popover-foreground: 210 15% 95%;
  --primary: 357 82% 42%;
  --primary-foreground: 210 15% 95%;
  --secondary: 210 15% 15%;
  --secondary-foreground: 210 15% 95%;
  --muted: 210 15% 12%;
  --muted-foreground: 210 10% 65%;
  --accent: 357 82% 42%;
  --accent-foreground: 210 15% 95%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 15% 95%;
  --border: 210 15% 18%;
  --input: 210 15% 15%;
  --ring: 357 82% 42%;
  --radius: 1rem;

  /* Cores Específicas do Sindicato */
  --union-red: 357 82% 42%;
  --union-red-light: 357 82% 52%;
  --union-dark: 210 20% 6%;
  --union-darker: 210 25% 4%;
  --union-gray: 210 10% 20%;

  /* Cores do WhatsApp */
  --whatsapp-color: #0f993e;
  --whatsapp-color-light: 164 84% 45%;
  --predominant-tone-10-percent: 0 0% 100%;

  /* Gradientes */
  --gradient-primary: linear-gradient(
    135deg,
    hsl(var(--union-red)),
    hsl(var(--union-red-light))
  );
  --gradient-bg: linear-gradient(
    135deg,
    hsl(var(--union-dark)),
    hsl(var(--union-darker))
  );
  --gradient-card: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));

  /* Sombras */
  --shadow-glow: 0 0 40px hsl(var(--union-red) / 0.3);
  --shadow-card: 0 10px 30px -10px hsl(var(--union-darker) / 0.5);
  --shadow-lg: 0 15px 30px -10px hsl(var(--union-darker) / 0.7);

  /* Transições */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   ESTILOS BASE ESPECÍFICOS - PÁGINA DE CONVENÇÕES
   ======================================== */

/* Estilos do corpo da página */
body {
  background: var(--gradient-bg);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Texto em negrito destacado */
strong {
  color: hsl(var(--primary)) !important;
  font-weight: 600;
}

/* Forçar texto branco para todos os elementos exceto gradient e strong */
*:not(.gradient-text):not(strong):not(h4):not(i):not(h3) {
  color: hsl(var(--foreground)) !important;
}

/* Texto com gradiente */
.gradient-text {
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  display: inline-block !important;
}

/* ========================================
   PÁGINA DE CONVENÇÕES - CSS ESPECÍFICO
   ======================================== */

/* Hero Section para Convenções */
.hero-section {
  position: relative;
  z-index: 1;
}

.hero-section .particles-container {
  z-index: 5;
}

/* Background Ellipses para Convenções */
.bg-ellipse {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

.bg-ellipse-3 {
  width: 2000px;
  height: 100%;
  background: hsl(var(--union-red));
  filter: blur(800px);
  top: 0%;
  left: 0%;
  transform: translate(-50%, -50%);
}

.bg-ellipse-4 {
  width: 500px;
  height: 500px;
  object-fit: contain;
  background: hsl(var(--union-red-light));
  
  right: 0%;
  z-index: -1;
  filter: blur(120px);
}

.bg-ellipse-5 {
  width: 250px;
  height: 300px;
  opacity: 1;
  filter: blur(100px);
  background: hsl(var(--union-red-light));
  bottom: 5%;
  right: 0%;
  z-index: -1;
}

/* ========================================
   MEDIA QUERIES PARA ELLIPSES
   ======================================== */

   @media (max-width: 1026px) {
    .bg-ellipse-3 {
      width: 600px;
      filter: blur(300px);
    }
  
    .bg-ellipse-5 {
      width: 200px;
      height: 300px;
      right: 0%;
      opacity: 1;
      filter: blur(90px);
    }
  }
  
  @media (max-width: 768px) {
    .bg-ellipse-4 {
      height: 350px;
      top: 5%;
      filter: blur(90px);
    }
  
    .bg-ellipse-5 {
      bottom: 0%;
      filter: blur(90px);
    }
  }
  
  

@media (min-width: 1400px) {
  .bg-ellipse-3 {
    filter: blur(301px);
  }
}


@keyframes particles {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0.6;
  }
  95% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.animate-particles {
  animation: particles linear infinite;
}

/* Partículas */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.particle {
  position: absolute;
  background: hsl(var(--primary) / 0.4);
  border-radius: 50%;
  opacity: 0;
}

/* Seção de Convenções */
.convencoes-section {
  padding: 6rem 0;
  background: hsl(var(--gradient-bg));
  position: relative;
  overflow: hidden;
}

.convencoes-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.convencoes-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.convencoes-intro .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;

}

.convencoes-description {
  font-size: 1.25rem;
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Formulário de Busca */
.convencoes-form {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border) / 0.5);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.convencoes-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.search-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 1.5rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group--button {
  display: flex;
  align-items: flex-end;
}

.form-label {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.form-select {
  padding: 1rem 1.25rem;
  background: hsl(var(--input));
  border: 2px solid hsl(var(--border));
  border-radius: calc(var(--radius) / 2);
  color: hsl(var(--foreground));
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  min-height: 3.5rem;
}

.form-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.1);
  transform: translateY(-2px);
}

.form-select:hover {
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-1px);
}

.btn--search {
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  min-height: 3.5rem;
  background: var(--gradient-primary);
  border: none;
  transition: all 0.3s ease;
}

.btn--search:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--search i {
  font-size: 1rem;
}

/* Resultados */
.convencoes-results {
  min-height: 200px;
}

.results-content {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border) / 0.5);
  text-align: center;
  color: hsl(var(--foreground) / 0.7);
  position: relative;
  overflow: hidden;
}

.results-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

/* Seção Compartilhar */
.share-section {
  padding: 6rem 0;
  background: hsl(var(--muted));
  position: relative;
  z-index: 1;
}

.share-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.share-content .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.share-description {
  font-size: 1.25rem;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-whatsapp {
  border-radius: 10px;
  background-color: var(--whatsapp-color);
  border: solid 0.1rem var(--whatsapp-color);
  font-size: 1rem;
  font-style: normal;
  text-decoration: none;
  color: var(--predominant-tone-10-percent);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  transition: all 0.5s ease;
  font-weight: 500;
  gap: 1rem;
  cursor: pointer;
  max-width: 400px;
}

.btn-whatsapp:hover {
  background-color: transparent;
  transform: scale(1.06);
  color: var(--predominant-tone-10-percent) !important;
  box-shadow: 0 0px 10px var(--whatsapp-color);
  border: solid 0.15rem var(--whatsapp-color);
  transition: all 0.5s ease;
  z-index: 20;
}

.btn-whatsapp i {
  font-size: 1.25rem;
}

/* Seção de Informações */
.info-section {
  padding: 6rem 0;
  background: hsl(var(--gradient-bg));
  position: relative;
  overflow: hidden;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border) / 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.info-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.2),
    hsl(var(--union-red-light) / 0.2)
  );
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition-smooth);
}

.info-card:hover .info-icon {
  transform: scale(1.1);
}

.info-icon i {
  font-size: 1.5rem;
  color: hsl(var(--primary));
}

.info-subtitle {
  color: hsl(var(--foreground) / 0.7);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.info-description {
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 0.75rem;
  background: hsl(var(--muted) / 0.5);
  border-radius: calc(var(--radius) / 2);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: hsl(var(--muted) / 0.8);
  transform: translateX(5px);
}

.info-item i {
  color: hsl(var(--primary));
  font-size: 1.25rem;
  width: 1.5rem;
  flex-shrink: 0;
}

.info-item h4 {
  color: hsl(var(--foreground) / 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px hsl(var(--primary) / 0.3);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px hsl(var(--primary) / 0.4);
}

/* --- LAYOUT: LOCATION --- */

.location-section {
  width: 100%;
  height: auto;
  position: relative;
  padding: 5rem 0;
  background: hsl(var(--gradient-bg));
}

.location-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  display: block !important;
}

.location-subtitle {
  font-weight: 600;
  color: hsl(var(--foreground));
  font-size: 1.375rem;
  text-align: center;
  margin-bottom: 3.5rem;
}

.location-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 1100px;
}

.map-container {
  width: 100%;
  max-width: 710px;
  padding: 0 20px;
}

.location-iframe {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.location-info-container {
  max-width: 320px;
  width: 100%;
  text-align: left;
  padding: 0 20px;
}

.info-block {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.info-title {
  font-weight: 600;
  color: hsl(var(--primary));
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-text {
  font-weight: 400;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.info-label {
  font-weight: 500;
}

.location-btn {
  display: inline-block;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.location-btn:hover {
  background: hsl(var(--union-red-light));
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: hsl(var(--primary-foreground));
}

/* Responsividade */
@media (max-width: 1000px) {
  .location-content {
    flex-wrap: wrap;
  }

  .location-info-container {
    max-width: 710px;
    width: 100%;
  }

  .info-block {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    max-width: 320px;
  }
}
