/* ============================================
   Embed Component
   Uses theme variables from website.css
   ============================================ */

.embed-container {
  margin: 24px 0;
}

/* YouTube - 16:9 responsive iframe */
.embed-container.youtube {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--fil-radius-lg);
  background: var(--fil-bg-code);
}

.embed-container.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--fil-radius-lg);
}

/* Generic embed - link fallback */
.embed-container.generic {
  padding: 16px;
  background: var(--fil-bg-elevated);
  border-radius: var(--fil-radius-lg);
  border: 1px solid var(--fil-border);
}

.embed-container.generic a {
  color: var(--fil-text-link);
  word-break: break-all;
  text-decoration: none;
}

.embed-container.generic a:hover {
  text-decoration: underline;
}

/* Caption below embed */
.embed-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fil-text-muted);
  text-align: center;
  font-style: italic;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 767px) {
  .embed-container {
    margin: 20px 0;
  }

  .embed-caption {
    font-size: 13px;
  }
}
