/* Developer Notes Page Styles */

.documentation-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.doc-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 800px;
}

.doc-sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 40px 30px;
}

.toc h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
}

.toc-list a:hover {
  color: #2563eb;
  background: #f1f5f9;
}

.toc-list a.active {
  color: #2563eb;
  background: #dbeafe;
  font-weight: 600;
}

.doc-content {
  padding: 40px 60px;
  overflow-y: auto;
  max-height: 100vh;
}

.doc-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.doc-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #2563eb;
}

.doc-section h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #334155;
  margin-top: 40px;
  margin-bottom: 15px;
}

.doc-section h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #475569;
  margin-top: 30px;
  margin-bottom: 10px;
}

.doc-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 20px;
}

.doc-section ul, .doc-section ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.doc-section li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 8px;
}

.info-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.info-box h4 {
  color: #0369a1;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding-left: 25px;
  position: relative;
}

.info-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: bold;
}

.warning-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.warning-box h4 {
  color: #d97706;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.architecture-diagram {
  margin: 30px 0;
}

.architecture-diagram h4 {
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.diagram {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.layer {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

.layer-title {
  font-weight: 600;
  color: #1e293b;
  display: block;
  margin-bottom: 10px;
}

.components {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.components span {
  background: #e2e8f0;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
}

pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
}

code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.tech-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tech-card h3 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.tech-card p {
  color: #64748b;
  margin-bottom: 15px;
}

.tech-card ul {
  list-style: none;
  padding: 0;
}

.tech-card li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.tech-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #2563eb;
}

.api-reference {
  margin: 30px 0;
}

.api-method {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.api-method h4 {
  color: #1e293b;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 10px;
}

.api-params {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;
}

.param {
  font-size: 0.9rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.param::before {
  content: '• ';
  color: #2563eb;
}

.returns {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #059669;
  font-family: 'JetBrains Mono', monospace;
}

.tool-structure {
  margin: 30px 0;
}

.tool-structure h4 {
  color: #1e293b;
  margin-bottom: 15px;
  margin-top: 30px;
}

.tool-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.category {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}

.category h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.category ul {
  list-style: none;
  padding: 0;
}

.category li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.category li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: #2563eb;
}

.category strong {
  color: #1e293b;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.perf-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}

.perf-item h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.perf-item p {
  color: #64748b;
  margin-bottom: 15px;
}

.metrics-table {
  margin: 30px 0;
  overflow-x: auto;
}

.metrics-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.metrics-table th,
.metrics-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.metrics-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.metrics-table tr:last-child td {
  border-bottom: none;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.security-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}

.security-item h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.security-item p {
  color: #64748b;
}

.headers-example {
  margin: 30px 0;
}

.deployment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.deploy-option {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}

.deploy-option h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.deploy-option p {
  color: #64748b;
  margin-bottom: 15px;
}

.deploy-steps {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
}

.deploy-steps ol {
  margin: 0;
  padding-left: 20px;
}

.deploy-steps li {
  margin-bottom: 8px;
}

.contributing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}

.step h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.step p {
  color: #64748b;
  margin-bottom: 15px;
}

.coding-standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.standard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
}

.standard h4 {
  color: #1e293b;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.tool-guidelines {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 25px;
  margin: 30px 0;
}

.tool-guidelines ul {
  list-style: none;
  padding: 0;
}

.tool-guidelines li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.tool-guidelines li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0ea5e9;
  font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .doc-container {
    grid-template-columns: 1fr;
  }
  
  .doc-sidebar {
    display: none;
  }
  
  .doc-content {
    padding: 30px;
  }
  
  .toc {
    display: block;
    margin-bottom: 40px;
  }
  
  .toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .toc-list li {
    margin: 0;
  }
  
  .toc-list a {
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
  }
  
  .toc-list a:hover {
    background: #f1f5f9;
  }
  
  .toc-list a.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
  }
}

@media (max-width: 768px) {
  .documentation-section {
    padding: 40px 0;
  }
  
  .doc-content {
    padding: 20px;
  }
  
  .doc-section h2 {
    font-size: 1.8rem;
  }
  
  .tech-grid,
  .performance-grid,
  .security-list,
  .deployment-options,
  .contributing-steps,
  .coding-standards {
    grid-template-columns: 1fr;
  }
  
  .components {
    flex-direction: column;
  }
  
  .metrics-table {
    font-size: 14px;
  }
  
  .metrics-table th,
  .metrics-table td {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .doc-section h2 {
    font-size: 1.5rem;
  }
  
  .doc-section h3 {
    font-size: 1.3rem;
  }
  
  pre {
    font-size: 12px;
    padding: 15px;
  }
  
  .tech-card,
  .perf-item,
  .security-item,
  .deploy-option,
  .step,
  .standard {
    padding: 20px;
  }
}
