/* Custom styles for Folder2MD4LLMs website */

/* Hero section styles */
.hero {
  background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
  color: white;
  padding: 4rem 2rem;
  margin: -2rem -2rem 2rem -2rem;
  text-align: center;
  border-radius: 0 0 1rem 1rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-logo {
  max-height: 150px;
  max-width: 400px;
  height: auto;
  width: auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: white;
  color: #2e7d32;
  border-color: white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: white;
  color: #2e7d32;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

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

.grid.cards > .card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

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

/* Code block enhancements */
.highlight .gp {
  color: var(--md-code-hl-comment-color);
}

/* Feature comparison table */
table th:first-child {
  width: 25%;
}

table th {
  background: var(--md-primary-fg-color--light);
  color: white;
}

/* Status indicators */
.status-check::before {
  content: "✅";
  margin-right: 0.5rem;
}

.status-warning::before {
  content: "⚠️";
  margin-right: 0.5rem;
}

.status-cross::before {
  content: "❌";
  margin-right: 0.5rem;
}

/* Footer CTA section */
.footer-cta {
  background: var(--md-primary-fg-color--light);
  color: white;
  padding: 2rem;
  margin: 2rem -2rem -2rem -2rem;
  text-align: center;
  border-radius: 1rem 1rem 0 0;
}

.footer-cta h2 {
  margin-bottom: 1rem;
  color: white;
}

.footer-cta p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .hero {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

[data-md-color-scheme="slate"] .btn-primary {
  background: var(--md-primary-fg-color);
  color: white;
  border-color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .btn-primary:hover {
  background: transparent;
  color: var(--md-primary-fg-color);
}

/* Syntax highlighting for specific languages */
.language-markdown .highlight .c1 {
  color: var(--md-code-hl-comment-color);
  font-style: italic;
}

.language-python .highlight .kn {
  color: var(--md-code-hl-keyword-color);
}

/* Enhanced admonitions */
.md-typeset .admonition.tip {
  border-color: #00c853;
}

.md-typeset .admonition.tip > .admonition-title::before {
  background-color: #00c853;
}

/* Command palette styling */
.md-search__input {
  background: var(--md-default-bg-color);
}

/* Navigation enhancements */
.md-nav__title {
  font-weight: 600;
}

/* Table of contents improvements */
.md-nav--secondary .md-nav__link--active {
  color: var(--md-primary-fg-color);
  font-weight: 600;
}

[data-md-toggle=search]:checked~.md-header .md-header__title {
    opacity: initial;
}

[data-md-toggle=search]:checked~.md-header .md-logo {
    display: block;
}