/* Header styling */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2rem;
  width: auto;
}

.md-header__button.md-logo {
  padding: 0.2rem;
}

.md-header {
  background-color: rgba(32, 32, 32, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.md-header__title,
.md-header__button,
.md-header__topic,
.md-header .md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.87) !important;
}

.md-header .md-search__input {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.md-header .md-search__input:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.md-header__button svg {
  fill: rgba(255, 255, 255, 0.87);
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-slogan {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1rem 0;
  color: var(--md-default-fg-color--light);
}

.hero-content > p {
  margin: 0 0 1rem 0;
}

.hero-example {
  margin-top: 1rem;
}

.hero-example pre {
  margin: 0;
  border-radius: 6px;
}

.hero-demo {
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-demo #hector-demo {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Homepage layout */
.md-content__inner {
  max-width: none !important;
}

.md-content {
  padding: 0 1rem;
}

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

.grid.cards > * {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.25s;
}

.grid.cards > *:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode */
[data-md-color-scheme="slate"] .grid.cards > *:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (min-width: 768px) {
  .md-content {
    padding: 0 2rem;
  }
}

@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-slogan {
    font-size: 1.25rem;
  }
}
