/* suport.css - Estilos consolidados para Documentation, FAQ e Help */

/* ===== ESTILOS GERAIS ===== */
.documentation-container,
.faq-container,
.help-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.documentation-container h1,
.faq-container h1,
.help-container h1 {
  color: #bb86fc;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq-container h1,
.help-container h1 {
  display: block;
}

.doc-section,
.faq-section,
.help-section {
  margin-bottom: 3rem;
}

.doc-section h2,
.faq-section h2,
.help-section h2 {
  color: #bb86fc;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #2a2a3a;
}

/* ===== ESTILOS DE CARDS ===== */
.feature-card,
.lgpd-section,
.terms-card,
.step-card {
  background: #1e1e2e;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.feature-card h3,
.lgpd-card h3,
.terms-card h3 {
  margin-top: 0;
  color: #bb86fc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lgpd-card {
  background: #252538;
  border-radius: 8px;
  padding: 1.5rem;
}

.lgpd-card h4 {
  color: #e0e0e0;
  margin-top: 1.5rem;
}

/* ===== ESTILOS DE LISTAS ===== */
.doc-section ul,
.doc-section ol,
.accordion-content ol,
.accordion-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.doc-section li {
  margin-bottom: 0.5rem;
}

/* ===== TABELAS ===== */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.feature-table th,
.feature-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #2a2a3a;
}

.feature-table th {
  background: #252538;
  color: #bb86fc;
}

.feature-table tr:hover {
  background: #252538;
}

/* ===== CAIXAS DE DESTAQUE ===== */
.note-box,
.note {
  background: rgba(33, 150, 243, 0.1);
  border-left: 4px solid #2196f3;
  padding: 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.warning-box,
.warning {
  background: rgba(244, 67, 54, 0.1);
  border-left: 4px solid #f44336;
  padding: 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.tip-box,
.tip {
  background: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4caf50;
  padding: 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.tip i {
  color: #4caf50;
  margin-top: 0.2rem;
}

/* ===== BLOCO DE CÓDIGO ===== */
.code-block {
  background: #252538;
  padding: 1rem;
  border-radius: 6px;
  font-family: monospace;
  overflow-x: auto;
  margin: 1rem 0;
}

/* ===== BARRA DE PESQUISA (FAQ) ===== */
.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;
}

/* ===== ACORDEÃO (FAQ E HELP) ===== */
.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;
}

/* ===== SINAIS DE COMPRA/VENDA ===== */
.buy-signal {
  color: #4caf50;
  font-weight: bold;
}

.sell-signal {
  color: #f44336;
  font-weight: bold;
}

/* ===== SISTEMAS DE TRADING ===== */
.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-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  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;
}

.system-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2a3a;
}

.system-info:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.system-info h4 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== PREVIEW DE TEMAS ===== */
.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;
}

/* ===== AJUDA NÃO ENCONTRADA ===== */
.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;
}

/* ===== BOTÕES ===== */
.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);
}

/* ===== ESTILOS DE ETAPAS (HELP) ===== */
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.step-card {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #bb86fc;
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #e0e0e0;
}

.help-gif {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 1rem;
  border: 1px solid #2a2a3a;
}

/* ===== TIMEFRAMES ===== */
.timeframe-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tf-card {
  background: #252538;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.tf-card h4 {
  margin-top: 0;
  color: #bb86fc;
}

/* ===== NAVEGADORES ===== */
.browsers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.browser-card {
  background: #252538;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.browser-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.browser-card h4 {
  margin: 0.5rem 0;
}

.recommended {
  color: #4caf50;
  font-weight: bold;
  margin-top: 0.5rem;
}

.partial {
  color: #ff9800;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* ===== CONTATO ===== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: #1e1e2e;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-card i {
  font-size: 2.5rem;
  color: #bb86fc;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin: 0.5rem 0;
}

.contact-card .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #bb86fc;
  color: #121212;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.contact-card .btn:hover {
  background: #a370d8;
}

/* ===== FAQ GRID ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ===== DESIGN RESPONSIVO ===== */
@media (max-width: 768px) {
  .documentation-container,
  .faq-container,
  .help-container {
    padding: 0 0.5rem;
  }

  .doc-section h2,
  .faq-section h2,
  .help-section h2 {
    font-size: 1.3rem;
  }

  .feature-card,
  .lgpd-card,
  .terms-card,
  .step-card {
    padding: 1rem;
  }

  .step-card {
    flex-direction: column;
  }

  .system-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .system-row.header {
    display: none;
  }

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

/* ===== MODO CLARO ===== */
body.light-mode .documentation-container h1,
body.light-mode .faq-container h1,
body.light-mode .help-container h1,
body.light-mode .doc-section h2,
body.light-mode .faq-section h2,
body.light-mode .help-section h2,
body.light-mode .feature-card h3,
body.light-mode .lgpd-card h3,
body.light-mode .terms-card h3,
body.light-mode .feature-table th,
body.light-mode .tf-card h4 {
  color: #6200ee;
}

body.light-mode .doc-section h2 {
  border-bottom-color: #e0e0e0;
}

body.light-mode .feature-card,
body.light-mode .lgpd-section,
body.light-mode .terms-card,
body.light-mode .step-card,
body.light-mode .accordion,
body.light-mode .contact-card,
body.light-mode .not-found-card {
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .lgpd-card {
  background: #e0e0e0;
}

body.light-mode .lgpd-card h4 {
  color: #333;
}

body.light-mode .feature-table th,
body.light-mode .feature-table tr:hover,
body.light-mode .tf-card,
body.light-mode .browser-card {
  background: #e0e0e0;
}

body.light-mode .feature-table td {
  border-bottom-color: #e0e0e0;
}

body.light-mode .code-block {
  background: #e0e0e0;
  color: #333;
}

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

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

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 .theme-option.dark .theme-sample {
  border-color: #e0e0e0;
}

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

body.light-mode .step-content h3 {
  color: #333;
}

body.light-mode .help-gif {
  border-color: #e0e0e0;
}

body.light-mode .contact-card i {
  color: #6200ee;
}
