/* ============================================
   MINIMAL THEME
   Matching adamj.eu styling
   ============================================ */

:root {
    --color-bg: #ffffff;
    --color-header-bg: linear-gradient(to right, #6B5B95, #5F4B8B);
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-link: #5F4B8B;
    --color-link-hover: #6B5B95;
    --color-border: #dee2e6;
    --font-body: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 720px;
    --line-height: 1.6;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header - purple-blue with white text */
.header {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.header .container {
    background: var(--color-header-bg);
    padding: 0.75rem 1rem;
    text-align: left;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: underline;
    display: block;
    margin-bottom: 0.35rem;
}

.site-title:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Navigation - pipe separated with white text */
.nav {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.nav a {
    color: #ffffff;
    text-decoration: underline;
}

.nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main {
    flex: 1;
}

/* Typography - matching adamj.eu */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.5rem; }
h3 { font-size: 1.25rem; margin-top: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Lists */
ul, ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Article List */
.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    gap: 1rem;
}

.article-list a {
    color: var(--color-link);
}

.article-list .date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.no-articles {
    color: var(--color-text-muted);
    font-style: italic;
}

/* Home section */
.home h1 {
    margin-bottom: 1rem;
}

/* Post/Article */
.post-header {
    margin-bottom: 1.5rem;
}

.post-header h1 {
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.post-meta a {
    color: var(--color-link);
}

.post-content {
    font-size: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.post-footer {
    margin-top: 2rem;
    padding-top: 1rem;
}

.post-footer a {
    color: var(--color-link);
}

/* Page Content */
.page-content h1:first-child {
    margin-bottom: 1rem;
}

/* Code */
code {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: #d63384;
    word-wrap: break-word;
}

pre {
    display: block;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
    color: var(--color-text);
    background-color: #f8f9fa;
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    border-radius: 0.25rem;
}

pre code {
    font-size: inherit;
    color: inherit;
    word-break: normal;
}

/* Blockquote */
blockquote {
    margin: 0 0 1rem;
    padding: 0.5rem 1rem;
    border-left: 0.25rem solid var(--color-border);
    color: var(--color-text-muted);
}

/* Horizontal Rule - like adamj.eu uses ____ */
hr {
    margin: 1.5rem 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

th, td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-weight: 600;
}

/* Tags & Categories */
.tags, .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags a, .categories a {
    color: var(--color-link);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.9rem;
}

.pagination span {
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.footer hr {
    margin-bottom: 1rem;
}

.social {
    text-align: center;
    font-size: 0.9rem;
}

.social a {
    color: var(--color-link);
}

/* Responsive */
@media (max-width: 576px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .nav {
        font-size: 0.9rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .article-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
}

/* Syntax Highlighting - GitHub style */
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #6a737d } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #d73a49 } /* Keyword */
.highlight .o { color: #d73a49 } /* Operator */
.highlight .cm { color: #6a737d } /* Comment.Multiline */
.highlight .cp { color: #d73a49 } /* Comment.Preproc */
.highlight .c1 { color: #6a737d } /* Comment.Single */
.highlight .cs { color: #6a737d } /* Comment.Special */
.highlight .gd { color: #b31d28; background-color: #ffeef0 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #22863a; background-color: #f0fff4 } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #6f42c1; font-weight: bold } /* Generic.Subheading */
.highlight .kc { color: #005cc5 } /* Keyword.Constant */
.highlight .kd { color: #d73a49 } /* Keyword.Declaration */
.highlight .kn { color: #d73a49 } /* Keyword.Namespace */
.highlight .kp { color: #d73a49 } /* Keyword.Pseudo */
.highlight .kr { color: #d73a49 } /* Keyword.Reserved */
.highlight .kt { color: #6f42c1 } /* Keyword.Type */
.highlight .m { color: #005cc5 } /* Literal.Number */
.highlight .s { color: #032f62 } /* Literal.String */
.highlight .na { color: #6f42c1 } /* Name.Attribute */
.highlight .nb { color: #005cc5 } /* Name.Builtin */
.highlight .nc { color: #6f42c1 } /* Name.Class */
.highlight .no { color: #005cc5 } /* Name.Constant */
.highlight .nd { color: #6f42c1 } /* Name.Decorator */
.highlight .ni { color: #22863a } /* Name.Entity */
.highlight .ne { color: #d73a49 } /* Name.Exception */
.highlight .nf { color: #6f42c1 } /* Name.Function */
.highlight .nl { color: #6f42c1 } /* Name.Label */
.highlight .nn { color: #6f42c1 } /* Name.Namespace */
.highlight .nt { color: #22863a } /* Name.Tag */
.highlight .nv { color: #e36209 } /* Name.Variable */
.highlight .ow { color: #d73a49 } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #005cc5 } /* Literal.Number.Float */
.highlight .mh { color: #005cc5 } /* Literal.Number.Hex */
.highlight .mi { color: #005cc5 } /* Literal.Number.Integer */
.highlight .mo { color: #005cc5 } /* Literal.Number.Oct */
.highlight .sb { color: #032f62 } /* Literal.String.Backtick */
.highlight .sc { color: #032f62 } /* Literal.String.Char */
.highlight .sd { color: #032f62 } /* Literal.String.Doc */
.highlight .s2 { color: #032f62 } /* Literal.String.Double */
.highlight .se { color: #032f62 } /* Literal.String.Escape */
.highlight .sh { color: #032f62 } /* Literal.String.Heredoc */
.highlight .si { color: #005cc5 } /* Literal.String.Interpol */
.highlight .sx { color: #032f62 } /* Literal.String.Other */
.highlight .sr { color: #032f62 } /* Literal.String.Regex */
.highlight .s1 { color: #032f62 } /* Literal.String.Single */
.highlight .ss { color: #005cc5 } /* Literal.String.Symbol */
.highlight .bp { color: #005cc5 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #e36209 } /* Name.Variable.Class */
.highlight .vg { color: #e36209 } /* Name.Variable.Global */
.highlight .vi { color: #e36209 } /* Name.Variable.Instance */
.highlight .il { color: #005cc5 } /* Literal.Number.Integer.Long */

/* Resume Image Styles */
.page-content img[alt="My Resume"] {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
