/* FAQ Page Styles */

/* Enable scrolling for main container */
body:has(.faq-page) #main-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: auto;
}

.faq-page {
  min-height: 100vh;
  background: var(--lm-page-bg-color);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0 60px;
}

.faq-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: -0.02em;
}

.faq-subtitle {
  font-size: 1.6rem;
  color: var(--lm-text-muted-color);
  text-align: center;
  margin: 0 0 23px;
}

/* FAQ List */
.faq-list {
  max-width: 600px;
  margin: 35px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--lm-border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lm-text-color);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question span {
  flex: 1;
}

.faq-chevron {
  font-size: 1.8rem;
  color: var(--lm-text-muted-color);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

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

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  font-size: 1.4rem;
  color: var(--lm-text-muted-color);
  margin: 0;
  line-height: 1.6;
}

.faq-item.open .faq-answer p {
  padding-bottom: 20px;
}

/* Dark Mode */
body[data-theme="dark"] .faq-page {
  background: var(--dm-page-bg-color);
}

body[data-theme="dark"] .faq-subtitle {
  color: var(--dm-text-muted-color);
}

body[data-theme="dark"] .faq-item {
  border-bottom-color: var(--dm-border-color);
}

body[data-theme="dark"] .faq-question {
  color: var(--dm-text-color);
}

body[data-theme="dark"] .faq-chevron {
  color: var(--dm-text-muted-color);
}

body[data-theme="dark"] .faq-answer p {
  color: var(--dm-text-muted-color);
}
