/* faq.css - Styles specific to FAQ page */

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.faq-hero {
  text-align: center;
  margin-bottom: 50px;
}

.faq-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.faq-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #ababab;
}

/* FAQ Categories */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px !important;
}

.category-btn {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background-color: #444;
}

.category-btn.active {
  background-color: #ffe234;
  color: #000;
}

/* FAQ Search */
.faq-search {
  margin-bottom: 35px !important;
}

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

#faqSearch {
  flex: 1;
  padding: 15px 20px;
  border-radius: 50px;
  border: none;
  background-color: #333;
  color: white;
  font-size: 16px;
  outline: none;
}

#faqSearch::placeholder {
  color: #ababab;
}

#searchBtn {
  background-color: #ffe234;
  color: black;
  border: none;
  border-radius: 50px;
  padding: 0 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

#searchBtn:hover {
  background-color: #ffd700;
}

/* FAQ Content */
.faq-content {
  margin-bottom: 60px;
}

.faq-group {
  margin-bottom: 50px;
}

.faq-group h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #ffe234;
  position: relative;
  padding-bottom: 10px;
}

.faq-group h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: #ffe234;
}

.faq-item {
  margin-bottom: 15px;
  background-color: rgba(26, 26, 26, 0.7);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-item.search-match {
  border-color: #ffe234;
  box-shadow: 0 0 15px rgba(255, 226, 52, 0.3);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  font-size: 1.2rem;
  margin: 0;
  color: white;
  flex: 1;
}

.toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  margin-left: 15px;
}

.icon-plus,
.icon-minus {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffe234;
  transition: opacity 0.3s, transform 0.3s;
}

.icon-minus {
  opacity: 0;
  transform: rotate(-90deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer p, 
.faq-answer ul,
.faq-answer ol {
  color: #ababab;
  line-height: 1.6;
  margin-bottom: 15px;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 5px;
}

/* Active State */
.faq-item.active .faq-answer {
  max-height: 1000px; /* Arbitrary large value to accommodate content */
  padding: 0 20px 20px;
}

.faq-item.active .icon-plus {
  opacity: 0;
  transform: rotate(90deg);
}

.faq-item.active .icon-minus {
  opacity: 1;
  transform: rotate(0);
}

/* Contact Section */
.faq-contact {
  max-width: 600px;
  margin: 60px auto;
}

.contact-card {
  background-color: rgba(26, 26, 26, 0.7);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  border-top: 4px solid #ffe234;
}

.contact-card h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
}

.contact-card p {
  color: #ababab;
  margin-bottom: 30px;
}

.contact-btn {
  display: inline-block;
  background-color: #ffe234;
  color: #000;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.contact-btn:hover {
  background-color: #ffd700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-hero h1 {
    font-size: 2.2rem;
  }
  
  .category-btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .faq-group h2 {
    font-size: 1.5rem;
  }
  
  .contact-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .faq-hero h1 {
    font-size: 1.8rem;
  }
  
  .faq-categories {
    flex-direction: column;
    align-items: center;
  }
  
  .category-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  #searchBtn {
    width: 100%;
    padding: 15px;
  }
}

/* Gold metallic shine effect for "real time voice capture" */
.gold-shine {
  color: #FFD700;
  font-weight: bold;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    to right, 
    #e0a800 0,    /* Medium gold - not too dark, not too light */
    #f5c935 22%,  /* Brighter gold */
    #FFFF00 45%,  /* Light gold */
    #FF4500 50%,  /* Pure white highlight at center */
    #FFFF00 55%,  /* Light gold */
    #f5c935 78%,  /* Brighter gold */
    #e0a800 100%  /* Medium gold - not too dark, not too light */
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shine 4s linear infinite;
}

@keyframes gold-shine {
  to {
    background-position: 200% center;
  }
}
