/**
 * PromptVerse - Custom Editorial Styles, Natural Image Display & Complete Dark Mode Theme
 * Loaded alongside local compiled tailwind.css
 */

:root {
  --pv-accent: #4f46e5;
  --pv-accent-hover: #4338ca;
}

/* Smooth custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

html.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* Rich prose formatting for static pages, blog posts & SEO content blocks */
.pv-prose h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.pv-prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.pv-prose p {
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.pv-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #475569;
  margin-bottom: 1rem;
}
.pv-prose li {
  margin-bottom: 0.375rem;
}
.pv-prose a {
  color: #4f46e5;
  text-decoration: underline;
}
.pv-prose code {
  background: #f1f5f9;
  color: #4338ca;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  font-size: 0.875em;
}

/* Line clamp utilities */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* =========================================================================
 * COMPLETE DARK MODE THEME (`html.dark`)
 * Automatically adapts backgrounds, cards, headers, borders, inputs & text
 * ========================================================================= */
html.dark body {
  background-color: #0b0f19 !important;
  color: #f1f5f9 !important;
}

html.dark .pv-site-header,
html.dark header.sticky,
html.dark footer {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-color: #1e293b !important;
}

html.dark .bg-white,
html.dark .bg-white\/95 {
  background-color: #111827 !important;
  color: #f1f5f9;
}

html.dark .bg-slate-50,
html.dark .bg-slate-50\/60,
html.dark .bg-slate-50\/80,
html.dark .bg-slate-100,
html.dark .bg-slate-100\/70,
html.dark .bg-slate-100\/80,
html.dark .bg-slate-100\/90 {
  background-color: #1e293b !important;
}

html.dark .from-indigo-50\/70 {
  --tw-gradient-from: rgba(30, 27, 75, 0.55) !important;
  --tw-gradient-stops: var(--tw-gradient-from), #0b0f19, #0b0f19 !important;
}

html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-200\/70,
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/90,
html.dark .border-slate-300 {
  border-color: #334155 !important;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #1e293b !important;
}

html.dark .text-slate-900,
html.dark .text-slate-800 {
  color: #f8fafc !important;
}

html.dark .text-slate-700,
html.dark .text-slate-600 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-500,
html.dark .text-slate-400 {
  color: #94a3b8 !important;
}

html.dark .text-indigo-600,
html.dark .text-indigo-700 {
  color: #818cf8 !important;
}

html.dark .bg-indigo-50,
html.dark .bg-indigo-50\/70,
html.dark .bg-indigo-50\/80 {
  background-color: rgba(79, 70, 229, 0.2) !important;
}

html.dark input:not([type="checkbox"]):not([type="file"]),
html.dark select,
html.dark textarea {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

html.dark .pv-prose h2,
html.dark .pv-prose h3 {
  color: #f8fafc !important;
}

html.dark .pv-prose p,
html.dark .pv-prose ul {
  color: #cbd5e1 !important;
}

html.dark .pv-prose a {
  color: #818cf8 !important;
}

html.dark .pv-prose code {
  background-color: #1e293b !important;
  color: #a5b4fc !important;
}
