/* FAQ PAGE SPECIFIC STYLES */
/* Inherits base variables from main style.css */

/* HERO OVERRIDES */
.faq-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  background:
    linear-gradient(to bottom, rgba(18,18,18,0.7), var(--bg-deep)),
    url('../../img/forestai.png') center/cover no-repeat;
}

.faq-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.6);
  color: var(--text-white);
}

.faq-hero .tech-label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-main);
  opacity: 0.9;
}

/* --- MODE SELECTOR (TABS) --- */
.mode-selector-wrapper {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-dim);
  padding: 0;
  position: sticky;
  top: 70px; /* Below Navbar */
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mode-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 20px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.02);
}

.mode-btn.active {
  color: var(--accent-main);
  border-bottom-color: var(--accent-main);
  background: rgba(93, 156, 89, 0.05);
}

/* Icon tweak */
.mode-btn .icon { font-size: 1.2rem; }

/* LAYOUT */
.faq-container {
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 900px; /* Narrower for readability */
}

/* SECTION VISIBILITY LOGIC */
.faq-section {
  display: none; /* Hidden by default */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.faq-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Accent Color Variations */
.accent-bar.blue { background-color: var(--accent-blue); }

/* ACCORDION STYLING */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

details:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

details[open] {
  border-color: var(--accent-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

summary {
  padding: 20px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  color: var(--text-white);
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom indicator icon */
summary::after {
  content: "+";
  font-family: 'Roboto Mono', monospace;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-left: 12px;
  line-height: 1;
}

details[open] summary::after {
  content: "−"; /* Minus sign */
  color: var(--accent-main);
}

/* Hide default marker in Safari/Chrome */
summary::-webkit-details-marker {
  display: none;
}

.answer {
  padding: 0 24px 24px 24px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -8px; /* Visual tweak to pull text closer to header */
  padding-top: 16px;
}

/* NEXT SECTION TRIGGER BUTTON */
.next-section-trigger {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-dim);
}

.next-section-trigger button {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.next-section-trigger button:hover {
    border-color: var(--accent-main);
    color: var(--text-white);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .faq-hero { min-height: 30vh; }
  summary { font-size: 0.95rem; padding: 16px; }
  .answer { padding: 0 16px 16px 16px; }
  .mode-selector { flex-direction: column; }
  .mode-btn { width: 100%; border-bottom: 1px solid var(--border-dim); border-left: 3px solid transparent; }
  .mode-btn.active { border-left-color: var(--accent-main); border-bottom: 1px solid var(--border-dim); }
}
