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

/* Blog content styling - ensures markdown HTML is properly styled */
.blog-content {
  color: #374151; /* gray-700 */
}

.dark .blog-content {
  color: #e5e7eb; /* gray-200 */
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #111827; /* gray-900 */
}

.dark .blog-content h1,
.dark .blog-content h2,
.dark .blog-content h3,
.dark .blog-content h4,
.dark .blog-content h5,
.dark .blog-content h6 {
  color: #ffffff;
}

.blog-content h1 {
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content h4 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: #374151; /* gray-700 */
}

.dark .blog-content p {
  color: #e5e7eb; /* gray-200 */
}

.blog-content a {
  color: #4f46e5; /* indigo-600 */
  text-decoration: underline;
  font-weight: 600;
}

.dark .blog-content a {
  color: #818cf8; /* indigo-400 */
}

.blog-content a:hover {
  color: #4338ca; /* indigo-700 */
}

.dark .blog-content a:hover {
  color: #a5b4fc; /* indigo-300 */
}

.blog-content strong {
  font-weight: 700;
  color: #111827; /* gray-900 */
}

.dark .blog-content strong {
  color: #ffffff;
}

.blog-content code {
  background-color: #e5e7eb; /* gray-200 */
  color: #4f46e5; /* indigo-600 */
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.dark .blog-content code {
  background-color: #374151; /* gray-700 */
  color: #818cf8; /* indigo-400 */
}

.blog-content pre {
  background-color: #111827; /* gray-900 */
  color: #f3f4f6; /* gray-100 */
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid #374151; /* gray-700 */
  margin: 1.5rem 0;
}

.dark .blog-content pre {
  background-color: #030712; /* gray-950 */
  border-color: #374151;
}

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

.blog-content blockquote {
  border-left: 4px solid #4f46e5; /* indigo-500 */
  padding-left: 1rem;
  font-style: italic;
  color: #374151; /* gray-700 */
  margin: 1.5rem 0;
}

.dark .blog-content blockquote {
  border-left-color: #818cf8; /* indigo-400 */
  color: #d1d5db; /* gray-300 */
}

.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: #374151; /* gray-700 */
}

.dark .blog-content ul,
.dark .blog-content ol {
  color: #e5e7eb; /* gray-200 */
}

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

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

.blog-content li {
  margin: 0.5rem 0;
}

.blog-content img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid #d1d5db; /* gray-300 */
  margin: 2rem 0;
}

.dark .blog-content hr {
  border-top-color: #4b5563; /* gray-600 */
}

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

.blog-content th {
  background-color: #e5e7eb; /* gray-200 */
  color: #111827; /* gray-900 */
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-align: left;
  border: 1px solid #d1d5db;
}

.dark .blog-content th {
  background-color: #374151; /* gray-700 */
  color: #ffffff;
  border-color: #4b5563;
}

.blog-content td {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db; /* gray-300 */
  color: #374151; /* gray-700 */
}

.dark .blog-content td {
  border-color: #4b5563; /* gray-600 */
  color: #e5e7eb; /* gray-200 */
}
