/* ==============================================================================
   NassaQ Docs - Custom Styles
   ============================================================================== */

/* Brand gradient for headings */
.md-typeset h1 {
  font-weight: 800;
}

/* Team member cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-card .team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.team-card .team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.75rem;
}

.team-card .team-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-card .team-links a {
  color: var(--md-default-fg-color--light);
  transition: color 0.2s ease;
  font-size: 1.1rem;
}

.team-card .team-links a:hover {
  color: var(--md-primary-fg-color);
}

/* Tech stack badges */
.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--md-primary-fg-color--light);
  color: var(--md-primary-bg-color);
  margin: 0.2rem;
}

/* Status indicator */
.status-implemented {
  color: #4caf50;
  font-weight: 600;
}

.status-planned {
  color: #ff9800;
  font-weight: 600;
}

.status-not-started {
  color: var(--md-default-fg-color--light);
  font-weight: 600;
}

/* Quick-start grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ==============================================================================
   UI Layout Enhancements
   ============================================================================== */

/* Widen the documentation space for large monitors */
.md-grid {
  max-width: 1500px;
}

/* Improve contrast of inline code blocks */
.md-typeset code {
  background-color: var(--md-code-bg-color);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}
[data-md-color-scheme="slate"] .md-typeset code {
  background-color: rgba(255, 255, 255, 0.08);
}
[data-md-color-scheme="default"] .md-typeset code {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Increase the height of the top navigation bar */
:root {
  --md-header-height: 4rem; /* Default is usually 2.4rem or 3rem */
}

/* Ensure inner content stretches to the new height and is vertically centered */
.md-header__inner {
  height: var(--md-header-height);
  align-items: center;
}

/* Adjust the logo/title sizing slightly to match the larger header */
.md-header__button.md-logo {
  padding: 0.8rem;
}

.md-header__button.md-logo svg {
  height: 1.8rem;
  width: 1.8rem;
}

.md-header__title {
  font-size: 1.2rem;
}

/* Make sure the tabs navigation (if ever re-enabled) clears the taller header */
.md-tabs {
  top: var(--md-header-height);
}

/* ==============================================================================
   Header Fixes (Remove Red Background & Align Icon)
   ============================================================================== */

/* 1. Remove the red background from the top bar elements */
.md-header,
.md-header__title,
.md-header__button,
.md-header__source {
  background-color: transparent !important;
}

/* 2. Vertically center the text and the icon together */
.md-header__title,
.md-header__button.md-logo {
  display: flex !important;
  align-items: center !important;
  gap: 2rem; 
}

/* Add this to center the GitHub icon with its text block properly */
.md-source {
  display: flex;
  align-items: center;
}

/* 3. Strip native margins from the logo to prevent it from pushing the text down */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  margin: 0 !important; 
  padding: 0 !important;
}

/* ==============================================================================
   Layout Spacing Fixes
   ============================================================================== */

/* Reduce the gap between the taller header and the page content */
.md-main__inner {
  margin-top: 0.5rem !important; /* Default is usually 1.5rem */
}

/* Prevent the sidebars from being pushed down */
.md-sidebar {
  padding-top: 0.5rem !important; 
}