/*
 *  _.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._.-=-._
 * |                                                                 |
 * |           MatedAiHub - News, Explained. Together.               |
 * |                                                                 |
 * |_________________________________________________________________|
 *
 * @Application: MatedAiHub
 * @Creator:    MatedAiDev (Jewel)
 * @E-mail:     matedaidev@gmail.com
 * @Website:    www.matedaihub.com
 * @copyright  (c) 2025 MatedAiHub. All rights reserved.
 *
 * For detailed documentation, please visit https://docs.matedaihub.com/
 */

[x-cloak] {
  display: none !important;
}

@keyframes highlight-and-fade {
  0% { background-color: hsla(var(--p)/.2); }
  100% { background-color: transparent; }
}
.highlight-new {
  animation: highlight-and-fade 3s ease-out;
}

@keyframes slide-in-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.new-comment-animate {
  animation: slide-in-fade 0.5s ease-out;
}

.auth-left-pane {
    color: hsl(var(--pc));
    background: linear-gradient(45deg, hsl(var(--p)), hsl(var(--a)));
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.auth-left-pane i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prose {
  color: hsl(var(--bc));
  line-height: 1.7;
  max-width: 100%;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: hsl(var(--bc));
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}
.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
}
.prose a {
  color: hsl(var(--p));
  text-decoration: none;
  font-weight: 500;
}
.prose a:hover {
  text-decoration: underline;
}
.prose strong {
  font-weight: 700;
  color: hsl(var(--bc));
}
.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-top: 0.5em; margin-bottom: 0.5em; }
.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1em;
  border-left: 4px solid hsl(var(--b3));
  font-style: italic;
  color: hsla(var(--bc) / 0.7);
}
.prose blockquote p {
    margin-bottom: 0;
}
.prose pre {
  background-color: hsl(var(--b2));
  color: hsl(var(--bc));
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.71;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
.prose code {
  background-color: hsla(var(--b3) / 0.7);
  padding: 0.1em 0.3em;
  border-radius: 0.25rem;
  font-weight: 600;
}
.prose code::before, .prose code::after {
  content: "";
}
.prose pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: normal;
}
.prose table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875rem;
    line-height: 1.71;
}
.prose thead {
    border-bottom: 2px solid hsl(var(--b3));
    color: hsl(var(--bc));
    font-weight: 600;
}
.prose tbody tr {
    border-bottom: 1px solid hsl(var(--b3));
}
.prose th, .prose td {
    padding: 0.5rem 1rem;
}

.prose-sm { font-size: 0.875rem; line-height: 1.5; }

html[data-theme="dark"] .editor-toolbar {
    background-color: hsl(var(--b3));
    border-color: hsl(var(--b3));
}

html[data-theme="dark"] .CodeMirror {
    background-color: hsl(var(--b2));
    color: hsl(var(--bc));
    border-color: hsl(var(--b3));
}

html[data-theme="dark"] .editor-toolbar button {
    color: hsl(var(--bc));
}

html[data-theme="dark"] .editor-toolbar button:hover,
html[data-theme="dark"] .editor-toolbar button.active {
    background: hsl(var(--b1));
    border-color: hsl(var(--n));
}

html[data-theme="dark"] .editor-toolbar i.separator {
    border-left-color: hsla(var(--bc), 0.2);
    border-right-color: hsla(var(--bc), 0.1);
}

html[data-theme="dark"] .editor-preview {
    background-color: hsl(var(--b1));
    border-color: hsl(var(--b3));
}