/* Custom styles for BaseCloud documentation */

:root {
  --bc-primary: #4f46e5;
  --bc-accent: #06b6d4;
}

/* Custom card styling */
.md-typeset .grid.cards > ul > li {
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Task difficulty badges */
.task-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 0.25em;
  font-size: 0.85em;
  font-weight: 500;
  margin-right: 0.5em;
}

.task-badge.beginner {
  background-color: #10b981;
  color: white;
}

.task-badge.intermediate {
  background-color: #f59e0b;
  color: white;
}

.task-badge.advanced {
  background-color: #ef4444;
  color: white;
}

/* Code block enhancements */
.md-typeset pre > code {
  border-radius: 0.5em;
}

/* Admonition custom styles */
.md-typeset .admonition.tip {
  border-left: 4px solid var(--bc-primary);
}

/* Better table styling */
.md-typeset table:not([class]) {
  border-radius: 0.5em;
  overflow: hidden;
}

.md-typeset table:not([class]) thead {
  background-color: var(--md-primary-fg-color--light);
}

/* Search highlight */
.md-search-result__article--document {
  border-left: 3px solid var(--bc-accent);
}

/* Footer enhancements */
.md-footer-meta {
  background-color: var(--md-footer-bg-color);
}

/* Custom button styling */
.md-button {
  border-radius: 0.5em;
  transition: all 0.2s;
}

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

/* Code annotation enhancements */
.md-annotation {
  font-weight: 500;
}

/* Better spacing for lists */
.md-typeset ul li, .md-typeset ol li {
  margin-bottom: 0.5em;
}

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

.task-card {
  padding: 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.task-card:hover {
  border-color: var(--bc-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}
