/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* TinyMCE Content Display Styles */
.tinymce-content {
  line-height: 1.6;
}

.tinymce-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  color: #111827;
}

.tinymce-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
  color: #111827;
}

.tinymce-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  color: #111827;
}

.tinymce-content p {
  margin-bottom: 1rem;
}

.tinymce-content ul, .tinymce-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.tinymce-content li {
  margin-bottom: 0.25rem;
}

.tinymce-content strong {
  font-weight: 600;
}

.tinymce-content em {
  font-style: italic;
}

.tinymce-content a {
  color: #6366f1;
  text-decoration: underline;
}

.tinymce-content a:hover {
  color: #4f46e5;
}

.tinymce-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.375rem;
}

.tinymce-content blockquote {
  border-left: 4px solid #6366f1;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #6b7280;
  font-style: italic;
}

.tinymce-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.tinymce-content th,
.tinymce-content td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: left;
}

.tinymce-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.tinymce-content iframe {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.375rem;
  aspect-ratio: 16 / 9;
}

/* Responsive YouTube embeds */
.tinymce-content .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}

.tinymce-content .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
