/* LAPI Docs Custom Styles */

/* Color Palette - Identidade Visual LM Planejamento */
:root {
  --lapi-primary: #51573D;        /* Verde oliva escuro (logo) */
  --lapi-primary-dark: #3D4129;   /* Verde mais escuro */
  --lapi-primary-light: #B8C589;  /* Verde claro */
  --lapi-primary-hover: #697246;  /* Hover intermediário */
  --lapi-accent: #AAB97A;         /* Verde oliva claro */
  --lapi-beige: #E8E3D5;          /* Bege claro (fundo light) */
  --lapi-beige-light: #F5F3EC;    /* Bege muito claro */
  --lapi-success: #4CAF50;
  --lapi-warning: #FAD02E;
  --lapi-danger: #F44336;
}

/* Light Theme */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #51573D;
  --md-primary-fg-color--light: #B8C589;
  --md-primary-fg-color--dark: #3D4129;
  --md-accent-fg-color: #697246;
  --md-typeset-a-color: #51573D;
}

/* Dark Theme */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #B8C589;
  --md-primary-fg-color--light: #C9D19A;
  --md-primary-fg-color--dark: #51573D;
  --md-accent-fg-color: #B8C589;
  --md-typeset-a-color: #B8C589;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--lapi-primary) 0%, var(--lapi-primary-dark) 100%);
  border-radius: 16px;
  margin-bottom: 2rem;
  color: white;
}

.hero h1 {
  color: white !important;
  margin-top: 1rem;
}

.hero .logo {
  max-width: 200px;
  margin: 0 auto;
}

.hero .md-button {
  margin: 0.5rem;
}

.hero .md-button--primary {
  background-color: var(--lapi-primary-light);
  color: var(--lapi-primary-dark);
  border: none;
}

.hero .md-button--primary:hover {
  background-color: var(--lapi-accent);
}

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

.grid.cards > ul {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.grid.cards > ul > li:hover {
  border-color: var(--lapi-primary);
  box-shadow: 0 4px 12px rgba(81, 87, 61, 0.15);
  transform: translateY(-2px);
}

/* Icon sizing for cards */
.grid.cards .lg {
  font-size: 2rem;
}

.grid.cards .middle {
  vertical-align: middle;
}

/* Pricing cards */
.pricing table {
  width: 100%;
}

.pricing th, .pricing td {
  text-align: center;
}

/* App badges */
.app-badges {
  text-align: center;
  margin: 2rem 0;
}

.app-badges .md-button {
  margin: 0.5rem;
}

/* Custom admonitions */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: var(--lapi-primary);
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
  background-color: rgba(99, 102, 241, 0.1);
}

.md-typeset .tip > .admonition-title::before,
.md-typeset .tip > summary::before {
  background-color: var(--lapi-primary);
}

/* Progress bars in content */
.progress-bar {
  height: 8px;
  background: var(--md-default-fg-color--lightest);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar .fill {
  height: 100%;
  background: var(--lapi-primary);
  border-radius: 4px;
}

/* Tables */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--md-default-fg-color--lightest);
}

/* Code blocks */
.md-typeset pre > code {
  border-radius: 8px;
}

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

/* Footer improvements */
.md-footer {
  margin-top: 3rem;
}

/* Mobile improvements */
@media screen and (max-width: 76.1875em) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
}

/* FAQ question styling */
.md-typeset details.question {
  border-left: 4px solid var(--lapi-primary);
}

.md-typeset details.question > summary {
  font-weight: 600;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.md-typeset a:focus,
.md-button:focus {
  outline: 2px solid var(--lapi-primary);
  outline-offset: 2px;
}
