/* =============================================
   FSB Showcase - Support Page Styles
   ============================================= */

.support-page {
  padding: calc(var(--nav-height) + 48px) 0 64px;
}

.support-header {
  text-align: center;
  margin-bottom: 48px;
}

.support-header h1 {
  margin-bottom: 12px;
}

.support-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- FAQ Accordion --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto 64px;
}

.faq-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: rgba(255, 107, 53, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-question h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.faq-question .faq-icon {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 20px 16px;
}

.faq-answer-inner p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-answer-inner a {
  color: var(--primary);
}

/* --- Troubleshooting Cards --- */
.troubleshooting-section {
  max-width: 900px;
  margin: 0 auto 64px;
}

.troubleshooting-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trouble-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-base);
}

.trouble-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.trouble-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 1rem;
  color: #ef4444;
}

.trouble-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.trouble-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.trouble-card .trouble-fix {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.trouble-card .trouble-fix-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #10b981;
  margin-bottom: 4px;
}

.trouble-card .trouble-fix p {
  color: #6ee7b7;
  font-size: 0.8rem;
}

/* --- Contact Section --- */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
}

.contact-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-section p {
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Light mode overrides --- */
[data-theme="light"] .trouble-card .trouble-fix p {
  color: #059669;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .troubleshooting-grid {
    grid-template-columns: 1fr;
  }

  .support-page {
    padding-top: calc(var(--nav-height) + 32px);
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 14px 16px;
  }

  .faq-question h3 {
    font-size: 0.9rem;
  }

  .faq-answer-inner {
    padding: 0 16px 14px;
  }

  .trouble-card {
    padding: 20px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-links .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
