.oauth-guide-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.guide-hero {
  text-align: center;
  padding: 60px 20px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #a3e635;
  border-radius: 4px;
  margin-bottom: 60px;
  color: #efefef;
}

.guide-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: #efefef;
}

.guide-hero p {
  font-size: 18px;
  color: #888888;
  max-width: 700px;
  margin: 0 auto;
}

.quick-start {
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #a3e635;
  padding: 24px 32px;
  border-radius: 4px;
  margin-bottom: 60px;
}

.quick-start h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #a3e635;
  margin-bottom: 12px;
}

.quick-start p {
  font-size: 15px;
  color: #888888;
  margin-bottom: 16px;
  line-height: 1.6;
}

.quick-start-steps {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.quick-step {
  flex: 1;
  min-width: 200px;
  background-color: #1c1c1c;
  padding: 16px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}

.quick-step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: #a3e635;
  color: #0c0c0c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  text-align: center;
  line-height: 28px;
  margin-bottom: 8px;
}

.quick-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #efefef;
  margin-bottom: 4px;
}

.quick-step-desc {
  font-size: 13px;
  color: #888888;
  line-height: 1.5;
}

.flow-diagram {
  background-color: #141414;
  padding: 40px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  margin-bottom: 60px;
}

.flow-diagram h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #efefef;
  margin-bottom: 32px;
  text-align: center;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.flow-step {
  background-color: #1c1c1c;
  padding: 24px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.flow-step:hover {
  border-color: #a3e635;
  box-shadow: 3px 3px 0 #a3e635;
}

.flow-step-icon {
  width: 48px;
  height: 48px;
  border: 2px solid #a3e635;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #a3e635;
  font-size: 20px;
  font-weight: 700;
}

.flow-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #efefef;
  margin-bottom: 8px;
}

.flow-step-desc {
  font-size: 13px;
  color: #888888;
  line-height: 1.5;
}

.flow-arrow {
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  font-size: 24px;
  color: #a3e635;
}

.flow-step:last-child .flow-arrow {
  display: none;
}

.flow-diagram-image {
  text-align: center;
  margin-top: 32px;
}

.flow-diagram-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}

.guide-section {
  background-color: #141414;
  padding: 40px;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  margin-bottom: 32px;
}

.guide-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #efefef;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #a3e635;
  color: #a3e635;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
}

.guide-section p {
  font-size: 15px;
  color: #888888;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-section ul {
  margin-left: 20px;
  margin-bottom: 24px;
}

.guide-section li {
  font-size: 15px;
  color: #888888;
  line-height: 1.7;
  margin-bottom: 8px;
}

.api-endpoint {
  background-color: #1c1c1c;
  border-left: 3px solid #a3e635;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.api-endpoint-method {
  display: inline-block;
  padding: 4px 8px;
  background-color: #a3e635;
  color: #0c0c0c;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  margin-right: 8px;
}

.api-endpoint-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #efefef;
  font-weight: 600;
}

.code-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #2a2a2a;
}

.code-tab {
  padding: 8px 16px;
  background-color: transparent;
  border: none;
  color: #555555;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.code-tab:hover {
  color: #efefef;
}

.code-tab.active {
  color: #a3e635;
  border-bottom-color: #a3e635;
  font-weight: 600;
}

.code-content {
  display: none;
}

.code-content.active {
  display: block;
}

.code-block {
  background-color: #0a0a0a;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.code-block pre {
  margin: 0;
  color: #a3e635;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-block code {
  color: #a3e635;
  font-family: 'JetBrains Mono', monospace;
}

.response-box {
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
}

.response-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #efefef;
  margin-bottom: 12px;
}

.response-box pre {
  background-color: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 0;
}

.response-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #efefef;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
}

.params-table thead {
  background-color: #1c1c1c;
}

.params-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #efefef;
  border-bottom: 1px solid #2a2a2a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.params-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #888888;
  border-bottom: 1px solid #2a2a2a;
}

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

.params-table tr:hover td {
  background-color: #1c1c1c;
}

.param-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #a3e635;
}

.param-type {
  display: inline-block;
  padding: 2px 8px;
  background-color: rgba(163, 230, 53, 0.1);
  color: #a3e635;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid rgba(163, 230, 53, 0.2);
}

.param-required {
  display: inline-block;
  padding: 2px 8px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-left: 8px;
}

.warning-box {
  background-color: #1c1c1c;
  border-left: 3px solid #f97316;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.warning-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-box p {
  font-size: 14px;
  color: #888888;
  margin: 0;
  line-height: 1.6;
}

.info-box {
  background-color: #1c1c1c;
  border-left: 3px solid #a3e635;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.info-box h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #a3e635;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p {
  font-size: 14px;
  color: #888888;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .oauth-guide-container {
    padding: 20px 16px;
  }
  
  .guide-hero {
    padding: 40px 20px;
  }
  
  .guide-hero h1 {
    font-size: 32px;
  }
  
  .guide-hero p {
    font-size: 16px;
  }
  
  .flow-steps {
    grid-template-columns: 1fr;
  }
  
  .quick-start-steps {
    flex-direction: column;
  }
  
  .guide-section {
    padding: 24px 20px;
  }
  
  .guide-section h3 {
    font-size: 24px;
  }
  
  .code-block {
    padding: 16px;
  }
  
  .params-table {
    font-size: 13px;
  }
  
  .params-table th,
  .params-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .guide-hero h1 {
    font-size: 28px;
  }
  
  .code-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .code-tab {
    white-space: nowrap;
  }
}

.mermaid {
  background-color: #141414;
  padding: 32px;
  border-radius: 4px;
  border: 1px dashed #2a2a2a;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .mermaid {
    padding: 20px;
  }
}
