/*
 * 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.
 */

/* Lazy Video Loading Styles */
[data-controller="lazy-video"] {
  position: relative;
}

/* Loading indicator is hidden by default, shown only when loading class is added */
[data-controller="lazy-video"] .loading-indicator {
  display: none !important;
}

[data-controller="lazy-video"].loading .loading-indicator {
  display: flex !important;
}

/* Smooth transitions for video loading */
[data-controller="lazy-video"] [data-lazy-video-target="placeholder"] {
  transition: opacity 0.3s ease-in-out;
}

[data-controller="lazy-video"] [data-lazy-video-target="video"] {
  transition: opacity 0.3s ease-in-out;
}

/* Video styling to maintain aspect ratio and object fit */
[data-controller="lazy-video"] video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Documentation Content Styles */
.docs-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
}

.docs-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

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

.docs-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
  color: #4b5563;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.docs-content ul {
  list-style-type: disc;
}

.docs-content ol {
  list-style-type: decimal;
}

.docs-content ul ul,
.docs-content ol ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.docs-content a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content strong {
  color: #111827;
  font-weight: 600;
}

.docs-content code {
  background-color: #f3f4f6;
  color: #dc2626;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.docs-content pre {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.docs-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.docs-content th {
  background-color: #f3f4f6;
  color: #111827;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
}

.docs-content td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.docs-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}
