/* MLH Document Templates Styling */
.mlh-templates-library {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.mlh-templates-header {
  text-align: center;
  margin-bottom: 40px;
}

.mlh-templates-header h2 {
  margin: 0 0 8px;
  font-size: 2.5rem;
  color: #0A2540;
}

.mlh-templates-subtitle {
  margin: 0 0 32px;
  color: #475569;
  font-size: 1.1rem;
}

.mlh-templates-controls {
  display: flex;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.mlh-templates-controls .mlh-input,
.mlh-templates-controls .mlh-select {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.mlh-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.mlh-template-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mlh-template-card:hover {
  border-color: #2C5F2D;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,95,45,0.15);
}

.mlh-template-category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #E8F2E8;
  color: #2C5F2D;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.mlh-template-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #0A2540;
  font-weight: 600;
}

.mlh-template-desc {
  margin: 0 0 16px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
}

.mlh-template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}

.mlh-template-downloads {
  color: #94A3B8;
  font-size: 0.85rem;
}

.mlh-template-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2C5F2D;
}

.mlh-template-actions {
  display: flex;
  gap: 8px;
}

.mlh-template-actions .mlh-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.mlh-btn-primary {
  background: #2C5F2D;
  color: #fff;
}

.mlh-btn-primary:hover {
  background: #1F4420;
  transform: translateY(-1px);
}

.mlh-btn-ghost {
  background: transparent;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.mlh-btn-ghost:hover {
  background: #F1F5F9;
}

.mlh-no-templates {
  text-align: center;
  padding: 60px 20px;
  color: #94A3B8;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .mlh-templates-controls {
    flex-direction: column;
  }

  .mlh-templates-grid {
    grid-template-columns: 1fr;
  }

  .mlh-template-actions {
    flex-direction: column;
  }
}
