/**
 * COCO Documentation Header Styles
 * Shared styles for all documentation pages
 */

body {
  margin: 0;
  padding: 0;
}

/* Custom header */
.docs-header {
  background: linear-gradient(135deg, #0E1424 0%, #1a2332 50%, #0E1424 100%);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.docs-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.docs-header-logo {
  height: 32px;
  filter: brightness(0) invert(1);
}

.docs-header-title {
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.docs-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.docs-nav-link {
  color: #00F872;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid #00F872;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.docs-nav-link:hover {
  background-color: #00F872;
  color: #0E1424;
}

.docs-nav-link.active {
  background-color: #00F872;
  color: #0E1424;
}

.docs-nav-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

/* Language selector */
.docs-lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.docs-lang-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.docs-lang-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.docs-lang-link.active {
  color: #00F872;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .docs-header {
    padding: 12px 15px;
  }

  .docs-header-title {
    font-size: 1rem;
  }

  .docs-nav-link {
    font-size: 0.7rem;
    padding: 5px 8px;
  }

  .docs-nav-divider {
    display: none;
  }

  .docs-lang-selector {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .docs-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-header-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
