/* =============================================================================
   FastQTools Custom Styles - Clean & Professional
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------------- */
.md-typeset {
  font-size: 0.9rem;
  line-height: 1.7;
}

.md-typeset h1 {
  font-weight: 600;
  font-size: 2em;
  letter-spacing: -0.01em;
}

.md-typeset h2 {
  font-weight: 600;
  font-size: 1.5em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  padding-bottom: 0.3em;
  margin-top: 2em;
}

.md-typeset h3 {
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.5em;
}

/* -----------------------------------------------------------------------------
   Hero Section (Homepage)
   ----------------------------------------------------------------------------- */
.md-content__inner h1:first-child {
  margin-top: 0;
}

.hero-section {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  max-width: 54rem;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.7rem;
  margin-bottom: 0.5rem;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.75rem;
}

.hero-section .lead {
  font-size: 1.2rem;
  color: var(--md-default-fg-color--light);
  margin: 0 auto 1.5rem;
  max-width: 46rem;
}

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

.hero-note,
.muted-note {
  color: var(--md-default-fg-color--light);
  font-size: 0.95rem;
}

.hero-note {
  max-width: 42rem;
  margin: 0 auto;
}

.language-note {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background-color: var(--md-code-bg-color);
}

/* Feature Cards */
.md-typeset .grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.md-typeset .grid.cards > * {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.md-typeset .grid.cards > *:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.md-typeset .grid.cards h3 {
  margin-top: 0;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.md-typeset .grid.cards h3 .twemoji {
  font-size: 1.5em;
}

/* -----------------------------------------------------------------------------
   Code Blocks
   ----------------------------------------------------------------------------- */
.md-typeset pre {
  border-radius: 6px;
}

.md-typeset code {
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}

.md-typeset pre > code {
  padding: 0;
}

/* -----------------------------------------------------------------------------
   Tables
   ----------------------------------------------------------------------------- */
.md-typeset table {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset table th {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  font-weight: 600;
}

.md-typeset table tr:nth-child(even) {
  background-color: var(--md-code-bg-color);
}

.md-typeset table tr:hover {
  background-color: var(--md-accent-fg-color--transparent);
}

/* -----------------------------------------------------------------------------
   Admonitions
   ----------------------------------------------------------------------------- */
.md-typeset .admonition {
  border-radius: 6px;
  border-left-width: 4px;
}

/* -----------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------------- */
.md-typeset .md-button {
  border-radius: 6px;
  padding: 0.5em 1.25em;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.md-typeset .md-button--primary:hover {
  opacity: 0.9;
}

/* -----------------------------------------------------------------------------
   Navigation Sidebar
   ----------------------------------------------------------------------------- */
.md-nav__link--active {
  font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Search
   ----------------------------------------------------------------------------- */
.md-search-result mark {
  background-color: var(--md-accent-fg-color--transparent);
  color: var(--md-accent-fg-color);
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.md-footer {
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media screen and (max-width: 76.1875em) {
  .hero-section h1 {
    font-size: 2.15rem;
  }

  .hero-section .lead {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .md-typeset .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------------
   Print
   ----------------------------------------------------------------------------- */
@media print {
  .md-header,
  .md-footer,
  .md-sidebar,
  .md-tabs,
  .md-search {
    display: none !important;
  }

  .md-content {
    margin-left: 0;
  }
}
