/* Blog-specific styles */

/* Prose styles for blog content */
.prose {
  color: #374151;
  max-width: none;
}

.prose h1 {
  color: #111827;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 2.5rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.prose h2 {
  color: #111827;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #111827;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #1d4ed8;
}

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

.prose ul {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  list-style-type: disc;
  padding-left: 1.625rem;
}

.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  list-style-type: decimal;
  padding-left: 1.625rem;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #111827;
  border-left-width: 0.25rem;
  border-left-color: #e5e7eb;
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
}

.prose code {
  color: #111827;
  font-weight: 600;
  font-size: 0.875rem;
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.prose pre {
  color: #e5e7eb;
  background-color: #1f2937;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7142857;
  margin-top: 1.7142857rem;
  margin-bottom: 1.7142857rem;
  border-radius: 0.375rem;
  padding: 0.8571429rem 1.1428571rem;
}

.prose pre code {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: 400;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  text-sm: 0.875rem;
  font-weight: 500;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination a:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.pagination .current {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
}

.pagination .disabled {
  color: #6b7280;
  cursor: not-allowed;
}

/* Blog card hover effects */
.blog-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Rich text editor styles */
.rich-text-editor {
  min-height: 200px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem;
}

.rich-text-editor:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Form improvements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-help-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}


/* Social sharing buttons */
.social-share {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.social-share-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.2s;
}

.social-share-twitter {
  background-color: #1da1f2;
  color: white;
}

.social-share-twitter:hover {
  background-color: #1a91da;
  color: white;
}

.social-share-facebook {
  background-color: #1877f2;
  color: white;
}

.social-share-facebook:hover {
  background-color: #166fe5;
  color: white;
}

.social-share-linkedin {
  background-color: #0077b5;
  color: white;
}

.social-share-linkedin:hover {
  background-color: #006ba1;
  color: white;
}

/* Rouge syntax highlighting */
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nl { color: #990000; font-weight: bold } /* Name.Label */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */

/* Dark Mode Styles */
.dark .prose {
  color: #d1d5db;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3 {
  color: #f3f4f6;
}

.dark .prose strong {
  color: #f3f4f6;
}

.dark .prose a {
  color: #60a5fa;
}

.dark .prose a:hover {
  color: #3b82f6;
}

.dark .prose blockquote {
  color: #f3f4f6;
  border-left-color: #4b5563;
}

.dark .prose code {
  color: #f3f4f6;
  background-color: #374151;
}

.dark .form-label {
  color: #d1d5db;
}

.dark .form-input {
  color: #f3f4f6;
  background-color: #374151;
  border-color: #4b5563;
}

.dark .form-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark .social-share {
  border-top-color: #4b5563;
}

.dark .pagination a,
.dark .pagination span {
  border-color: #4b5563;
  color: #d1d5db;
}

.dark .pagination a:hover {
  background-color: #374151;
  border-color: #6b7280;
}

.dark .pagination .disabled {
  color: #6b7280;
}

/* Navigation and layout dark mode styles */
.dark .bg-white {
  background-color: #1f2937 !important; /* gray-800 */
}

.dark .bg-zinc-50 {
  background-color: #111827 !important; /* gray-900 */
}

.dark .bg-white\/90 {
  background-color: rgba(31, 41, 55, 0.9) !important;
}

.dark .text-gray-800 {
  color: #e5e7eb !important; /* gray-200 */
}

.dark .text-gray-700 {
  color: #d1d5db !important; /* gray-300 */
}

.dark .text-gray-600 {
  color: #9ca3af !important; /* gray-400 */
}

.dark .text-gray-500 {
  color: #6b7280 !important; /* gray-500 */
}

.dark .text-gray-900 {
  color: #f3f4f6 !important; /* gray-100 */
}

.dark .border-gray-200 {
  border-color: #4b5563 !important; /* gray-600 */
}

.dark .border-gray-300 {
  border-color: #374151 !important; /* gray-700 */
}

.dark .ring-zinc-900\/5 {
  --tw-ring-color: rgba(255, 255, 255, 0.1) !important;
}

/* Hover states */
.dark .hover\:text-teal-600:hover {
  color: #5eead4 !important; /* teal-300 */
}

.dark .text-teal-600 {
  color: #5eead4 !important; /* teal-300 */
}

/* Button styles */
.dark .bg-white\/80 {
  background-color: rgba(55, 65, 81, 0.8) !important;
}

.dark .hover\:bg-white:hover {
  background-color: #4b5563 !important;
}

.dark .hover\:bg-gray-100:hover {
  background-color: #4b5563 !important;
}

/* Shadow colors */
.dark .shadow-zinc-800\/5 {
  --tw-shadow-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile menu */
.dark .bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Footer styles */
.dark .bg-gray-50 {
  background-color: #374151 !important; /* gray-700 */
}

/* Text colors for better readability */
.dark .text-black {
  color: #f9fafb !important; /* gray-50 */
}

.dark .hover\:text-black:hover {
  color: #f9fafb !important;
}

.dark .hover\:text-gray-800:hover {
  color: #e5e7eb !important;
}

/* Card backgrounds */
.dark .bg-gray-100 {
  background-color: #374151 !important;
}

/* Text content */
.dark .text-slate-700 {
  color: #d1d5db !important;
}

/* Additional light elements that need dark mode treatment */
.dark .bg-gray-50 {
  background-color: #374151 !important; /* gray-700 */
}

.dark .bg-gray-100 {
  background-color: #1f2937 !important; /* gray-800 */
}

.dark .bg-gray-200 {
  background-color: #111827 !important; /* gray-900 */
}

/* Ensure all card backgrounds are dark */
.dark .rounded-2xl.bg-white,
.dark .rounded-xl.bg-white,
.dark .rounded-lg.bg-white {
  background-color: #1f2937 !important; /* gray-800 */
}

/* Light colored containers */
.dark .bg-zinc-100 {
  background-color: #374151 !important;
}

.dark .bg-slate-50 {
  background-color: #374151 !important;
}

.dark .bg-slate-100 {
  background-color: #1f2937 !important;
}

/* Override any remaining light backgrounds */
.dark [class*="bg-white"] {
  background-color: #1f2937 !important;
}

.dark [class*="bg-gray-50"] {
  background-color: #374151 !important;
}

.dark [class*="bg-gray-100"] {
  background-color: #1f2937 !important;
}

/* Text colors that might still be dark */
.dark .text-gray-900 {
  color: #f3f4f6 !important;
}

.dark .text-gray-800 {
  color: #e5e7eb !important;
}

.dark .text-gray-700 {
  color: #d1d5db !important;
}

.dark .text-slate-600 {
  color: #9ca3af !important;
}

.dark .text-slate-800 {
  color: #e5e7eb !important;
}

.dark .text-slate-900 {
  color: #f3f4f6 !important;
}

/* Call to Action gradient and teal backgrounds */
.dark .bg-gradient-to-r.from-teal-50.to-blue-50 {
  background: linear-gradient(to right, #374151, #1f2937) !important; /* gray-700 to gray-800 */
}

.dark .border-teal-100 {
  border-color: #4b5563 !important; /* gray-600 */
}

.dark .from-teal-50 {
  --tw-gradient-from: #374151 !important;
  --tw-gradient-to: rgba(55, 65, 81, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.dark .to-blue-50 {
  --tw-gradient-to: #1f2937 !important;
}

/* Category badge and tag colors */
.dark .bg-teal-50 {
  background-color: #1f2937 !important; /* gray-800 */
}

.dark .text-teal-700 {
  color: #5eead4 !important; /* teal-300 */
}

.dark .border-teal-200 {
  border-color: #14b8a6 !important; /* teal-500 */
}

.dark .bg-teal-100 {
  background-color: #374151 !important; /* gray-700 */
}

.dark .text-teal-600 {
  color: #5eead4 !important; /* teal-300 */
}

.dark .border-teal-300 {
  border-color: #0f766e !important; /* teal-600 */
}

/* Colorful badge styles for dark mode */
.dark .bg-red-100 {
  background-color: #991b1b !important; /* red-800 */
}

.dark .text-red-800 {
  color: #fca5a5 !important; /* red-300 */
}

.dark .bg-blue-100 {
  background-color: #1e40af !important; /* blue-800 */
}

.dark .text-blue-800 {
  color: #93c5fd !important; /* blue-300 */
}

.dark .bg-green-100 {
  background-color: #166534 !important; /* green-800 */
}

.dark .text-green-800 {
  color: #86efac !important; /* green-300 */
}

.dark .bg-purple-100 {
  background-color: #6b21a8 !important; /* purple-800 */
}

.dark .text-purple-800 {
  color: #c4b5fd !important; /* purple-300 */
}

.dark .bg-yellow-100 {
  background-color: #a16207 !important; /* yellow-700 */
}

.dark .text-yellow-800 {
  color: #fde047 !important; /* yellow-300 */
}

.dark .bg-indigo-100 {
  background-color: #3730a3 !important; /* indigo-800 */
}

.dark .text-indigo-800 {
  color: #a5b4fc !important; /* indigo-300 */
}

.dark .bg-gray-100 {
  background-color: #374151 !important; /* gray-700 */
}

.dark .text-gray-800 {
  color: #d1d5db !important; /* gray-300 */
}