/* 
 This CSS file is used to override the existing styles of the theme.
 You can change the article headings, fonts, colors, etc.
*/

/* Override logo size */
/* header nav img {
    height: 24px !important;
    width: auto !important;
} */

/* Mobile Menu Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#overlay.open {
    opacity: 1;
    visibility: visible;
}

#overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#overlay li {
    margin: 1.5rem 0;
}

#overlay a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity 0.2s ease;
}

#overlay a:hover {
    opacity: 0.7;
}

/* Blog post images */
.content img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
}

/* Blog content styling */
.content {
  color: #374151;
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Headings */
.content h1 {
  color: #111827;
  font-weight: 800;
  font-size: 2.25em;
  margin-top: 0;
  margin-bottom: 0.8888889em;
  line-height: 1.1111111;
}

.content h2 {
  color: #111827;
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3333333;
}

.content h3 {
  color: #111827;
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

/* Paragraphs and text */
.content p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

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

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

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

/* Lists */
.content ul, .content ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Blockquotes */
.content blockquote {
  font-weight: 500;
  font-style: italic;
  color: #111827;
  border-left: 4px solid #e5e7eb;
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
}

.content blockquote p:first-of-type::before {
  content: open-quote;
}

.content blockquote p:last-of-type::after {
  content: close-quote;
}

/* Code blocks */
.content pre {
  background-color: #1f2937;
  border-radius: 0.375rem;
  padding: 1em;
  margin: 1.5em 0;
  overflow-x: auto;
}

.content pre code {
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  line-height: 1.5;
}

/* Inline code */
.content code:not(pre code) {
  color: #111827;
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 600;
}

/* Tables */
.content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.875em;
}

.content thead {
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.content th {
  font-weight: 600;
  text-align: left;
  padding: 0.75em;
  color: #111827;
}

.content td {
  padding: 0.75em;
  border-bottom: 1px solid #e5e7eb;
}

/* Images and figures */
.content figure {
  margin: 1.5em 0;
}

.content figure > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Horizontal rule */
.content hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}

/* Syntax highlighting overrides */
.content pre .chroma {
  background-color: transparent !important;
}

.content pre .chroma .lnt {
  display: none !important;
}

.content pre .chroma .ln {
  display: none !important;
}

.content pre table {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.content pre table td {
  padding: 0.1em 0 !important;
  border: none !important;
}

.content pre table tr {
  border: none !important;
}

/* Syntax highlighting colors */
.content pre .chroma .k { color: #93c5fd !important; }  /* Keywords */
.content pre .chroma .n { color: #e5e7eb !important; }  /* Names */
.content pre .chroma .s { color: #86efac !important; }  /* Strings */
.content pre .chroma .c1 { color: #9ca3af !important; } /* Comments */

.content h2 code {
  font-size: 0.875em;
}

.content h3 code {
  font-size: 0.9em;
}

.content ul > li > *:first-child {
  margin-top: 1.25em;
}

.content ul > li > *:last-child {
  margin-bottom: 1.25em;
}

.content ol > li > *:first-child {
  margin-top: 1.25em;
}

.content ol > li > *:last-child {
  margin-bottom: 1.25em;
}

.content ul ul, .content ul ol, .content ol ul, .content ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.content hr + * {
  margin-top: 0;
}

.content h2 + * {
  margin-top: 0;
}

.content h3 + * {
  margin-top: 0;
}

.content h4 + * {
  margin-top: 0;
}

.content h6 + * {
  margin-top: 0;
}

.content thead th:first-child {
  padding-left: 0;
}

.content thead th:last-child {
  padding-right: 0;
}

.content tbody td:first-child {
  padding-left: 0;
}

.content tbody td:last-child {
  padding-right: 0;
}

/* Code block overrides */
.prose pre {
  background-color: #1f2937 !important;
  padding: 1em !important;
}

.prose pre code {
  color: #e5e7eb !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.875em !important;
  line-height: 1.5 !important;
}

/* Remove line numbers */
.prose pre .chroma .lnt,
.prose pre .chroma .ln {
  display: none !important;
}

/* Syntax highlighting colors */
.prose pre .chroma .k { color: #93c5fd !important; }  /* Keywords */
.prose pre .chroma .n { color: #e5e7eb !important; }  /* Names */
.prose pre .chroma .s { color: #86efac !important; }  /* Strings */
.prose pre .chroma .c1 { color: #9ca3af !important; } /* Comments */

/* Remove table borders in code blocks */
.prose pre table {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.prose pre table td {
  padding: 0.1em 0 !important;
  border: none !important;
}

.prose pre table tr {
  border: none !important;
}
