/* Explainers Grid Styles */

.explainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.explainer-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid #e1e5e9;
}

.explainer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.explainer-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.explainer-link:hover {
  text-decoration: none;
  color: inherit;
}

.explainer-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.explainer-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-thumbnail {
  color: white;
  font-size: 3rem;
}

.explainer-info {
  padding: 1.5rem;
}

.explainer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #2c3e50;
  line-height: 1.4;
}

.explainer-description {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.difficulty-beginner {
  background-color: #d4edda;
  color: #155724;
}

.difficulty-intermediate {
  background-color: #fff3cd;
  color: #856404;
}

.difficulty-advanced {
  background-color: #f8d7da;
  color: #721c24;
}

.no-explainers {
  text-align: center;
  padding: 3rem 0;
  color: #6c757d;
}

.no-explainers p {
  font-size: 1.1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .explainers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .explainer-card {
    margin: 0 1rem;
  }
}
