/*
 * Video Components
 *
 * Styles for video embeds and the public videos page.
 */

/* Responsive video embed with 16:9 aspect ratio */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: var(--deep-slate);
  border-radius: 8px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Videos grid for public page */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-card-embed {
  aspect-ratio: 16 / 9;
}

.video-card-embed .video-embed {
  padding-bottom: 0;
  height: 100%;
  border-radius: 0;
}

.video-card-content {
  padding: 20px;
}

.video-card-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: var(--deep-slate);
}

.video-card-content p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--slate-600);
}

.empty-state p {
  font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .videos-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    padding: 0 16px;
  }

  .video-card-content {
    padding: 16px;
  }
}
