/* ========================================================
   CODAINI - PLAYTESTING & FEEDBACK DE VIDEOJUEGOS
   ======================================================== */

.feedback-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top center, #0a3535 0%, #041414 75%);
  color: white;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}

.feedback-hero .tech-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 255, 229, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 255, 229, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 0;
}

.feedback-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

/* ==========================================================================
   ANIMACIONES DE RESALTADO PULSANTE (GLOW & SHIMMER) PARA ENCUESTAS
   ========================================================================== */
@keyframes feedbackGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 229, 0.75), 0 4px 18px rgba(0, 255, 229, 0.25);
    border-color: rgba(0, 255, 229, 0.65);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 255, 229, 0), 0 8px 32px rgba(0, 255, 229, 0.55);
    border-color: #00ffe5;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 229, 0), 0 4px 18px rgba(0, 255, 229, 0.25);
    border-color: rgba(0, 255, 229, 0.65);
  }
}

@keyframes feedbackShimmerBeam {
  0% {
    transform: translateX(-150%) skewX(-25deg);
  }
  20%, 100% {
    transform: translateX(300%) skewX(-25deg);
  }
}

@keyframes feedbackIconBeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(0, 255, 229, 0.7));
  }
  50% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 10px #00ffe5) drop-shadow(0 0 16px rgba(0, 255, 229, 0.6));
    color: #ffffff;
  }
}

.feedback-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00ffe5;
  background: rgba(0, 255, 229, 0.12);
  border: 1.5px solid rgba(0, 255, 229, 0.6);
  border-radius: 999px;
  margin-bottom: 0.85rem;
  animation: feedbackGlowPulse 2.8s infinite ease-in-out;
}

.feedback-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.feedback-hero-title span {
  color: #00ffe5;
  text-shadow: 0 0 20px rgba(0, 255, 229, 0.45);
}

.feedback-hero-lead {
  color: #b5ece4;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

/* ========================================================
   SECCIÓN PRINCIPAL DEL FORMULARIO
   ======================================================== */
.feedback-section {
  position: relative;
  padding: 3.5rem 1rem 6rem;
  background: #061818;
  color: #fff;
  min-height: 80vh;
}

.feedback-container {
  max-width: 860px;
  margin: 0 auto;
}

.feedback-card {
  background: rgba(8, 28, 28, 0.7);
  border: 1.5px solid rgba(0, 255, 229, 0.22);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 255, 229, 0.06);
  backdrop-filter: blur(14px);
}

/* Selector de Proyecto Destacado */
.project-selector-panel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.project-selector-panel label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00ffe5;
  margin-bottom: 0.75rem;
}

.project-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(0, 255, 229, 0.2);
  border-radius: 10px;
  color: #d2f6f1;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.project-chip:hover {
  background: rgba(0, 255, 229, 0.1);
  border-color: #00ffe5;
  color: #fff;
  transform: translateY(-2px);
}

.project-chip.active {
  background: #00ffe5;
  color: #041414;
  border-color: #00ffe5;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.4);
}

/* Bloques de Preguntas */
.feedback-question-group {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0, 255, 229, 0.1);
}

.feedback-question-group:last-of-type {
  border-bottom: none;
}

.question-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.question-label i {
  color: #00ffe5;
  font-size: 1.2rem;
}

.question-hint {
  font-size: 0.82rem;
  color: #8edcd4;
  margin-bottom: 1rem;
}

/* Calificación con Estrellas Táctiles */
.star-rating-widget {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.star-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(0, 255, 229, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.star-option:hover {
  background: rgba(0, 255, 229, 0.08);
  border-color: #00ffe5;
  transform: translateY(-2px);
}

.star-option.selected {
  background: linear-gradient(135deg, rgba(0, 255, 229, 0.2), rgba(0, 255, 229, 0.05));
  border-color: #00ffe5;
  box-shadow: 0 0 18px rgba(0, 255, 229, 0.3);
}

.star-icon {
  font-size: 1.6rem;
  color: #ffca28;
  text-shadow: 0 0 10px rgba(255, 202, 40, 0.4);
}

.star-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e0fbf7;
}

/* Chips Táctiles de Selección Única */
.option-chips-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(0, 255, 229, 0.15);
  border-radius: 10px;
  color: #c9efe9;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.choice-chip:hover {
  background: rgba(0, 255, 229, 0.08);
  border-color: rgba(0, 255, 229, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.choice-chip.active {
  background: rgba(0, 255, 229, 0.18);
  border-color: #00ffe5;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 255, 229, 0.25);
  font-weight: 700;
}

/* Área de Texto con Botón de Dictado por Voz */
.voice-textarea-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.voice-control-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.btn-voice-record {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: rgba(0, 255, 229, 0.08);
  border: 1.5px solid rgba(0, 255, 229, 0.35);
  border-radius: 8px;
  color: #00ffe5;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-voice-record:hover {
  background: rgba(0, 255, 229, 0.2);
  box-shadow: 0 0 14px rgba(0, 255, 229, 0.3);
  color: #fff;
}

/* Estado Grabando Voz (Pulsante Rojo) */
.btn-voice-record.recording {
  background: #ff3344 !important;
  border-color: #ff3344 !important;
  color: #ffffff !important;
  animation: pulseRecording 1.4s infinite;
  box-shadow: 0 0 20px rgba(255, 51, 68, 0.6);
}

@keyframes pulseRecording {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.feedback-textarea {
  width: 100%;
  border: 1.5px solid rgba(0, 255, 229, 0.25);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  color: #e5fbf8;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 0.25s ease;
  resize: vertical;
}

.feedback-textarea:focus {
  outline: none;
  border-color: #00ffe5;
  box-shadow: 0 0 16px rgba(0, 255, 229, 0.25);
}

.feedback-textarea::placeholder {
  color: rgba(142, 220, 212, 0.5);
}

/* Campos Opcionales del Jugador */
.player-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feedback-input {
  width: 100%;
  border: 1.5px solid rgba(0, 255, 229, 0.25);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  color: #e5fbf8;
  font-size: 0.95rem;
}

.feedback-input:focus {
  outline: none;
  border-color: #00ffe5;
  box-shadow: 0 0 14px rgba(0, 255, 229, 0.2);
}

/* Botón de Envío Principal */
.btn-submit-feedback {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1.15rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #00ffe5 0%, #00d9c4 100%);
  color: #041414;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: feedbackGlowPulse 2.4s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn-submit-feedback::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: feedbackShimmerBeam 2.8s infinite ease-in-out;
  pointer-events: none;
}

.btn-submit-feedback i {
  font-size: 1.25rem;
  animation: feedbackIconBeat 1.8s infinite ease-in-out;
}

.btn-submit-feedback:hover {
  background: #00ffe5;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 229, 0.65);
}

/* Pantalla de Agradecimiento / Éxito */
.feedback-success-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0, 255, 170, 0.15);
  border: 2px solid #00ffaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #00ffaa;
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.35);
  animation: bounceSuccess 0.8s ease-out;
}

@keyframes bounceSuccess {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.feedback-success-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.feedback-success-card p {
  color: #b9ece5;
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.btn-new-feedback {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: #00ffe5;
  color: #041414;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.3);
  transition: all 0.25s ease;
}

.btn-new-feedback:hover {
  background: #00d9c4;
  transform: translateY(-2px);
  color: #041414;
}

@media (max-width: 768px) {
  .player-info-grid {
    grid-template-columns: 1fr;
  }
  
  .star-option {
    min-width: calc(20% - 0.4rem);
    padding: 0.6rem 0.3rem;
  }
}
