/* ========================
   Global Styles
   ======================== */
:root {
  --primary-color: #191558;
  --secondary-color: #fa595f;
  --accent-color: #4f46e5;
  --success-color: #10b981;
  --error-color: #ef4444;
  --light-bg: #f9fafb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --code-bg: #f3f4f6;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-color);
}

code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: var(--primary-color);
}

pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  overflow-x: auto;
  margin: 0;
}

pre code {
  background: none;
  padding: 0;
}

main {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  min-height: 100vh;
}

/* ========================
   Top Bar
   ======================== */
.top-bar {
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator i {
  color: #10b981;
  font-size: 0.6rem;
  animation: pulse 2s infinite;
}

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

.badge-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-left: 0.5rem;
}

.social-link {
  color: white;
  font-size: 1.1rem;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  color: white;
  opacity: 0.7;
}

/* ========================
   Main Header
   ======================== */
.main-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-section {
  flex-shrink: 0;
}

.logo-link {
  display: block;
  transition: opacity 0.2s ease;
}

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

.logo-img {
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

.nav-link i {
  font-size: 1.1rem;
}

.nav-link-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-link-primary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-1px);
}

/* ========================
   Hero Section
   ======================== */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
}

/* Overview Section Styles */
.overview-section {
  margin: 4rem 0;
}

.overview-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.2s ease;
}

.overview-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.overview-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.overview-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.overview-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.overview-endpoints {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.overview-endpoints code {
  display: block;
  padding: 0.6rem 0.8rem;
  background: var(--code-bg);
  border-left: 3px solid var(--accent-color);
  font-size: 0.9rem;
}

.hero-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Quick Start Box */
.quick-start {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.quick-start-header {
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.quick-start pre {
  margin: 0;
  border: none;
  border-radius: 0;
  background: #1e1e1e;
  padding: 1.2rem;
}

.quick-start code {
  color: #d4d4d4;
  background: none;
  font-size: 0.95rem;
}

/* ========================
   Features Section
   ======================== */

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* ========================
   Endpoints Section
   ======================== */
.endpoints-section {
  margin: 4rem 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
}

.endpoint-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.endpoint-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.endpoint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.endpoint-header > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.http-method {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.http-method.get {
  background: #10b981;
  color: white;
}

.http-method.post {
  background: #3b82f6;
  color: white;
}

.endpoint-path {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--code-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.endpoint-tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.endpoint-tag.tag-system {
  background: #fef3c7;
  color: #92400e;
}

.endpoint-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.endpoint-params {
  background: var(--light-bg);
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.endpoint-params code {
  margin: 0 0.3rem;
}

.endpoint-example {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.example-header {
  background: #2d2d2d;
  padding: 0.6rem 1rem;
  color: #d4d4d4;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.endpoint-example pre {
  background: #1e1e1e;
  border: none;
  margin: 0;
}

/* ========================
   Technical Info Section
   ======================== */
.tech-section {
  margin: 4rem 0;
}

.tech-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
}

.tech-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

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

.tech-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.tech-list li:last-child {
  border-bottom: none;
}

.status-code {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'Monaco', monospace;
  margin-right: 0.8rem;
  min-width: 45px;
  text-align: center;
}

.status-code.success {
  background: #d1fae5;
  color: #065f46;
}

.status-code.error {
  background: #fee2e2;
  color: #991b1b;
}

/* ========================
   About Section
   ======================== */
.about-section {
  margin: 4rem 0;
  padding: 3rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.about-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.about-section .lead {
  font-size: 1rem;
  margin-bottom: 1rem;
}



.about-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 1.5rem;
}



/* ========================
   Button Styles
   ======================== */
.btn-secondary {
  background-color: var(--secondary-color);
  border: none;
}

.btn-secondary:hover {
  background-color: #fc3a40;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* ========================
   Footer
   ======================== */
.footer {
  background: var(--primary-color);
  color: white;
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  color: rgba(255, 255, 255, 0.9);
}

.footer-top {
  margin-bottom: 3rem;
}

.footer-column {
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-badges {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: white;
}

.footer-legal .separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .endpoint-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-section {
    padding: 2rem 1.5rem;
  }

  .quick-start pre code {
    font-size: 0.8rem;
  }

  /* Header responsive */
  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-nav {
    width: 100%;
    flex-direction: column;
  }

  .nav-link,
  .nav-link-primary {
    width: 100%;
    justify-content: center;
  }

  /* Footer responsive */
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}
