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

/* Invisible captcha styling */
.invisible {
  display: none !important;
}

/* Typography improvements for blog content */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #111827;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.25rem;
  margin-top: 0;
}

.prose h2 {
  font-size: 1.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose h4 {
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1.5rem;
}

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

.prose em {
  font-style: italic;
  color: #6b7280;
}

.prose code {
  font-family: 'SF Mono', Monaco, Consolas, 'Roboto Mono', monospace;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: #dc2626;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

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

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin: 0.5rem 0;
}

.prose a {
  color: #6366f1;
  text-decoration: underline;
  text-decoration-color: rgb(99 102 241 / 30%);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #4f46e5;
  text-decoration-color: rgb(79 70 229 / 60%);
}

.prose img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%);
  margin: 2rem 0;
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

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

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

.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 3rem 0;
}

/* Focus states for better accessibility */
.focus-ring:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background-color: rgb(99 102 241 / 20%);
  color: #1f2937;
}

/* Image upload drag and drop styling */
.upload-area.drag-over {
  border-color: #6366f1;
  background-color: rgb(99 102 241 / 5%);
}

.image-preview-item {
  animation: fade-in 0.3s ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
