/* FAQ Page Specific Styles */

/* FAQ Page Background */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  background-attachment: fixed;
}

/* Add subtle pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 122, 182, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(216, 154, 216, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 122, 182, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* Hero Section */
.faq-hero {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Container */
.faq-search-container {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.faq-search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.faq-search-input:focus {
  outline: none;
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.1);
  background: rgba(0, 0, 0, 0.9);
}

.faq-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.faq-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* Categories */
.faq-categories {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.faq-category-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-category-btn:hover {
  background: rgba(255, 122, 182, 0.1);
  border-color: rgba(255, 122, 182, 0.3);
  color: white;
  transform: translateY(-1px);
}

.faq-category-btn.active {
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  border-color: #ff7ab6;
  color: black;
  font-weight: 600;
}

/* FAQ Container */
.faq-container {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* FAQ Item */
.faq-item {
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 182, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 122, 182, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-item.open {
  border-color: rgba(255, 122, 182, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* FAQ Question */
.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: white;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question span {
  flex: 1;
  margin-right: 1rem;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* No Results */
.faq-no-results {
  animation: fadeInUp 0.5s ease-out;
}

.faq-clear-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  border: none;
  border-radius: 0.75rem;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-clear-btn:hover {
  background: linear-gradient(135deg, #ff6ba8, #ff8bb8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 122, 182, 0.3);
}

/* CTA Section */
.faq-cta {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.faq-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 122, 182, 0.5),
    transparent
  );
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff7ab6, #ff9ac6);
  color: black;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.faq-cta-btn:hover::before {
  left: 100%;
}

.faq-cta-btn:hover {
  background: linear-gradient(135deg, #ff6ba8, #ff8bb8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 122, 182, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .faq-question {
    padding: 1.25rem;
    font-size: 1rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .faq-search-input {
    padding: 0.875rem 2.5rem 0.875rem 0.875rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .faq-search-icon {
    right: 0.875rem;
  }

  .faq-category-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
  }

  .faq-card {
    padding: 2rem 1.5rem;
  }

  .faq-cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  .help-back-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 1rem 1rem 1rem;
  }

  .faq-search-input {
    padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    font-size: 16px;
  }

  .faq-search-icon {
    right: 0.75rem;
  }

  .faq-category-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }

  .faq-card {
    padding: 1.5rem 1rem;
  }

  .faq-cta-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }

  .help-back-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

/* Back to Home CTA */
.help-cta {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  text-align: center;
}

.help-back-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.help-back-btn:hover {
  background: rgba(255, 122, 182, 0.1);
  border-color: rgba(255, 122, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 182, 0.2);
  color: white;
  text-decoration: none;
}

/* Focus visible for accessibility */
.faq-question:focus-visible,
.faq-category-btn:focus-visible,
.faq-search-input:focus-visible,
.faq-clear-btn:focus-visible,
.faq-cta-btn:focus-visible,
.help-back-btn:focus-visible {
  outline: 2px solid #ff7ab6;
  outline-offset: 2px;
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}
