/*
 * Estilos para a página Home (Vitrine de Projetos)
 * Organizado e centralizado para melhor manutenção.
 */

/* ========== CONTAINER PRINCIPAL ========== */
.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Desktop container optimizations */
@media (min-width: 1200px) {
  .container {
    padding: 0 3rem;
  }
}

@media (min-width: 1600px) {
  .container {
    padding: 0 4rem;
  }
}

/* ========== INTRODUÇÃO DA SEÇÃO DE PROJETOS ========== */
.projects-intro {
  text-align: center;
  margin-bottom: 2rem;
  /* Increased padding for larger intro section */
  padding: 5rem 4rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(219, 234, 254, 0.4) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  border-radius: 32px;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 20px 60px rgba(30, 64, 175, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  /* Increased max-width for larger intro */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Elementos de fundo animados */
.projects-intro:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 1;
}

.projects-intro > * {
  position: relative;
  z-index: 2;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.projects-intro h2 {
  /* Tamanho da fonte para telas grandes */
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(30, 64, 175, 0.1);
}

.projects-intro p {
  /* Tamanho da fonte para telas grandes */
  font-size: 1.5rem;
  color: #3730a3;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 600;
  line-height: 1.7;
}

/* ========== GRID E CARDS DE PROJETOS ========== */
.projects-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Desktop projects section optimizations */
@media (min-width: 1200px) {
  .projects-section {
    max-width: 1700px;
    padding: 0 2rem;
  }
}

@media (min-width: 1600px) {
  .projects-section {
    max-width: 1800px;
    padding: 0 3rem;
  }
}

.projects-grid {
  display: grid;
  /* Better desktop layout with 3 columns */
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 40px;
  padding: 4rem 0;
  justify-content: center;
  justify-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Desktop specific optimizations */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    max-width: 1400px;
  }
}

@media (min-width: 1400px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    max-width: 1600px;
  }
}

.project-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(30, 64, 175, 0.08), 0 4px 20px rgba(30, 64, 175, 0.04), inset 0 1px 0
    rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border: 2px solid transparent;
  position: relative;
  transform-origin: center;
  width: 100%;
  min-height: 550px;
}

/* Desktop card sizing */
@media (min-width: 1200px) {
  .project-card {
    max-width: 420px;
    min-height: 580px;
  }
}

@media (min-width: 1400px) {
  .project-card {
    max-width: 450px;
    min-height: 600px;
  }
}

/* Efeitos de hover e borda gradiente */
.project-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #3b82f6 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover:before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 0 25px 80px rgba(30, 64, 175, 0.2), 0 10px 40px rgba(251, 191, 36, 0.15), inset 0 1px 0
    rgba(255, 255, 255, 0.9);
}

.project-content {
  /* Increased padding for more spacious content */
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* ========== SEÇÃO DE VÍDEO ========== */
.project-video {
  position: relative;
  aspect-ratio: 16 / 9;
  /* Increased margin for better spacing */
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15), 0 4px 15px rgba(30, 64, 175, 0.08);
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.video-link {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-link:hover .video-thumbnail {
  transform: scale(1.05);
}

/* Botão de play estilo YouTube */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Increased play button size */
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  /* Increased play icon size */
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 4px;
  display: block;
}

.video-link:hover .play-button {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4), 0 3px 12px rgba(0, 0, 0, 0.3);
}

.video-link:hover .play-button::before {
  border-left-color: #ffffff;
}

/* ========== ELEMENTOS DE TEXTO DO CARD ========== */
.project-title {
  /* Increased title font size */
  font-size: 2.2rem;
  font-weight: 900;
  margin: 16px 0 20px 0;
  color: #1e3a8a;
  line-height: 1.2;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 70%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.project-school {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #dbeafe 0%, rgba(59, 130, 246, 0.15) 100%);
  border-radius: 16px;
  display: inline-block;
  border: 2px solid rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.project-school:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.project-card:hover .project-school:before {
  left: 100%;
}

.project-challenge {
  /* Increased challenge text size and padding */
  font-size: 1.3rem;
  color: #3730a3;
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 600;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.04) 100%);
  border-radius: 16px;
  border-left: 4px solid #fbbf24;
}

/* ========== RODAPÉ DO CARD ========== */
.project-footer {
  margin-top: auto;
  /* Increased footer padding */
  padding-top: 32px;
  position: relative;
  overflow: visible;
  z-index: 5;
  border-top: 2px solid rgba(59, 130, 246, 0.1);
}

.project-seals {
  display: flex;
  flex-wrap: wrap;
  /* Increased gap between seals */
  gap: 20px;
  margin-bottom: 24px;
  justify-content: flex-start;
}

.seal-wrapper {
  position: relative;
  display: inline-block;
}

.seal-image {
  /* Increased seal size */
  height: 64px;
  width: 64px;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 50%;
  border: 3px solid #fbbf24;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3), 0 2px 10px rgba(251, 191, 36, 0.15);
  backdrop-filter: blur(10px);
}

.seal-wrapper:hover .seal-image {
  transform: scale(1.15) rotate(8deg);
  border-color: #f59e0b;
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.5), 0 4px 20px rgba(251, 191, 36, 0.25);
}

.project-meta {
  /* Increased meta text size and padding */
  font-size: 1.2rem;
  color: #6366f1;
  font-weight: 600;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-radius: 12px;
  display: inline-block;
}

/* Enhanced empty state styling and centering */
.empty-state {
  text-align: center;
  /* Increased empty state padding */
  padding: 6rem 3rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.4) 100%);
  border-radius: 24px;
  margin: 3rem auto;
  max-width: 800px;
  border: 2px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 10px 40px rgba(30, 64, 175, 0.08);
}

.empty-state h3 {
  /* Increased empty state title size */
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 70%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.empty-state p {
  /* Increased empty state text size */
  font-size: 1.4rem;
  color: #3730a3;
  font-weight: 500;
  line-height: 1.6;
}

/* ========== POPUP DE SELOS ========== */
.seal-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 64, 175, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

.seal-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.seal-popup {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 24px;
  padding: 0;
  max-width: 400px;
  width: 95%;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(30, 64, 175, 0.3), 0 10px 40px rgba(30, 64, 175, 0.15), inset 0 1px 0
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(59, 130, 246, 0.2);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.seal-popup-overlay.active .seal-popup {
  transform: scale(1) translateY(0);
}

.seal-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e3a8a;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  z-index: 10;
}

.seal-popup-close:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.seal-popup-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 1.5rem 1rem 1rem;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.seal-popup-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.3) 0%, transparent 50%);
  opacity: 0.7;
}

.seal-popup-header > * {
  position: relative;
  z-index: 2;
}

.seal-popup-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.seal-popup-text {
  flex: 1;
}

.seal-popup-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.seal-popup-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seal-popup-content {
  padding: 1.2rem;
}

.seal-popup-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #3730a3;
  margin-bottom: 1rem;
  font-weight: 500;
}

.seal-popup-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-radius: 16px;
  border-left: 4px solid #fbbf24;
  font-weight: 600;
  color: #1e3a8a;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
  transform: translateX(4px);
  border-left-color: #f59e0b;
}

.feature-icon {
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
  /* Added tablet-specific optimizations */
  .container {
    padding: 0 1.5rem;
  }

  .projects-grid {
    /* Maintained left alignment for tablets */
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    padding: 3rem 0;
    justify-content: start;
    justify-items: start;
  }

  .projects-section {
    padding: 0 1rem;
  }

  .projects-intro {
    padding: 4rem 3rem;
  }

  .projects-intro h2 {
    /* Adjusted tablet title size proportionally */
    font-size: 2.5rem;
  }

  .projects-intro p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .projects-section {
    /* Better mobile container spacing */
    padding: 0 1rem;
  }

  .projects-section {
    padding: 0;
  }

  .projects-intro {
    padding: 3rem 2rem;
    margin-bottom: 4rem;
  }

  .projects-intro h2 {
    /* Adjusted mobile title size proportionally */
    font-size: 2.2rem;
  }

  .projects-intro p {
    font-size: 1.1rem;
  }

  .projects-grid {
    /* Center cards on mobile for better layout */
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 2.5rem 0;
    justify-items: center;
  }

  .project-card {
    max-width: 100%;
    width: 100%;
    min-height: auto;
  }

  .project-card:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .project-content {
    padding: 32px;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-school,
  .project-challenge {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .projects-intro {
    padding: 2.5rem 1.5rem;
    margin-bottom: 3rem;
  }

  .projects-intro h2 {
    /* Adjusted small mobile title size */
    font-size: 1.8rem;
  }

  .projects-intro p {
    font-size: 1rem;
  }

  .projects-grid {
    gap: 30px;
    padding: 2rem 0;
  }

  .project-content {
    padding: 28px;
  }

  .project-title {
    font-size: 1.6rem;
  }

  .project-school {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .project-challenge {
    padding: 18px 20px;
    font-size: 1rem;
  }
}

/* ========== FILTROS DE PESQUISA ========== */
.filters-section {
  margin-bottom: 3rem;
}

.filters-form {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.filters-form:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.filters-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Barra de Pesquisa Principal */
.search-group {
  flex: 1;
}

.search-input-wrapper {
  position: relative;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1.1rem;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.clear-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
}

.clear-search:hover {
  background: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

/* Filtros Avançados */
.advanced-filters {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  animation: slideDown 0.3s ease;
}

.advanced-filters.show {
  display: grid;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-label i {
  color: #3b82f6;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.filter-select option {
  padding: 0.5rem;
  font-weight: 500;
}

/* Botões de Ação */
.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.btn-toggle-filters,
.btn-clear-all,
.btn-apply-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-toggle-filters {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-toggle-filters:hover {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-toggle-filters.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #2563eb;
}

.btn-clear-all {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-clear-all:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.btn-apply-filters {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: 1px solid #2563eb;
}

.btn-apply-filters:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Informações dos Resultados */
.search-results-info {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  border-left: 4px solid #3b82f6;
}

.results-count {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e40af;
}

.results-count i {
  color: #3b82f6;
  font-size: 1rem;
}

.search-term {
  font-weight: 400;
  color: #64748b;
}

.search-term strong {
  color: #1e40af;
  font-weight: 700;
}

/* Responsividade dos Filtros */
@media (min-width: 768px) {
  .filters-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .search-group {
    flex: 2;
    min-width: 300px;
  }

  .filters-actions {
    flex: 1;
    justify-content: flex-end;
    border-top: none;
    padding-top: 0;
    min-width: 200px;
  }

  .advanced-filters {
    flex-basis: 100%;
    order: 3;
  }
}

@media (min-width: 1024px) {
  .filters-form {
    padding: 2.5rem;
  }

  .search-input {
    font-size: 1.1rem;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  }

  .search-icon {
    left: 1.25rem;
    font-size: 1.2rem;
  }

  .filter-select {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .btn-toggle-filters,
  .btn-clear-all,
  .btn-apply-filters {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .filters-form {
    padding: 1.5rem;
    margin: 0 -0.5rem;
    border-radius: 20px;
  }

  .container {
    padding: 0 1rem;
  }

  .search-input {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    font-size: 0.95rem;
  }

  .search-icon {
    left: 0.875rem;
    font-size: 1rem;
  }

  .filters-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-toggle-filters,
  .btn-clear-all,
  .btn-apply-filters {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .advanced-filters {
    gap: 1rem;
  }

  .filter-select {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .btn-text {
    display: none;
  }
}
