/* FAQ Page Styles */
.faq-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.faq-container h1 {
  color: #bb86fc;
  margin-bottom: 2rem;
  font-size: 2.2rem;
}

.search-box {
  display: flex;
  margin-bottom: 2rem;
  background: #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-box input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  background: transparent;
  color: #e0e0e0;
  font-size: 1rem;
}

.search-box button {
  padding: 0 1.2rem;
  background: #bb86fc;
  color: #121212;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: #a370d8;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.faq-section h2 {
  color: #bb86fc;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion {
  border-radius: 8px;
  overflow: hidden;
  background: #1e1e2e;
}

.accordion-item {
  border-bottom: 1px solid #2a2a3a;
}

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

.accordion-button {
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  background: #252538;
  color: #e0e0e0;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-button:hover {
  background: #2d2d42;
}

.accordion-button.active {
  background: #2d2d42;
}

.accordion-button i {
  transition: transform 0.3s;
}

.accordion-button.active i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-button.active + .accordion-content {
  padding: 1.5rem;
  max-height: 1000px;
}

.accordion-content p,
.accordion-content ol,
.accordion-content ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.accordion-content ol,
.accordion-content ul {
  padding-left: 1.5rem;
}

.buy-signal {
  color: #4caf50;
}

.sell-signal {
  color: #f44336;
}

.system-comparison {
  margin: 1rem 0;
}

.system-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 0.8rem 0;
  border-bottom: 1px solid #2a2a3a;
}

.system-row.header {
  font-weight: bold;
  background: #252538;
}

.system-tag {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  margin-right: 0.5rem;
}

.system-tag.wickoff {
  background: #2196f3;
  color: white;
}

.system-tag.confluence {
  background: #ff9800;
  color: #121212;
}

.system-tag.mean-reversion {
  background: #9c27b0;
  color: white;
}

.system-tag.breakout {
  background: #4caf50;
  color: white;
}

.theme-preview {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.theme-option {
  text-align: center;
}

.theme-sample {
  width: 100px;
  height: 60px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border: 2px solid #2a2a3a;
}

.theme-option.dark .theme-sample {
  background: #1e1e2e;
}

.theme-option.light .theme-sample {
  background: #f5f5f5;
}

.note,
.tip,
.warning {
  padding: 0.8rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.note {
  background: rgba(33, 150, 243, 0.1);
  border-left: 4px solid #2196f3;
}

.tip {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
}

.warning {
  background: rgba(244, 67, 54, 0.1);
  border-left: 4px solid #f44336;
}

.not-found-help {
  margin-top: 3rem;
  text-align: center;
}

.not-found-card {
  background: #1e1e2e;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.not-found-card i {
  font-size: 3rem;
  color: #bb86fc;
  margin-bottom: 1rem;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #bb86fc;
  color: #121212;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: #a370d8;
}

.btn.outline {
  background: transparent;
  border: 1px solid #bb86fc;
  color: #bb86fc;
}

.btn.outline:hover {
  background: rgba(187, 134, 252, 0.1);
}

/* Light mode styles */
body.light-mode .faq-container h1,
body.light-mode .faq-section h2 {
  color: #6200ee;
}

body.light-mode .search-box {
  background: #f5f5f5;
}

body.light-mode .search-box input {
  color: #333;
}

body.light-mode .accordion {
  background: #f5f5f5;
}

body.light-mode .accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

body.light-mode .accordion-button {
  background: #e0e0e0;
  color: #333;
}

body.light-mode .accordion-button:hover,
body.light-mode .accordion-button.active {
  background: #d5d5d5;
}

body.light-mode .not-found-card {
  background: #f5f5f5;
}

body.light-mode .theme-option.dark .theme-sample {
  border-color: #e0e0e0;
}

body.light-mode .note,
body.light-mode .tip,
body.light-mode .warning {
  color: #333;
}
