/* ===== AI CHEATSHEET CUSTOM STYLES ===== */

/* Hero Section Styling */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-section .admonition-title {
  color: white !important;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Card Grid Layout */
.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--lightest);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grid.cards > *:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--md-primary-fg-color);
}

/* Enhanced Buttons */
.md-button {
  border-radius: 6px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.md-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.md-button--primary {
  background: linear-gradient(45deg, #2196F3, #21CBF3);
  color: white;
  border: none;
}

.md-button--primary:hover {
  background: linear-gradient(45deg, #1976D2, #1E88E5);
}

/* Quick Access Section */
.quick-access {
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* Contributors Section */
.contributors {
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.contributors h2 {
  color: white !important;
  margin-top: 0;
}

/* Getting Started Section */
.getting-started {
  background: var(--md-default-bg-color);
  border: 2px dashed var(--md-primary-fg-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.getting-started ol {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Enhanced Admonitions */
.admonition {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admonition.success {
  border-left: 4px solid #4CAF50;
}

.admonition.tip {
  border-left: 4px solid #2196F3;
}

.admonition.question {
  border-left: 4px solid #FF9800;
}

/* Formula Styling */
.highlight pre code {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  line-height: 1.5;
}

/* Math Formulas */
.MathJax {
  font-size: 1.1em !important;
}

/* Navigation Enhancements */
.md-nav__item--active > .md-nav__link {
  background: linear-gradient(45deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  color: white;
  border-radius: 4px;
  font-weight: 500;
}

/* Table Styling */
table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

table tbody tr:hover {
  background: var(--md-default-fg-color--lightest);
}

/* Code Block Enhancements */
.highlight {
  border-radius: 8px;
  overflow: hidden;
}

.highlight pre {
  margin: 0;
  padding: 1rem;
}

/* Search Results Styling */
.md-search-result__article {
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Footer Styling */
.md-footer {
  background: linear-gradient(45deg, #2c3e50, #34495e);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-section {
    padding: 1.5rem;
    margin: 1rem 0;
  }
  
  .grid.cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .md-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Dark Mode Enhancements */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1a1a1a;
  --md-default-fg-color: #e0e0e0;
}

[data-md-color-scheme="slate"] .hero-section {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

[data-md-color-scheme="slate"] .contributors {
  background: linear-gradient(45deg, #553c9a 0%, #8b5cf6 100%);
}

/* Animation Utilities */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Accessibility Improvements */
.md-button:focus {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .hero-section,
  .contributors {
    background: none !important;
    color: black !important;
  }
  
  .md-button {
    border: 1px solid black;
    background: none !important;
    color: black !important;
  }
} 