/* FAQ & Documents Knowledge Portal Styles (Screenshots 4 & 5) */

.docs-page-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 24px 60px 24px;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 1;
}

/* Header */
.docs-header {
  margin-bottom: 36px;
}

.docs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #c795ed;
  background: rgba(199, 149, 237, 0.08);
  border: 1px solid rgba(199, 149, 237, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.docs-tag i, .docs-tag svg {
  width: 14px;
  height: 14px;
}

.docs-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.docs-hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Grid Layout */
.docs-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.docs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.docs-nav-card {
  background: var(--card-bg, rgba(22, 22, 26, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  border-radius: 20px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.light-theme .docs-nav-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 12px 6px 12px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.docs-group-title i, .docs-group-title svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

.docs-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.docs-nav-btn i, .docs-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.docs-nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.light-theme .docs-nav-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.docs-nav-btn.active {
  background: rgba(199, 149, 237, 0.1) !important;
  border-color: rgba(199, 149, 237, 0.2) !important;
  color: #c795ed !important;
  font-weight: 700;
}

.docs-nav-btn.active i, .docs-nav-btn.active svg {
  color: #c795ed;
}

/* Need Help Card (Screenshot 5) */
.docs-help-card {
  background: var(--card-bg, rgba(22, 22, 26, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.light-theme .docs-help-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.help-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #c795ed;
}

.help-card-header i, .help-card-header svg {
  width: 18px;
  height: 18px;
}

.help-card-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.btn-docs-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(199, 149, 237, 0.1);
  border: 1px solid rgba(199, 149, 237, 0.25);
  color: #c795ed;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-docs-contact i, .btn-docs-contact svg {
  width: 15px;
  height: 15px;
}

.btn-docs-contact:hover {
  background: #c795ed;
  color: #121214;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(199, 149, 237, 0.25);
}

/* Content Panel (Screenshot 4) */
.docs-content-card {
  background: var(--card-bg, rgba(22, 22, 26, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  min-height: 580px;
  position: relative;
}

.light-theme .docs-content-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

/* Document Top Header */
.doc-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.doc-header-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(199, 149, 237, 0.1);
  border: 1px solid rgba(199, 149, 237, 0.2);
  color: #c795ed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-header-icon i, .doc-header-icon svg {
  width: 26px;
  height: 26px;
}

.doc-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.5px;
}

.doc-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Callout Box (Screenshot 4) */
.doc-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(199, 149, 237, 0.04);
  border: 1px solid rgba(199, 149, 237, 0.2);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.light-theme .doc-callout {
  background: rgba(199, 149, 237, 0.07);
}

.doc-callout-icon {
  width: 20px;
  height: 20px;
  color: #c795ed;
  flex-shrink: 0;
  margin-top: 1px;
}

.doc-callout-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-callout-title {
  font-size: 14px;
  font-weight: 700;
  color: #c795ed;
}

.doc-callout-text {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Sections with Green Bar Marker (Screenshot 4) */
.doc-section {
  margin-bottom: 28px;
}

.doc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

.doc-bar {
  width: 3px;
  height: 18px;
  background: #c795ed;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.doc-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.doc-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.doc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c795ed;
}

/* Tab Panels */
.doc-tab-panel {
  display: none;
  animation: docFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.doc-tab-panel.active {
  display: block;
}

@keyframes docFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ Items in Content Panel */
.doc-faq-item {
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.light-theme .doc-faq-item {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.06);
}

.doc-faq-item:hover {
  border-color: rgba(199, 149, 237, 0.25);
  background: rgba(199, 149, 237, 0.02);
}

.doc-faq-item.active {
  border-color: rgba(199, 149, 237, 0.35);
  background: rgba(199, 149, 237, 0.04);
}

.doc-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  gap: 16px;
}

.doc-faq-item.active .doc-faq-question {
  color: #c795ed;
}

.doc-faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.doc-faq-item.active .doc-faq-chevron {
  transform: rotate(180deg);
  color: #c795ed;
}

.doc-faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.doc-faq-item.active .doc-faq-answer {
  max-height: 500px;
  padding: 0 20px 18px 20px;
  opacity: 1;
}

.doc-faq-answer p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
  }
  .docs-content-card {
    padding: 24px 20px;
  }
  .docs-hero-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .docs-page-container {
    padding: 100px 16px 40px 16px;
  }
  .doc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .doc-title {
    font-size: 22px;
  }
}
