/* Documentation Page Styles */

.doc-nav-section {
  padding: 80px 0;
  background: white;
}

.doc-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.doc-nav-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.doc-nav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.doc-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.doc-nav-card:hover::before {
  transform: scaleX(1);
}

.doc-nav-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.doc-nav-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.doc-nav-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.doc-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.doc-nav-link:hover {
  color: #e55a2b;
  transform: translateX(5px);
}

/* Documentation Content */
.doc-section {
  padding: 80px 0;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.doc-sidebar h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
}

.doc-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.doc-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.doc-menu a:hover,
.doc-menu a.active {
  background: #fef7f0;
  color: #ff6b35;
  border-left-color: #ff6b35;
}

.doc-content {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.doc-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f1f5f9;
}

.doc-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.doc-header p {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}

.doc-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}

.doc-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.step-content p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #64748b;
}

.doc-list li::before {
  content: "→";
  color: #ff6b35;
  font-weight: 600;
  flex-shrink: 0;
}

/* Code Blocks */
.code-block {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.code-header {
  background: #334155;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #475569;
}

.code-header span {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.copy-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #475569;
  color: white;
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: none;
  border: none;
}

.code-block code {
  color: #e2e8f0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.feature-item i {
  font-size: 2rem;
  color: #ff6b35;
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* API Reference */
.api-tabs .nav-tabs {
  border: none;
  margin-bottom: 2rem;
}

.api-tabs .nav-link {
  border: none;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 12px;
  margin-right: 0.5rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.api-tabs .nav-link:hover {
  background: #e2e8f0;
  color: #475569;
}

.api-tabs .nav-link.active {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
}

.api-endpoint {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 1rem;
}

.endpoint-header {
  background: #f8fafc;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.method {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.method.post {
  background: #10b981;
  color: white;
}

.method.get {
  background: #3b82f6;
  color: white;
}

.url {
  font-family: "JetBrains Mono", monospace;
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.description {
  color: #64748b;
  font-size: 0.9rem;
}

.endpoint-content {
  padding: 1.5rem;
}

.endpoint-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.endpoint-content table {
  font-size: 0.9rem;
}

.endpoint-content code {
  background: #f1f5f9;
  color: #1e293b;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Support Cards */
.support-section {
  padding: 80px 0;
  background: #f8fafc;
}

.support-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.support-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.support-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.support-card p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
  .doc-section .row {
    flex-direction: column-reverse;
  }

  .doc-sidebar {
    position: static;
    margin-top: 2rem;
  }

  .doc-content {
    padding: 2rem;
  }

  .doc-step {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .doc-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .doc-nav-card {
    padding: 1.5rem;
  }

  .doc-content {
    padding: 1.5rem;
  }

  .doc-header h2 {
    font-size: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .api-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .endpoint-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .support-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .doc-nav-card {
    padding: 1.25rem;
  }

  .doc-content {
    padding: 1.25rem;
  }

  .code-block pre {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .api-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.5rem;
  }
}
