/* Developer Hub Page Styles */

/* Hero Section */
.dev-hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
  margin-bottom: 60px;
}

.dev-hero-content {
  flex: 1;
}

.dev-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.dev-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.5;
}

.dev-hero-cta {
  display: flex;
  gap: 16px;
}

.dev-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dev-illustration {
  width: 420px;
  height: 320px;
  background-color: var(--primary-light);
  border-radius: 20px;
  position: relative;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="420" height="320" viewBox="0 0 420 320"><path fill="%230040C1" opacity="0.1" d="M160.5,17.2c30.9-22.8,72.9-12.2,109.7-1.7c36.8,10.5,81.4,21.1,103.5,55.2c22.1,34.1,13.1,86.8-14.8,121.3 c-27.9,34.5-77.8,51-121.3,44.4c-43.6-6.6-76.6-35.7-106.2-69.6C102,133,75.8,92.4,95.8,61.6C115.8,30.9,129.5,40.1,160.5,17.2z"/></svg>');
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 20px 40px rgba(0, 64, 193, 0.1);
}

.dev-illustration::before {
  content: "</>";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 72px;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
}

/* Getting Started Section */
.dev-quick-start {
  margin-bottom: 80px;
}

.getting-started-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.getting-started-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.getting-started-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.getting-started-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-color: var(--primary-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.getting-started-icon::before {
  font-size: 28px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.getting-started-icon.setup::before {
  content: "🔧";
}

.getting-started-icon.quickstart::before {
  content: "🚀";
}

.getting-started-icon.guides::before {
  content: "📚";
}

.getting-started-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.getting-started-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.gs-steps {
  list-style: none;
  margin-bottom: 20px;
}

.gs-steps li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-dark);
}

.gs-steps li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.platform-pill {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.code-snippet {
  background-color: var(--dark);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.code-snippet pre {
  margin: 0;
}

.code-snippet code {
  color: #E5E7EB;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
}

.guide-links {
  list-style: none;
  margin-bottom: 20px;
}

.guide-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.guide-links li:last-child {
  border-bottom: none;
}

.guide-links a {
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s;
}

.guide-links a:hover {
  color: var(--primary-dark);
  padding-left: 5px;
}

.dev-card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.dev-card-link::after {
  content: "→";
  margin-left: 5px;
  transition: all 0.2s;
}

.dev-card-link:hover::after {
  margin-left: 8px;
}

/* API Reference Section */
.dev-api-reference {
  margin-bottom: 80px;
}

.api-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.api-sidebar {
  border-right: 1px solid var(--border);
  background-color: var(--hover-light);
  padding: 20px 0;
}

.api-search {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
}

.api-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--card-bg);
}

.api-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 64, 193, 0.1);
}

.api-categories {
  padding: 20px;
}

.api-categories h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 16px 0 8px;
}

.api-categories h4:first-child {
  margin-top: 0;
}

.api-categories ul {
  list-style: none;
  margin-bottom: 24px;
}

.api-categories ul:last-child {
  margin-bottom: 0;
}

.api-categories ul li {
  margin-bottom: 2px;
}

.api-categories ul li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-light);
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

.api-categories ul li a:hover {
  background-color: rgba(0, 64, 193, 0.05);
  color: var(--primary);
}

.api-categories ul li a.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.api-content {
  padding: 30px;
}

.api-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.api-description {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.api-endpoint {
  background-color: var(--hover-light);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  overflow: hidden;
}

.endpoint-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.http-method {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.http-method.get {
  background-color: #61AFFE;
}

.http-method.post {
  background-color: #49CC90;
}

.http-method.put {
  background-color: #FCA130;
}

.http-method.delete {
  background-color: #F93E3E;
}

.endpoint-path {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  color: var(--text-dark);
}

.api-endpoint p {
  padding: 16px 20px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.request-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.request-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.request-tab:hover {
  color: var(--primary);
}

.request-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.request-content {
  padding: 0;
}

.request-content.hidden {
  display: none;
}

.view-more-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  margin-top: 20px;
}

.view-more-link::after {
  content: "→";
  margin-left: 5px;
  transition: all 0.2s;
}

.view-more-link:hover::after {
  margin-left: 8px;
}

/* SDK Section */
.dev-sdks {
  margin-bottom: 80px;
}

.sdk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sdk-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.sdk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.sdk-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-weight: 600;
  font-size: 24px;
  position: relative;
}

.sdk-icon.js {
  background-color: #F7DF1E;
}

.sdk-icon.js::before {
  content: "JS";
  color: black;
}

.sdk-icon.react {
  background-color: #61DAFB;
}

.sdk-icon.react::before {
  content: "R";
  color: #282C34;
}

.sdk-icon.ios {
  background-color: #000000;
}

.sdk-icon.ios::before {
  content: "iOS";
}

.sdk-icon.android {
  background-color: #3DDC84;
}

.sdk-icon.android::before {
  content: "A";
  color: white;
}

.sdk-icon.node {
  background-color: #339933;
}

.sdk-icon.node::before {
  content: "N";
}

.sdk-icon.python {
  background-color: #3776AB;
}

.sdk-icon.python::before {
  content: "Py";
}

.sdk-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.sdk-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sdk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sdk-tag {
  background-color: var(--badge-bg);
  color: var(--text-light);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
}

.sdk-links {
  display: flex;
  gap: 12px;
}

.sdk-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.sdk-link-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  position: relative;
}

.sdk-link-icon.docs::before {
  content: "📄";
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sdk-link-icon.github::before {
  content: "🔗";
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sdk-note {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--primary-light);
  border-radius: 12px;
  padding: 20px 30px;
}

.sdk-note-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.sdk-note-icon::before {
  content: "💡";
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sdk-note-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.sdk-note-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Sample Applications */
.dev-samples {
  margin-bottom: 80px;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sample-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.sample-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.sample-image {
  height: 160px;
  width: 100%;
  background-color: var(--primary-light);
  position: relative;
}

.sample-image.spa::before {
  content: "⚛️";
  font-size: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sample-image.api::before {
  content: "🖥️";
  font-size: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sample-image.mobile::before {
  content: "📱";
  font-size: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sample-content {
  padding: 24px;
}

.sample-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.sample-content p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sample-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
}

.sample-links {
  display: flex;
  gap: 16px;
}

.sample-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.sample-link-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  position: relative;
}

.sample-link-icon.live::before {
  content: "▶️";
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sample-link-icon.code::before {
  content: "🔍";
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Developer Resources */
.dev-resources {
  margin-bottom: 80px;
}

.resources-flex {
  display: flex;
  gap: 30px;
}

.resource-category {
  flex: 1;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.resource-category h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.resource-list {
  list-style: none;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item:hover {
  transform: translateX(5px);
}

.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--primary-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.resource-icon::before {
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.resource-icon.token::before { content: "🔑"; }
.resource-icon.test::before { content: "🧪"; }
.resource-icon.playground::before { content: "🎮"; }
.resource-icon.video::before { content: "🎬"; }
.resource-icon.blog::before { content: "📝"; }
.resource-icon.webinar::before { content: "📺"; }
.resource-icon.forum::before { content: "💬"; }
.resource-icon.github::before { content: "🔗"; }
.resource-icon.support::before { content: "🛟"; }

.resource-item-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.resource-item-content p {
  font-size: 13px;
  color: var(--text-light);
}

/* CTA Section */
.dev-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  padding: 60px 40px;
  margin-bottom: 60px;
  text-align: center;
}

.dev-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.dev-cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.dev-cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.dev-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.dev-cta-buttons .action-button {
  background-color: white;
  color: var(--primary);
  border: none;
  padding: 14px 28px;
  font-size: 16px;
}

.dev-cta-buttons .action-button.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.dev-cta-buttons .action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dev-cta-buttons .action-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .sdk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .dev-hero {
    flex-direction: column;
    padding: 40px 0;
  }
  
  .getting-started-grid {
    grid-template-columns: 1fr;
  }
  
  .api-wrapper {
    grid-template-columns: 1fr;
  }
  
  .api-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .samples-grid {
    grid-template-columns: 1fr;
  }
  
  .resources-flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .sdk-grid {
    grid-template-columns: 1fr;
  }
  
  .dev-cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .dev-hero-cta {
    flex-direction: column;
  }
}