/* Lean CMS Render - Custom Styles */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f7fa;
}

main {
  flex: 1;
}

/* Card hover effect */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
}

/* Icon circle on homepage */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Component blocks in vitrine detail */
.component-block {
  transition: box-shadow 0.2s ease;
}
.component-block:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.component-header {
  font-size: 0.875rem;
}

/* HTML component renders */
.html-component img {
  max-width: 100%;
  height: auto;
}

/* Image component */
.image-component img {
  max-height: 400px;
  object-fit: contain;
}

/* Draft preview */
.draft-preview img {
  max-width: 100%;
  height: auto;
}

/* Badge small variant */
.badge-sm {
  font-size: 0.7rem;
  padding: 0.2em 0.5em;
}

/* Table style */
.table td {
  vertical-align: middle;
}

/* Navbar active link highlight */
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #fff !important;
}

/* Code blocks */
code {
  font-size: 0.8rem;
}

pre {
  max-height: 400px;
  overflow-y: auto;
}

/* Responsive vitrine preview */
@media (max-width: 768px) {
  .component-content {
    padding: 1rem !important;
  }
  .image-component img {
    max-height: 250px;
  }
}
