* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
}

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

.header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  font-size: 48px;
  margin-bottom: 10px;
}

h1 {
  font-size: 32px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.status {
  color: #7f8c8d;
  font-size: 14px;
}

.description {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #3498db;
}

.description p {
  color: #555;
}

.endpoints {
  margin-bottom: 30px;
}

h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2c3e50;
}

h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.endpoint {
  background: white;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 6px;
  border: 1px solid #eee;

  /* stack elements vertically */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px; /* spacing between elements */
}

.endpoint-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.method {
  background: #e8f4fc;
  color: #2980b9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 15px;
}

.path {
  font-family: monospace;
  flex-grow: 1;
}

.desc {
  color: #666;
  font-size: 14px;
}

.example {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.code {
  font-family: monospace;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #eee;
  overflow-x: auto;
}

.links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.links a {
  color: #3498db;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  font-size: 13px;
  color: #95a5a6;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }

  .endpoint {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .method {
    margin-right: 0;
  }

  .links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Authentication section */
.authentication {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #f39c12; /* Orange accent for authentication */
  margin-bottom: 30px;
}

.authentication h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #d35400; /* Darker orange for heading */
}

.authentication p {
  color: #555;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Code block inside authentication and examples */
.authentication .code,
.code {
  font-family: monospace;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #eee;
  overflow-x: auto;
  color: #2c3e50;
  font-size: 13px;
  margin: 8px 0;
}

.hint {
  display: block;
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 4px;
  font-style: italic;
}

.code-block {
  background: #f8f9fa;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.copy-btn {
  background: #3498db;
  color: #fff;
  border: none;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #2980b9;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #eef3f7;
  border-bottom: 1px solid #ddd;
}

.code-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

pre code {
  font-family: monospace;
  font-size: 13px;
}

/* ---------- Mobile & Tablet Enhancements ---------- */

@media (max-width: 480px) {
  pre {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
  }

  .logo {
    font-size: 40px;
  }

  .description,
  .authentication,
  .example,
  .endpoint {
    padding: 16px;
  }

  .endpoint-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

  .container {
    padding: 16px 12px;
  }

  .endpoint {
    gap: 10px;
  }

  .endpoint-method {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .path {
    font-size: 13px;
    word-break: break-all;
  }

  .hint {
    font-size: 11px;
  }

  /* Code blocks */
  pre,
  .code {
    font-size: 12px;
    padding: 10px;
  }

  .code-block {
    margin-bottom: 12px;
  }

  .copy-btn {
    top: 6px;
    right: 6px;
    font-size: 11px;
    padding: 3px 6px;
  }

  /* Links stack better */
  .links {
    gap: 8px;
  }
}
