/* Developer Section Styles */
.developer-section {
  background-color: var(--white);
  padding: 100px 0;
  position: relative;
}

.developer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

/* Code Tabs */
.code-tabs {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background-color: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tab-button {
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.tab-button:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--text-dark);
}

.tab-button.active {
  background-color: var(--white);
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Code Window */
.code-window {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.code-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.code-actions {
  display: flex;
  gap: 10px;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.copy-button:hover {
  color: var(--primary-color);
}

.code-body {
  background-color: #1e1e1e;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.code-body pre {
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d4d4d4;
  white-space: pre-wrap;
}

/* API Features */
.api-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.api-features h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.response-preview {
  background-color: #1e1e1e;
  border-radius: var(--border-radius);
  padding: 20px;
  overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.response-preview pre {
  margin: 0;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d4d4d4;
  white-space: pre-wrap;
}

.api-benefits {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px 15px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
}

.benefit-item i {
  font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .developer-container {
    grid-template-columns: 1fr;
  }
}

/* Code Syntax Highlighting */
.code-body .keyword {
  color: #569cd6;
}

.code-body .string {
  color: #ce9178;
}

.code-body .comment {
  color: #6a9955;
}

.code-body .function {
  color: #dcdcaa;
}

.code-body .variable {
  color: #9cdcfe;
}
