/* 
 * PROBLEMS SECTION - Agência Precisão
 * Estilos para a seção de problemas
 */

.problems {
  position: relative;
  padding: var(--espacamento-secao);
  background: var(--gradiente-fundo);
  min-height: 100vh;
  overflow: hidden;
  padding-left: 10vw;
  padding-right: 10vw;
}

/* Problems Grid Layout */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
}

/* Problem Card Styling */
.problem-card {
  position: relative;
  background: rgba(16, 38, 59, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-padrao);
  padding: 35px 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra-padrao);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradiente-primario);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-hover);
  background: rgba(20, 45, 70, 0.7);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--cor-primaria);
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: var(--sombra-glow-primaria);
  position: relative;
  display: inline-block;
}

.problem-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--cor-secundaria);
  box-shadow: var(--sombra-glow-secundaria);
}

.problem-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--cor-texto-principal);
  transition: color 0.3s ease;
}

.problem-card:hover .problem-content h3 {
  color: var(--cor-secundaria);
}

.problem-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--cor-texto-secundario);
  line-height: 1.6;
}

/* Interactive Elements */
.problem-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;
}

.problem-card:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* Parallax Effect on Hover */
.problem-card:hover .problem-number {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Problem Card Animations */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 209, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 209, 255, 0);
  }
}

.problem-card:nth-child(odd):hover {
  animation: pulse-glow 2s infinite;
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.problem-card:nth-child(even):hover {
  border-image: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria), var(--cor-primaria)) 1;
  border-image-slice: 1;
  background-size: 200% 200%;
  animation: border-flow 3s ease infinite;
}

/* Responsividade Problems Section */
@media screen and (max-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .problems-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
  }

  .problem-card {
    padding: 30px 25px;
  }

  .problem-number {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .problem-content h3 {
    font-size: 1.3rem;
  }

  .problem-content p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .problem-card {
    padding: 25px 20px;
  }

  .problem-number {
    font-size: 3rem;
  }

  .problem-content h3 {
    font-size: 1.2rem;
  }
}

/* Acessibilidade Problems */
@media (prefers-reduced-motion: reduce) {
  .problem-card,
  .problem-card:hover,
  .problem-number,
  .problem-card::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
