/* Custom CSS for PHP Static Site Generator */

html {
    overflow-y: scroll;
}

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f8f8f8;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.1) 0%, transparent 50%),
                linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333333;
    line-height: 1.4rem;
    max-width: 840px;
    margin: 0 auto;
    padding: 20px;
    font-size: 18px;
}

.text-xl {
    font-size: 1.5rem;
    line-height: 1.95rem;
    font-weight: 400;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.5rem;
    font-weight: 400;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-highlight {
    color: #4F46E5 !important;
    font-weight: 600 !important;
}

h1, h2, h3 {
    font-weight: bold;
    color: #222222;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5rem;
    line-height: 3.5rem;
}

h2 {
    font-size: 2rem;
    line-height: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 2rem;
}

p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.4;
    max-width: 70ch;
}

a {
    color: #4F46E5;
    text-decoration: underline;
}

a:hover {
    color: #4338CA;
}

img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 4px; 
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}


@media (max-width: 640px) {
    h1 {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }
    h2 {
        font-size: 1.5rem;
        line-height: 1.8rem;
    }
    h3 {
        font-size: 1.2rem;
        line-height: 1.5rem;
    }
}

blockquote {
    border-left: 4px solid #4F46E5;
    padding: 15px 25px 15px 15px;
    margin: 20px 0;
    background-color: white;
    border-radius: 4px;
    font-size: 1.15rem;
    /* font-weight: bold; */
    color: #222222;
}

header {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

nav {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav a.logo {
    font-weight: bold;
    font-size: 1.25rem;
    color: #111827;
    text-decoration: none;
    padding: 4px;
}

nav .links {
    display: flex;
    gap: 12px;
}

nav .links a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

nav .links a:hover {
    background-color: #f3f4f6;
}

nav .links a.active {
    background-color: #e5e7eb;
}

ul.article-list {
    margin-top: 32px;
    padding: 0;
    list-style: none;
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.6;
}

ul.article-list > li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

ul > li svg {
    margin-top: 4px;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    fill: #4F46E5;
}

ul > li span {
    display: block;
    color: #1F2937;
}

ul > li strong {
    font-weight: 600;
    color: #111827;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

footer {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

footer .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

footer .social-links {
    display: flex;
    gap: 1.5rem;
}

footer .social-links a {
    color: #4f46e5;
    transition: color 0.2s ease-in-out;
}

footer .social-links a:hover {
    color: #6366f1;
}

footer .social-links svg {
    width: 30px;
    height: 30px;
}

footer p {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 1.5rem;
}

footer p a {
    color: #6366f1;
    text-decoration: underline;
}

footer p a:hover {
    color: #4f46e5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.article-item {
    list-style: none;
    margin-bottom: 20px;
}

.article-link {
    width: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-panel {
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.article-panel:hover {
    background-color: #f3f4f6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.article-meta {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0;
    margin: 0;
}

.article-excerpt {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 15px;
    line-height: 1.5;
}

.mainContent h1 + p {
    font-size: 1.25rem;
    line-height: 1.65rem;
    font-weight: 400;
}

.mainContent ul {
    padding-right: 40px;
    font-size: 1rem;
}

.mainContent ul li,
.mainContent ol li {
    margin-bottom: 0.5rem;
}

.read-more {
    text-align: right;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: bold;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.read-more:hover {
    color: #1e40af;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    background-color: #282c34;
    color: #abb2bf;
    padding: 4px 6px;
    border: 1px solid #3c4048;
    border-radius: 4px;
    white-space: pre-wrap;
}

pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    background-color: #282c34;
    color: #abb2bf;
    padding: 16px;
    border: 1px solid #3c4048;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5em;
    line-height: 1.5;
}

pre code {
    display: block;
    background-color: transparent;
    padding: 0;
    border: none;
    color: inherit;
}

/* Utility classes */
.m-10 { margin: 10px; }
.m-20 { margin: 20px; }
.m-40 { margin: 40px; }
.m-100 { margin: 100px; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-100 { margin-top: 100px; }

.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 5px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-100 { margin-bottom: 100px; }

.ml-10 { margin-left: 10px; }
.ml-20 { margin-left: 20px; }
.ml-40 { margin-left: 40px; }
.ml-100 { margin-left: 100px; }

.mr-10 { margin-right: 10px; }
.mr-20 { margin-right: 20px; }
.mr-40 { margin-right: 40px; }
.mr-100 { margin-right: 100px; }

.mx-10 { margin-left: 10px; margin-right: 10px; }
.mx-20 { margin-left: 20px; margin-right: 20px; }
.mx-40 { margin-left: 40px; margin-right: 40px; }
.mx-100 { margin-left: 100px; margin-right: 100px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-10 { margin-top: 10px; margin-bottom: 10px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-40 { margin-top: 40px; margin-bottom: 40px; }
.my-100 { margin-top: 100px; margin-bottom: 100px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-40 { padding: 40px; }
.p-100 { padding: 100px; }

.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pt-100 { padding-top: 100px; }

.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }
.pb-100 { padding-bottom: 100px; }

.pl-10 { padding-left: 10px; }
.pl-20 { padding-left: 20px; }
.pl-40 { padding-left: 40px; }
.pl-100 { padding-left: 100px; }

.pr-10 { padding-right: 10px; }
.pr-20 { padding-right: 20px; }
.pr-40 { padding-right: 40px; }
.pr-100 { padding-right: 100px; }

.px-10 { padding-left: 10px; padding-right: 10px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-40 { padding-left: 40px; padding-right: 40px; }
.px-100 { padding-left: 100px; padding-right: 100px; }

.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-100 { padding-top: 100px; padding-bottom: 100px; }

@media (max-width: 640px) {
    nav {
        display: block;
        text-align: center;
    }
    nav .links {
        margin-top: 1rem;
        justify-content: center;
    }
}