/* ============================================
   Blog Content Styles - Dynamic Loading
   Loaded only on blog detail pages
   ============================================ */

/* Base blog content styles */
.blog-content {
  color: inherit;
  line-height: 1.65;
  font-size: 0.875rem !important; /* 14px on mobile */
}

.blog-content p,
.blog-content li,
.blog-content td,
.blog-content span {
  font-size: inherit;
}

@media (min-width: 768px) {
  .blog-content {
    font-size: 1rem !important; /* 16px on desktop */
    line-height: 1.75;
  }
}

/* Headings */
.blog-content h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-content h2 { font-size: 1.125rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.75rem; line-height: 1.3; }
.blog-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  .blog-content h1 { font-size: 2rem; margin-bottom: 0.75rem; }
  .blog-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
  .blog-content h3 { font-size: 1.25rem; }
}
.blog-content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }

@media (min-width: 768px) {
  .blog-content h4 { font-size: 1.125rem; }
}

.blog-content p { margin-bottom: 0.75rem; }

@media (min-width: 768px) {
  .blog-content p { margin-bottom: 1rem; }
}

.blog-content a { color: var(--brand); text-decoration: underline; }
.blog-content a:hover { color: var(--brand); text-decoration-thickness: 2px; }

.blog-content strong { font-weight: 700; }
.blog-content em { font-style: italic; }

/* Lists */
.blog-content ul,
.blog-content ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }

@media (min-width: 768px) {
  .blog-content ul,
  .blog-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
}
.blog-content ul { list-style-type: disc; }
.blog-content ol { list-style-type: decimal; }
.blog-content li { margin-bottom: 0.375rem; }

@media (min-width: 768px) {
  .blog-content li { margin-bottom: 0.5rem; }
}

/* Blockquote */
.blog-content blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 1rem 0;
  font-style: italic;
}

/* Code */
.blog-content code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
}

.blog-content pre {
  background-color: #171717;
  color: #e6edf3;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

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

/* Images */
.blog-content img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
}

/* Tables */
.blog-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.8125rem; }
.blog-content th,
.blog-content td { border: 1px solid var(--line); padding: 0.375rem 0.5rem; text-align: left; }
.blog-content th { font-weight: 600; font-size: 0.75rem; }

/* Table wrapper for horizontal scroll on mobile */
.blog-content .overflow-x-auto { -webkit-overflow-scrolling: touch; }

@media (min-width: 768px) {
  .blog-content table { font-size: inherit; }
  .blog-content th,
  .blog-content td { padding: 0.75rem; }
  .blog-content th { font-size: inherit; }
}

/* HR */
.blog-content hr { border-color: var(--line); margin: 2rem 0; }

/* ============================================
   Tailwind Utility Classes for Blog Templates
   ============================================ */

/* Display */
.blog-content .block { display: block; }
.blog-content .inline-block { display: inline-block; }
.blog-content .inline { display: inline; }
.blog-content .hidden { display: none; }

/* Flexbox */
.blog-content .flex { display: flex; }
.blog-content .inline-flex { display: inline-flex; }
.blog-content .flex-col { flex-direction: column; }
.blog-content .flex-row { flex-direction: row; }
.blog-content .flex-wrap { flex-wrap: wrap; }
.blog-content .flex-shrink-0 { flex-shrink: 0; }
.blog-content .items-center { align-items: center; }
.blog-content .items-start { align-items: flex-start; }
.blog-content .justify-center { justify-content: center; }
.blog-content .justify-between { justify-content: space-between; }

/* Grid */
.blog-content .grid { display: grid; }
.blog-content .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.blog-content .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-content .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Gap */
.blog-content .gap-2 { gap: 0.5rem; }
.blog-content .gap-3 { gap: 0.75rem; }
.blog-content .gap-4 { gap: 1rem; }
.blog-content .gap-6 { gap: 1.5rem; }
.blog-content .gap-8 { gap: 2rem; }
.blog-content .gap-10 { gap: 2.5rem; }

/* Padding */
.blog-content .p-2 { padding: 0.5rem; }
.blog-content .p-3 { padding: 0.75rem; }
.blog-content .p-4 { padding: 1rem; }
.blog-content .p-5 { padding: 1.25rem; }
.blog-content .p-6 { padding: 1.5rem; }
.blog-content .p-8 { padding: 2rem; }
.blog-content .p-10 { padding: 2.5rem; }
.blog-content .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.blog-content .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.blog-content .px-4 { padding-left: 1rem; padding-right: 1rem; }
.blog-content .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.blog-content .px-8 { padding-left: 2rem; padding-right: 2rem; }
.blog-content .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.blog-content .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.blog-content .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.blog-content .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.blog-content .pt-2 { padding-top: 0.5rem; }
.blog-content .pt-4 { padding-top: 1rem; }
.blog-content .pt-8 { padding-top: 2rem; }
.blog-content .pb-2 { padding-bottom: 0.5rem; }
.blog-content .pb-4 { padding-bottom: 1rem; }
.blog-content .pl-6 { padding-left: 1.5rem; }

/* Margin */
.blog-content .m-0 { margin: 0; }
.blog-content .m-2 { margin: 0.5rem; }
.blog-content .m-4 { margin: 1rem; }
.blog-content .mx-auto { margin-left: auto; margin-right: auto; }
.blog-content .my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.blog-content .my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.blog-content .my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.blog-content .my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.blog-content .my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.blog-content .mt-2 { margin-top: 0.5rem; }
.blog-content .mt-4 { margin-top: 1rem; }
.blog-content .mt-6 { margin-top: 1.5rem; }
.blog-content .mt-8 { margin-top: 2rem; }
.blog-content .mt-12 { margin-top: 3rem; }
.blog-content .mb-1 { margin-bottom: 0.25rem; }
.blog-content .mb-2 { margin-bottom: 0.5rem; }
.blog-content .mb-3 { margin-bottom: 0.75rem; }
.blog-content .mb-4 { margin-bottom: 1rem; }
.blog-content .mb-6 { margin-bottom: 1.5rem; }
.blog-content .mb-8 { margin-bottom: 2rem; }
.blog-content .mb-10 { margin-bottom: 2.5rem; }
.blog-content .ml-2 { margin-left: 0.5rem; }
.blog-content .mr-2 { margin-right: 0.5rem; }

/* Width & Height */
.blog-content .w-full { width: 100%; }
.blog-content .w-auto { width: auto; }
.blog-content .w-3 { width: 0.75rem; }
.blog-content .w-8 { width: 2rem; }
.blog-content .w-10 { width: 2.5rem; }
.blog-content .w-12 { width: 3rem; }
.blog-content .w-20 { width: 5rem; }
.blog-content .h-1 { height: 0.25rem; }
.blog-content .h-3 { height: 0.75rem; }
.blog-content .h-8 { height: 2rem; }
.blog-content .h-10 { height: 2.5rem; }
.blog-content .h-12 { height: 3rem; }
.blog-content .h-full { height: 100%; }
.blog-content .h-72 { height: 18rem; }
.blog-content .max-w-none { max-width: none; }
.blog-content .max-w-xl { max-width: 36rem; }
.blog-content .max-w-2xl { max-width: 42rem; }
.blog-content .max-w-3xl { max-width: 48rem; }
.blog-content .max-w-4xl { max-width: 56rem; }

/* Border Radius */
.blog-content .rounded { border-radius: 0.25rem; }
.blog-content .rounded-md { border-radius: 0.375rem; }
.blog-content .rounded-lg { border-radius: 0.5rem; }
.blog-content .rounded-xl { border-radius: 0.75rem; }
.blog-content .rounded-2xl { border-radius: 1rem; }
.blog-content .rounded-3xl { border-radius: 1.5rem; }
.blog-content .rounded-full { border-radius: 9999px; }
.blog-content .rounded-r-2xl { border-top-right-radius: 1rem; border-bottom-right-radius: 1rem; }

/* Text Size */
.blog-content .text-xs { font-size: 0.75rem; line-height: 1rem; }
.blog-content .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.blog-content .text-base { font-size: 1rem; line-height: 1.5rem; }
.blog-content .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.blog-content .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.blog-content .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.blog-content .text-lg { font-size: 0.9375rem !important; }
.blog-content .text-xl { font-size: 1rem !important; }
.blog-content .text-2xl { font-size: 1.125rem !important; line-height: 1.4; }
.blog-content .text-3xl { font-size: 1.25rem !important; line-height: 1.4; }
.blog-content .text-4xl { font-size: 1.375rem !important; line-height: 1.3; }
.blog-content .text-5xl { font-size: 1.5rem !important; line-height: 1.2; }
.blog-content .text-6xl { font-size: 1.75rem !important; line-height: 1.2; }

/* Table cell padding — override inline Tailwind */
.blog-content .px-6 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.blog-content .py-4 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.blog-content .p-8 { padding: 1.25rem !important; }
.blog-content .mb-10 { margin-bottom: 1.5rem !important; }
.blog-content .mt-10 { margin-top: 1.5rem !important; }
.blog-content .my-10 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.blog-content .mb-8 { margin-bottom: 1.25rem !important; }
.blog-content .mb-6 { margin-bottom: 1rem !important; }
.blog-content .rounded-2xl { border-radius: 0.75rem !important; }

@media (min-width: 768px) {
  .blog-content .text-lg { font-size: 1.125rem !important; }
  .blog-content .text-xl { font-size: 1.25rem !important; }
  .blog-content .text-2xl { font-size: 1.5rem !important; }
  .blog-content .text-3xl { font-size: 1.875rem !important; }
  .blog-content .text-4xl { font-size: 2.25rem !important; }
  .blog-content .text-5xl { font-size: 3rem !important; }
  .blog-content .text-6xl { font-size: 3.75rem !important; }
  .blog-content .px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .blog-content .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .blog-content .p-8 { padding: 2rem !important; }
  .blog-content .mb-10 { margin-bottom: 2.5rem !important; }
  .blog-content .mt-10 { margin-top: 2.5rem !important; }
  .blog-content .my-10 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }
  .blog-content .mb-8 { margin-bottom: 2rem !important; }
  .blog-content .mb-6 { margin-bottom: 1.5rem !important; }
  .blog-content .rounded-2xl { border-radius: 1rem !important; }
}

/* Font Weight */
.blog-content .font-medium { font-weight: 500; }
.blog-content .font-semibold { font-weight: 600; }
.blog-content .font-bold { font-weight: 700; }
.blog-content .font-black { font-weight: 900; }

/* Font Family */
.blog-content .font-serif { font-family: ui-serif, Georgia, serif; }
.blog-content .font-mono { font-family: ui-monospace, monospace; }

/* Text Alignment & Transform */
.blog-content .text-center { text-align: center; }
.blog-content .text-left { text-align: left; }
.blog-content .text-right { text-align: right; }
.blog-content .uppercase { text-transform: uppercase; }
.blog-content .capitalize { text-transform: capitalize; }
.blog-content .italic { font-style: italic; }

/* Line Height & Spacing */
.blog-content .leading-tight { line-height: 1.25; }
.blog-content .leading-relaxed { line-height: 1.625; }
.blog-content .leading-loose { line-height: 2; }
.blog-content .tracking-wide { letter-spacing: 0.025em; }

/* Colors - Text */
.blog-content .text-white { color: #ffffff; }
.blog-content .text-black { color: #000000; }

/* Gray scale text */
.blog-content .text-gray-100 { color: #f3f4f6; }
.blog-content .text-gray-200 { color: #e5e7eb; }
.blog-content .text-gray-300 { color: #d1d5db; }
.blog-content .text-gray-400 { color: #9ca3af; }
.blog-content .text-gray-500 { color: #6b7280; }
.blog-content .text-gray-600 { color: #4b5563; }
.blog-content .text-gray-700 { color: #374151; }
.blog-content .text-gray-800 { color: #1f2937; }
.blog-content .text-gray-900 { color: #111827; }

/* Slate text */
.blog-content .text-slate-300 { color: #cbd5e1; }
.blog-content .text-slate-400 { color: #94a3b8; }
.blog-content .text-slate-500 { color: #64748b; }
.blog-content .text-slate-600 { color: #475569; }
.blog-content .text-slate-700 { color: #334155; }
.blog-content .text-slate-900 { color: #0f172a; }

/* Color text */
.blog-content .text-amber-800 { color: #92400e; }
.blog-content .text-amber-900 { color: #78350f; }
.blog-content .text-amber-100 { color: #fef3c7; }
.blog-content .text-blue-100 { color: #dbeafe; }
.blog-content .text-emerald-100 { color: #d1fae5; }
.blog-content .text-rose-100 { color: #ffe4e9; }
.blog-content .text-cyan-400 { color: #22d3ee; }
.blog-content .text-purple-400 { color: #a78bfa; }
.blog-content .text-pink-400 { color: #f472b6; }
.blog-content .text-green-400 { color: #4ade80; }

/* Opacity text colors */
.blog-content .text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.blog-content .text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.blog-content .text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.blog-content .text-white\/60 { color: rgba(255, 255, 255, 0.6); }

/* Colors - Background */
.blog-content .bg-white { background-color: #ffffff; }
.blog-content .bg-black { background-color: #000000; }
.blog-content .bg-transparent { background-color: transparent; }

/* Gray backgrounds */
.blog-content .bg-gray-100 { background-color: #f3f4f6; }
.blog-content .bg-gray-200 { background-color: #e5e7eb; }
.blog-content .bg-gray-800 { background-color: #1f2937; }
.blog-content .bg-gray-900 { background-color: #111827; }
.blog-content .bg-gray-950 { background-color: #030712; }

/* Slate backgrounds */
.blog-content .bg-slate-50 { background-color: #f8fafc; }
.blog-content .bg-slate-100 { background-color: #f1f5f9; }
.blog-content .bg-slate-200 { background-color: #e2e8f0; }
.blog-content .bg-slate-700 { background-color: #334155; }
.blog-content .bg-slate-800 { background-color: #1e293b; }
.blog-content .bg-slate-900 { background-color: #0f172a; }

/* Color backgrounds */
.blog-content .bg-amber-500 { background-color: #f59e0b; }
.blog-content .bg-red-500 { background-color: #ef4444; }
.blog-content .bg-yellow-500 { background-color: #eab308; }
.blog-content .bg-green-500 { background-color: #22c55e; }

/* Opacity backgrounds */
.blog-content .bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.blog-content .bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.blog-content .bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }

/* Color/opacity backgrounds */
.blog-content .bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.blog-content .bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.blog-content .bg-pink-500\/20 { background-color: rgba(236, 72, 153, 0.2); }

/* Gradients */
.blog-content .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.blog-content .bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

/* Gradient stops - Slate */
.blog-content .from-slate-800 { --tw-gradient-from: #1e293b; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-slate-900 { --tw-gradient-to: #0f172a; }

/* Gradient stops - Gray */
.blog-content .from-gray-900 { --tw-gradient-from: #111827; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-gray-800 { --tw-gradient-to: #1f2937; }

/* Gradient stops - Colors */
.blog-content .from-purple-600 { --tw-gradient-from: #9333ea; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .via-pink-500 { --tw-gradient-stops: var(--tw-gradient-from), #ec4899, var(--tw-gradient-to, transparent); }
.blog-content .to-orange-400 { --tw-gradient-to: #fb923c; }

.blog-content .from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-blue-600 { --tw-gradient-to: #2563eb; }

.blog-content .from-emerald-500 { --tw-gradient-from: #10b981; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-emerald-600 { --tw-gradient-to: #059669; }

.blog-content .from-amber-500 { --tw-gradient-from: #f59e0b; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-orange-500 { --tw-gradient-to: var(--brand, #1f6b54); }

.blog-content .from-rose-500 { --tw-gradient-from: #f43f5e; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-pink-600 { --tw-gradient-to: #db2777; }

.blog-content .from-amber-50 { --tw-gradient-from: #fffbeb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .to-orange-50 { --tw-gradient-to: #fff7ed; }

.blog-content .from-cyan-500\/20 { --tw-gradient-from: rgba(6, 182, 212, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.blog-content .via-purple-500\/20 { --tw-gradient-stops: var(--tw-gradient-from), rgba(168, 85, 247, 0.2), var(--tw-gradient-to, transparent); }
.blog-content .to-pink-500\/20 { --tw-gradient-to: rgba(236, 72, 153, 0.2); }

/* Border */
.blog-content .border { border-width: 1px; }
.blog-content .border-0 { border-width: 0; }
.blog-content .border-2 { border-width: 2px; }
.blog-content .border-t { border-top-width: 1px; }
.blog-content .border-b { border-bottom-width: 1px; }
.blog-content .border-l-4 { border-left-width: 4px; }

/* Border colors */
.blog-content .border-gray-200 { border-color: #e5e7eb; }
.blog-content .border-gray-800 { border-color: #1f2937; }
.blog-content .border-slate-200 { border-color: #e2e8f0; }
.blog-content .border-slate-400 { border-color: #94a3b8; }
.blog-content .border-amber-200 { border-color: #fde68a; }
.blog-content .border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.blog-content .border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

/* Shadow */
.blog-content .shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.blog-content .shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.blog-content .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.blog-content .shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* Position */
.blog-content .relative { position: relative; }
.blog-content .absolute { position: absolute; }
.blog-content .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.blog-content .top-0 { top: 0; }
.blog-content .right-0 { right: 0; }
.blog-content .bottom-0 { bottom: 0; }
.blog-content .left-0 { left: 0; }
.blog-content .-left-3 { left: -0.75rem; }
.blog-content .-top-3 { top: -0.75rem; }

/* Z-index */
.blog-content .z-10 { z-index: 10; }

/* Overflow */
.blog-content .overflow-hidden { overflow: hidden; }
.blog-content .overflow-auto { overflow: auto; }
.blog-content .overflow-x-auto { overflow-x: auto; }

/* Object fit */
.blog-content .object-cover { object-fit: cover; }
.blog-content .object-contain { object-fit: contain; }

/* Aspect ratio */
.blog-content .aspect-video { aspect-ratio: 16 / 9; }
.blog-content .aspect-square { aspect-ratio: 1 / 1; }

/* Backdrop */
.blog-content .backdrop-blur { backdrop-filter: blur(8px); }

/* Transform */
.blog-content .transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)); }

/* Transitions */
.blog-content .transition { transition-property: all; transition-duration: 150ms; }
.blog-content .transition-all { transition-property: all; transition-duration: 150ms; }
.blog-content .transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.blog-content .duration-300 { transition-duration: 300ms; }

/* Hover states */
.blog-content .hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.blog-content .hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.blog-content .hover\:scale-105:hover { transform: scale(1.05); }

/* Space between children */
.blog-content .space-y-2 > * + * { margin-top: 0.5rem; }
.blog-content .space-y-4 > * + * { margin-top: 1rem; }
.blog-content .space-y-6 > * + * { margin-top: 1.5rem; }
.blog-content .space-x-2 > * + * { margin-left: 0.5rem; }
.blog-content .space-x-4 > * + * { margin-left: 1rem; }

/* Line clamp */
.blog-content .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-content .line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

@media (min-width: 768px) {
  .blog-content .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-content .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-content .md\:flex-row { flex-direction: row; }
  .blog-content .md\:text-lg { font-size: 1.125rem; }
  .blog-content .md\:text-xl { font-size: 1.25rem; }
  .blog-content .md\:p-6 { padding: 1.5rem; }
}

@media (min-width: 1024px) {
  .blog-content .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-content .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================
   Dark Mode
   Vezano za `.dark` sa <html> (next-themes), ne za klasu na kontejneru — raniji
   `.blog-content.prose-invert` selektor nikad nije matchovao jer markup nosi
   Tailwind-ov `dark:prose-invert`, pa je cijeli blok bio mrtav (kontrast 1.8:1).
   Boje idu na tokene iz globals.css; `cleanHtmlContent` uz to skida svijetlo
   fiksirane utility klase iz API HTML-a, pa je ovo pojas i tregeri.
   ============================================ */

/* ── 1. TEKST ─────────────────────────────────────────────────────────
   Wildcard: svaki element unutar `.blog-content` u tamnoj temi dobija tokene.
   Hvata i klase koje bi eventualno prošle filter (text-slate-700, text-gray-900…)
   i inline stilove, jer `!important` pobjeđuje specifičnije autorske klase.     */

.dark .blog-content,
.dark .blog-content * {
  color: var(--ink-mid) !important;
}

/* Headings and bold text: brighter */
.dark .blog-content h1,
.dark .blog-content h2,
.dark .blog-content h3,
.dark .blog-content h4,
.dark .blog-content h5,
.dark .blog-content h6,
.dark .blog-content strong,
.dark .blog-content b,
.dark .blog-content h1 *,
.dark .blog-content h2 *,
.dark .blog-content h3 *,
.dark .blog-content h4 *,
.dark .blog-content h5 *,
.dark .blog-content h6 *,
.dark .blog-content strong *,
.dark .blog-content b * {
  color: var(--ink) !important;
}

/* ── 2. FORCE ALL LIGHT BACKGROUNDS DARK ──────────────────────────────
   Catches ANY element with a light bg class — not just divs.               */

/* Exact Tailwind classes */
.dark .blog-content .bg-white,
.dark .blog-content .bg-slate-50,
.dark .blog-content .bg-slate-100,
.dark .blog-content .bg-slate-200,
.dark .blog-content .bg-gray-50,
.dark .blog-content .bg-gray-100,
.dark .blog-content .bg-gray-200,
.dark .blog-content .bg-blue-50,
.dark .blog-content .bg-green-50,
.dark .blog-content .bg-emerald-50,
.dark .blog-content .bg-amber-50,
.dark .blog-content .bg-orange-50,
.dark .blog-content .bg-red-50,
.dark .blog-content .bg-yellow-50,
.dark .blog-content .bg-purple-50,
.dark .blog-content .bg-indigo-50,
.dark .blog-content .bg-pink-50,
.dark .blog-content .bg-teal-50,
.dark .blog-content .bg-cyan-50 {
  background-color: var(--surface-raised) !important;
}

/* Wildcard attribute selectors — catches any element, not just divs */
.dark .blog-content [class*="bg-white"],
.dark .blog-content [class*="bg-slate-5"],
.dark .blog-content [class*="bg-slate-1"],
.dark .blog-content [class*="bg-slate-2"],
.dark .blog-content [class*="bg-gray-5"],
.dark .blog-content [class*="bg-gray-1"],
.dark .blog-content [class*="bg-gray-2"] {
  background-color: var(--surface-raised) !important;
}

/* Color-50 wildcards (amber-50, blue-50, etc.) */
.dark .blog-content [class*="bg-blue-5"],
.dark .blog-content [class*="bg-green-5"],
.dark .blog-content [class*="bg-emerald-5"],
.dark .blog-content [class*="bg-amber-5"],
.dark .blog-content [class*="bg-orange-5"],
.dark .blog-content [class*="bg-red-5"],
.dark .blog-content [class*="bg-yellow-5"],
.dark .blog-content [class*="bg-purple-5"],
.dark .blog-content [class*="bg-indigo-5"],
.dark .blog-content [class*="bg-pink-5"],
.dark .blog-content [class*="bg-teal-5"],
.dark .blog-content [class*="bg-cyan-5"] {
  background-color: var(--surface-raised) !important;
}

/* Inline style backgrounds (light hex/rgb values) */
.dark .blog-content [style*="background-color: #f"],
.dark .blog-content [style*="background-color: #e"],
.dark .blog-content [style*="background-color: #d"],
.dark .blog-content [style*="background-color: rgb(2"],
.dark .blog-content [style*="background: #f"],
.dark .blog-content [style*="background: #e"],
.dark .blog-content [style*="background: rgb(2"] {
  background-color: var(--surface-raised) !important;
}

/* Hover states — kill light hovers */
.dark .blog-content [class*="hover\:bg-slate"]:hover,
.dark .blog-content [class*="hover\:bg-gray"]:hover,
.dark .blog-content [class*="hover\:bg-white"]:hover,
.dark .blog-content tr:hover {
  background-color: var(--surface-sunken) !important;
}

/* ── 3. TABLES — complete dark mode ───────────────────────────────── */
.dark .blog-content table {
  border-color: var(--line) !important;
  background-color: transparent !important;
}
.dark .blog-content thead,
.dark .blog-content thead th {
  background-color: var(--surface-raised) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
.dark .blog-content tbody {
  background-color: transparent !important;
}
.dark .blog-content td {
  border-color: var(--line) !important;
  background-color: transparent !important;
}
.dark .blog-content tr:nth-child(even) td {
  background-color: var(--surface-sunken) !important;
}
/* Override divide-slate-200 etc. on tbody */
.dark .blog-content [class*="divide-"] > * + * {
  border-color: var(--line) !important;
}

/* ── 4. BORDERS — all light borders become subtle dark ones ────────── */
.dark .blog-content [class*="border-slate"],
.dark .blog-content [class*="border-gray"],
.dark .blog-content [class*="border-white"] {
  border-color: var(--line) !important;
}

/* ── 5. PRESERVE INTENTIONAL ACCENT COLORS ────────────────────────────
   These must come AFTER the wildcard * rule to override it.
   Using higher specificity: element + class.                              */

/* Green (checkmarks, positive indicators) */
.dark .blog-content span[class*="text-green"],
.dark .blog-content td[class*="text-green"],
.dark .blog-content li[class*="text-green"],
.dark .blog-content p[class*="text-green"],
.dark .blog-content div[class*="text-green"],
.dark .blog-content [class*="text-emerald"] {
  color: #4ade80 !important;
}

/* Red / Rose (warnings, negative indicators) */
.dark .blog-content span[class*="text-red"],
.dark .blog-content td[class*="text-red"],
.dark .blog-content [class*="text-rose"] {
  color: #fb7185 !important;
}

/* Blue */
.dark .blog-content span[class*="text-blue"],
.dark .blog-content td[class*="text-blue"],
.dark .blog-content p[class*="text-blue"],
.dark .blog-content div[class*="text-blue"] {
  color: #60a5fa !important;
}

/* Orange */
.dark .blog-content span[class*="text-orange"],
.dark .blog-content td[class*="text-orange"],
.dark .blog-content [class*="text-orange"] {
  color: #fb923c !important;
}

/* Amber (percentages, highlights) */
.dark .blog-content span[class*="text-amber"],
.dark .blog-content td[class*="text-amber"],
.dark .blog-content p[class*="text-amber"],
.dark .blog-content div[class*="text-amber"] {
  color: #fbbf24 !important;
}

/* Yellow */
.dark .blog-content [class*="text-yellow"] {
  color: #facc15 !important;
}

/* Cyan */
.dark .blog-content [class*="text-cyan"] {
  color: #22d3ee !important;
}

/* Purple */
.dark .blog-content [class*="text-purple"] {
  color: #a78bfa !important;
}

/* Pink */
.dark .blog-content [class*="text-pink"] {
  color: #f472b6 !important;
}

/* Teal */
.dark .blog-content [class*="text-teal"] {
  color: #2dd4bf !important;
}

/* Indigo */
.dark .blog-content [class*="text-indigo"] {
  color: #818cf8 !important;
}

/* White text — keep it white (used in dark gradient sections) */
.dark .blog-content .text-white,
.dark .blog-content [class*="text-white"] {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ── 6. GRADIENTS — amber/fun-fact boxes ─────────────────────────── */
.dark .blog-content .from-amber-50,
.dark .blog-content [class*="from-amber-5"] {
  --tw-gradient-from: rgba(245, 158, 11, 0.12) !important;
}
.dark .blog-content .to-orange-50,
.dark .blog-content [class*="to-orange-5"] {
  --tw-gradient-to: rgba(249, 115, 22, 0.08) !important;
}
.dark .blog-content .border-amber-200,
.dark .blog-content [class*="border-amber"] {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

/* ── 7. BLOCKQUOTES ──────────────────────────────────────────────── */
.dark .blog-content blockquote {
  background-color: var(--surface-raised) !important;
  border-left-color: var(--brand) !important;
}
.dark .blog-content blockquote *,
.dark .blog-content blockquote p,
.dark .blog-content blockquote em,
.dark .blog-content blockquote cite {
  color: var(--ink-mid) !important;
}

/* ── 8. CODE BLOCKS ──────────────────────────────────────────────── */
.dark .blog-content code {
  background-color: var(--surface-raised) !important;
  color: var(--ink) !important;
}
.dark .blog-content pre {
  background-color: #0f1219 !important;
}
.dark .blog-content pre code {
  background-color: transparent !important;
  color: #e6edf3 !important;
}

/* ── 9. LINKS ────────────────────────────────────────────────────── */
.dark .blog-content a {
  color: var(--brand) !important;
}

/* ── 10. HR ──────────────────────────────────────────────────────── */
.dark .blog-content hr {
  border-color: var(--line) !important;
}

/* ── 11. SHADOWS — subtle in dark mode ───────────────────────────── */
.dark .blog-content [class*="shadow"] {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}
