/**
 * Signal Pilot Docs - Feedback System Styles
 * Styles for "Was this helpful?" feedback widget
 * Version: 1.0
 * Created: November 2025
 */

/* Main feedback container */
.sp-feedback {
  margin: 3rem auto 2rem;
  padding: 2rem;
  max-width: 600px;
  background: rgba(0, 188, 212, 0.08);
  border: 1px solid rgba(0, 188, 212, 0.2);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

/* Question section */
.sp-feedback__question {
  display: block;
}

.sp-feedback__text {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--md-default-fg-color);
}

/* Button container */
.sp-feedback__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feedback buttons */
.sp-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--md-text-font);
  border: 2px solid var(--md-accent-fg-color);
  background: transparent;
  color: var(--md-accent-fg-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  min-width: 120px;
}

.sp-feedback__btn:hover {
  background: var(--md-accent-fg-color);
  color: var(--md-primary-bg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.sp-feedback__btn:active {
  transform: translateY(0);
}

/* Button icon */
.sp-feedback__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.sp-feedback__label {
  font-size: 1rem;
}

/* Clicked state */
.sp-feedback__btn--clicked {
  background: var(--md-accent-fg-color);
  color: var(--md-primary-bg-color);
  pointer-events: none;
}

/* Yes button specific */
.sp-feedback__btn--yes:hover {
  border-color: #4caf50;
  background: #4caf50;
}

/* No button specific */
.sp-feedback__btn--no:hover {
  border-color: #ff5722;
  background: #ff5722;
}

/* Thank you section */
.sp-feedback__thanks {
  display: none;
  animation: slideIn 0.3s ease;
}

.sp-feedback__thanks .sp-feedback__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.sp-feedback__thanks-text {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--md-accent-fg-color);
}

.sp-feedback__sub-text {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--md-default-fg-color--light);
  opacity: 0.8;
}

/* Fade out animation */
.sp-feedback--fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* Slide in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .sp-feedback {
    margin: 2rem 1rem 1.5rem;
    padding: 1.5rem 1rem;
  }

  .sp-feedback__text {
    font-size: 1rem;
  }

  .sp-feedback__buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .sp-feedback__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode adjustments (Material theme handles this automatically) */
[data-md-color-scheme="slate"] .sp-feedback {
  background: rgba(0, 188, 212, 0.05);
  border-color: rgba(0, 188, 212, 0.15);
}

/* Print styles - hide feedback widget when printing */
@media print {
  .sp-feedback {
    display: none !important;
  }
}

/* Focus styles for accessibility */
.sp-feedback__btn:focus {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .sp-feedback,
  .sp-feedback__btn {
    transition: none;
    animation: none;
  }

  .sp-feedback__btn:hover {
    transform: none;
  }
}
