/* Ported 1:1 from the Node client's src/index.css (Tailwind @apply expanded manually since this build has no Tailwind compiler). */
:root {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: #09090b;
  background-color: #fafafa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.dark { color: #f4f4f5; background-color: #09090b; }
body { margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; background-color: #fafafa; color: #09090b; transition: background-color 0.3s ease, color 0.3s ease; }
.dark body { background-color: #09090b; color: #f4f4f5; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.animate-shimmer { animation: shimmer 1.6s infinite ease-in-out; }

@keyframes pulseFade { 0%, 100% { opacity: 0.35; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.01); } }
.animate-pulse-fade { animation: pulseFade 3s infinite ease-in-out; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #3f3f46; }

/* Newsletter content styling (was Tailwind @apply) */
.newsletter-content h1 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin-bottom: 1rem; color: #1f2937; }
.dark .newsletter-content h1 { color: #f3f4f6; }
.newsletter-content h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; margin-bottom: .75rem; color: #1f2937; }
.dark .newsletter-content h2 { color: #f3f4f6; }
.newsletter-content h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; margin-bottom: .5rem; color: #1f2937; }
.dark .newsletter-content h3 { color: #f3f4f6; }
.newsletter-content p { margin-bottom: 1rem; line-height: 1.625; }
.newsletter-content ul { list-style-type: disc; list-style-position: inside; margin-bottom: 1rem; }
.newsletter-content ul > * + * { margin-top: .25rem; }
.newsletter-content ol { list-style-type: decimal; list-style-position: inside; margin-bottom: 1rem; }
.newsletter-content ol > * + * { margin-top: .25rem; }
.newsletter-content li { margin-left: .5rem; }
.newsletter-content a { color: #000; text-decoration: underline; font-weight: 600; }
.dark .newsletter-content a { color: #fff; }
.newsletter-content strong { font-weight: 600; color: #111827; }
.dark .newsletter-content strong { color: #fff; }

/* Blog content fixes */
.blog-content, .blog-content * { word-break: normal !important; overflow-wrap: break-word !important; white-space: normal !important; hyphens: none !important; }
.blog-content { unicode-bidi: plaintext; }
.blog-content a, .blog-content code { word-break: break-word !important; }

.blog-content h1 { font-size: 1.5rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .75rem; color: #18181b; }
.dark .blog-content h1 { color: #fff; }
@media (min-width: 640px) { .blog-content h1 { font-size: 1.875rem; } }
.blog-content h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: .625rem; color: #18181b; }
.dark .blog-content h2 { color: #fff; }
@media (min-width: 640px) { .blog-content h2 { font-size: 1.5rem; } }
.blog-content h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1rem; margin-bottom: .5rem; color: #18181b; }
.dark .blog-content h3 { color: #fff; }
@media (min-width: 640px) { .blog-content h3 { font-size: 1.25rem; } }
.blog-content p { margin-bottom: 1rem; line-height: 1.625; color: #3f3f46; }
.dark .blog-content p { color: #d4d4d8; }
.blog-content blockquote { border-left: 4px solid #f59e0b; padding-left: 1rem; padding-top: .25rem; padding-bottom: .25rem; font-style: italic; margin: 1rem 0; color: #52525b; background: rgba(255,251,235,.4); border-radius: 0 .5rem .5rem 0; }
.dark .blog-content blockquote { color: #a1a1aa; background: rgba(69,26,3,.2); }
.blog-content ul { list-style-type: disc; list-style-position: inside; margin-bottom: 1rem; color: #3f3f46; }
.dark .blog-content ul { color: #d4d4d8; }
.blog-content ol { list-style-type: decimal; list-style-position: inside; margin-bottom: 1rem; color: #3f3f46; }
.dark .blog-content ol { color: #d4d4d8; }
.blog-content ul > * + *, .blog-content ol > * + * { margin-top: .25rem; }
.blog-content li { margin-left: .5rem; }
.blog-content img { border-radius: 1rem; max-width: 100%; height: auto; }
.blog-content figure { margin-bottom: 1rem; text-align: center; }
.blog-content figure figcaption { font-size: 11px; color: #71717a; text-align: center; font-style: italic; margin-top: .5rem; font-weight: 500; }
.dark .blog-content figure figcaption { color: #a1a1aa; }
@media (min-width: 640px) { .blog-content figure figcaption { font-size: .75rem; } }

.blog-content .story-img, .ql-editor .story-img { display: block; text-align: center !important; transition: width .2s ease; max-width: 100% !important; }
.blog-content .story-img img, .ql-editor .story-img img { width: 100% !important; height: auto !important; display: block; margin-left: auto !important; margin-right: auto !important; }
.blog-content .story-img[data-width="25"], .ql-editor .story-img[data-width="25"] { width: 25% !important; }
.blog-content .story-img[data-width="33"], .ql-editor .story-img[data-width="33"] { width: 33.33% !important; }
.blog-content .story-img[data-width="50"], .ql-editor .story-img[data-width="50"] { width: 50% !important; }
.blog-content .story-img[data-width="75"], .ql-editor .story-img[data-width="75"] { width: 75% !important; }
.blog-content .story-img[data-width="100"], .ql-editor .story-img[data-width="100"] { width: 100% !important; }

.blog-content figcaption, .blog-content figure figcaption, .blog-content .story-img-caption,
.ql-editor figcaption, .ql-editor figure figcaption, .ql-editor .story-img-caption {
  display: block !important; width: fit-content !important; max-width: 90% !important; margin-left: auto !important; margin-right: auto !important;
  text-align: center !important; font-style: italic !important; font-size: .8125rem !important; line-height: 1.45 !important; font-weight: 500 !important;
  color: #52525b !important; margin-top: .625rem !important; padding: .35rem .85rem !important; border-bottom: 1px solid rgba(228,228,231,.9) !important;
  letter-spacing: .01em !important; background-color: rgba(244,244,245,.6) !important; border-radius: .5rem !important;
}
.dark .blog-content figcaption, .dark .blog-content figure figcaption, .dark .blog-content .story-img-caption,
.dark .ql-editor figcaption, .dark .ql-editor figure figcaption, .dark .ql-editor .story-img-caption {
  color: #a1a1aa !important; border-bottom-color: rgba(63,63,70,.8) !important; background-color: rgba(24,24,27,.6) !important;
}
.blog-content .story-img-left, .ql-editor .story-img-left { float: left; margin-right: 1.5rem; margin-bottom: 1rem; clear: left; text-align: center !important; }
.blog-content .story-img-right, .ql-editor .story-img-right { float: right; margin-left: 1.5rem; margin-bottom: 1rem; clear: right; text-align: center !important; }
.blog-content .story-img-center, .ql-editor .story-img-center { margin-left: auto; margin-right: auto; margin-top: 1.5rem; margin-bottom: 1.5rem; clear: both; text-align: center !important; }
.blog-content .story-img-banner, .ql-editor .story-img-banner { width: 100% !important; max-width: 100% !important; margin-top: 1.5rem; margin-bottom: 1.5rem; clear: both; text-align: center !important; }
.ql-editor img { cursor: pointer; transition: all .15s ease; }
.ql-editor img:hover { filter: brightness(.97); box-shadow: 0 0 0 2px rgba(245,158,11,.4); }
.ql-editor figure.selected-figure img, .ql-editor img.selected-image { outline: 3px solid #f59e0b !important; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(245,158,11,.3) !important; filter: brightness(1) !important; }
@media (max-width: 640px) {
  .blog-content .story-img-left, .blog-content .story-img-right, .ql-editor .story-img-left, .ql-editor .story-img-right {
    float: none !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; max-width: 100% !important;
  }
}
