/* Developer Portal Styles */

.dev-container {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

/* ========== Sidebar Navigation ========== */
.dev-sidebar {
  width: 280px;
  background: rgba(20, 20, 20, 0.8);
  border-right: 1px solid rgba(214, 165, 85, 0.2);
  padding: 40px 0;
  position: fixed;
  height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 5;
}

.dev-sidebar::-webkit-scrollbar {
  width: 6px;
}

.dev-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.dev-sidebar::-webkit-scrollbar-thumb {
  background: rgba(214, 165, 85, 0.3);
  border-radius: 3px;
}

.sidebar-section {
  margin-bottom: 32px;
  padding: 0 24px;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(214, 165, 85, 0.6);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-links a:hover {
  background: rgba(214, 165, 85, 0.1);
  color: #D6A555;
  transform: translateX(4px);
}

.sidebar-links a.active {
  background: rgba(214, 165, 85, 0.15);
  color: #D6A555;
  font-weight: 600;
}

/* ========== Main Content ========== */
.dev-main {
  margin-left: 280px;
  flex: 1;
  padding: 40px 60px;
  max-width: 1400px;
}

/* ========== Hero Section ========== */
.dev-hero-section {
  text-align: center;
  padding: 60px 0 80px;
  border-bottom: 1px solid rgba(214, 165, 85, 0.1);
}

.dev-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(214, 165, 85, 0.1);
  border: 1px solid rgba(214, 165, 85, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.dev-hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #D6A555;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dev-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #D6A555 0%, #F3D082 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.dev-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ========== Search Bar ========== */
.search-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(214, 165, 85, 0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #D6A555;
  box-shadow: 0 0 20px rgba(214, 165, 85, 0.2);
}

.search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(214, 165, 85, 0.6);
  font-size: 1.2rem;
}

/* ========== Quick Links ========== */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.quick-link {
  padding: 8px 20px;
  background: rgba(214, 165, 85, 0.1);
  border: 1px solid rgba(214, 165, 85, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.quick-link:hover {
  background: rgba(214, 165, 85, 0.2);
  border-color: #D6A555;
  transform: translateY(-2px);
}

/* ========== Content Sections ========== */
.content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(214, 165, 85, 0.1);
}

.content-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}

.section-link {
  color: #D6A555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.section-link:hover {
  opacity: 0.8;
}

/* ========== Cards Grid ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.doc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 165, 85, 0.2);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.doc-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 165, 85, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(214, 165, 85, 0.15);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.card-desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.card-link-arrow {
  color: #D6A555;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* ========== Code Block ========== */
.code-example {
  background: #0a0a0a;
  border: 1px solid rgba(214, 165, 85, 0.2);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.code-example pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #D6A555;
}

.code-example code {
  color: #D6A555;
}

/* ========== API Documentation Styles ========== */
.doc-content {
  max-width: 900px;
}

.doc-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.doc-breadcrumb a {
  color: #D6A555;
  text-decoration: none;
  transition: opacity 0.2s;
}

.doc-breadcrumb a:hover {
  opacity: 0.8;
}

.doc-breadcrumb span {
  color: rgba(255, 255, 255, 0.8);
}

.doc-page-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.doc-page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 48px;
}

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

.doc-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(214, 165, 85, 0.2);
}

.doc-subsection-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #D6A555;
  margin: 32px 0 16px;
}

.doc-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-section ul {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin: 16px 0;
  padding-left: 24px;
}

.doc-section li {
  margin-bottom: 8px;
}

.doc-section code {
  background: rgba(214, 165, 85, 0.1);
  color: #D6A555;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

/* API Endpoint Badge */
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 165, 85, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-family: 'Courier New', monospace;
}

.http-method {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.http-get {
  background: rgba(33, 186, 69, 0.2);
  color: #21ba45;
  border: 1px solid #21ba45;
}

.http-post {
  background: rgba(33, 133, 208, 0.2);
  color: #2185d0;
  border: 1px solid #2185d0;
}

.http-put {
  background: rgba(242, 113, 28, 0.2);
  color: #f2711c;
  border: 1px solid #f2711c;
}

.http-delete {
  background: rgba(219, 40, 40, 0.2);
  color: #db2828;
  border: 1px solid #db2828;
}

/* API Tables */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(214, 165, 85, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.api-table thead {
  background: rgba(214, 165, 85, 0.1);
}

.api-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #D6A555;
  border-bottom: 1px solid rgba(214, 165, 85, 0.2);
}

.api-table td {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.api-table code {
  background: rgba(214, 165, 85, 0.15);
  color: #D6A555;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}

/* Callouts */
.doc-callout {
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
  border-left: 4px solid;
}

.doc-callout-info {
  background: rgba(33, 133, 208, 0.1);
  border-color: #2185d0;
  color: rgba(255, 255, 255, 0.9);
}

.doc-callout-warning {
  background: rgba(242, 113, 28, 0.1);
  border-color: #f2711c;
  color: rgba(255, 255, 255, 0.9);
}

.doc-callout-success {
  background: rgba(33, 186, 69, 0.1);
  border-color: #21ba45;
  color: rgba(255, 255, 255, 0.9);
}

.doc-callout-danger {
  background: rgba(219, 40, 40, 0.1);
  border-color: #db2828;
  color: rgba(255, 255, 255, 0.9);
}

.doc-callout strong {
  color: #fff;
  font-weight: 600;
}

.doc-callout a {
  color: #D6A555;
  text-decoration: underline;
}

.doc-callout code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ========== Page Content ========== */
.page-header {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(214, 165, 85, 0.1);
  margin-bottom: 48px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.page-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 800px;
}

.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #D6A555;
  margin-bottom: 16px;
}

.content-block h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin: 32px 0 16px;
}

.content-block p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.content-block ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.content-block ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.content-block ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #D6A555;
  font-weight: bold;
}

/* ========== Table Styles ========== */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(214, 165, 85, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.api-table thead {
  background: rgba(214, 165, 85, 0.1);
}

.api-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #D6A555;
  border-bottom: 1px solid rgba(214, 165, 85, 0.2);
}

.api-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(214, 165, 85, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

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

.api-table code {
  background: rgba(214, 165, 85, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #D6A555;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .dev-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .dev-sidebar.open {
    transform: translateX(0);
  }

  .dev-main {
    margin-left: 0;
    padding: 40px 30px;
  }

  .dev-hero-title {
    font-size: 2.5rem;
  }

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

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

  .dev-hero-section {
    padding: 40px 0 60px;
  }

  .dev-hero-title {
    font-size: 2rem;
  }

  .dev-hero-subtitle {
    font-size: 1rem;
  }

  .search-input {
    padding: 16px 20px 16px 48px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }
}
