@import url("base.css");

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-dark);
    color: var(--foreground);
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

/* Layout */
.container-wrapper {
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1024px;
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
    padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; color: var(--header-color); }
h2 { font-size: 2rem; color: var(--light-purple); }
h3 { font-size: 1.5rem; color: var(--blue); }
h4 { font-size: 1.25rem; color: var(--green); }
h5 { font-size: 1.125rem; color: var(--orange); }
h6 { font-size: 1rem; color: var(--light-gray); }

p {
    margin-bottom: 1rem;
    color: var(--foreground);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--light-blue);
}

code {
    font-family: 'JetBrains Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875rem;
    background-color: var(--steel-gray);
    color: var(--green);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

pre {
    background-color: var(--charcoal);
    border: 1px solid var(--steel-gray);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
    color: var(--foreground);
}

blockquote {
    border-left: 4px solid var(--purple);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--light-gray);
    font-style: italic;
}

.page-border {
    border-top: 6px solid var(--purple);
    border-bottom: 6px solid var(--purple-fade);
    height: 6px;
    width: 100%;
}

/* Header */
.header {
    padding: 0.5rem 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--pink);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--light-gray);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

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

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--light-gray);
    font-size: 0.875rem;
    margin: 0;
}

.footer-text a {
    color: var(--blue);
}

.footer-text a:hover {
    color: var(--light-blue);
}

/* Home page */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--header-color), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--light-gray);
    margin: 0;
}

.section-title {
    margin-bottom: 2rem;
    color: var(--light-purple);
    border-bottom: 2px solid var(--steel-gray);
    padding-bottom: 0.5rem;
}


/* Journal entries */

.journal-entries {
    margin-bottom: 2rem;
}

.entry-preview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
}

.entry-preview-header {
    display: flex;
    align-items: center;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-date {
    color: var(--light-gray);
    font-family: 'JetBrains Mono', monospace;
    margin-right: 0.5rem;
}

.entry-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--steel-gray);
    color: var(--green);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.entry-title {
    margin: 0;
}

.entry-title a {
    color: var(--header-color);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--pink);
}

.entry-summary {
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.read-time {
    color: var(--light-gray);
    font-family: 'JetBrains Mono', monospace;
}

.read-more {
    color: var(--blue);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--blue);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    background-color: var(--blue);
    color: var(--charcoal);
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
    color: var(--light-gray);
}

/* Single post */
.post {
    max-width: 100%;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--steel-gray);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--light-gray);
    font-size: 0.875rem;
}

.post-date,
.post-reading-time {
    font-family: 'JetBrains Mono', monospace;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-content {
    margin-bottom: 3rem;
    line-height: 1.7;
}

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

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.25rem;
}

.post-footer {
    border-top: 1px solid var(--steel-gray);
    padding-top: 2rem;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.875rem;
    color: var(--light-gray);
    font-weight: 500;
}

.post-nav-link {
    color: var(--blue);
    font-weight: 500;
}

.post-nav-link:hover {
    color: var(--light-blue);
}

.post-actions {
    text-align: center;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--green);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.back-to-home:hover {
    background-color: var(--green);
    color: var(--charcoal);
}

/* Page template */
.page {
    max-width: 100%;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--steel-gray);
}

.page-summary {
    margin: 1rem 0;
    font-size: 1.25rem;
    color: var(--light-gray);
}

.page-title {
    margin-bottom: 0.5rem;
}

.page-meta {
    color: var(--light-gray);
    font-size: 0.875rem;
}

.page-date {
    font-family: 'JetBrains Mono', monospace;
}

.page-content {
    line-height: 1.7;
}

/* Responsive design */
@media (max-width: 768px) {

    .page-border {
        border: none;
    }

    .header-border {
        border-top: 6px solid var(--purple-fade);
        border-bottom: 6px solid var(--purple);
        height: 6px;
        width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header {
        padding-bottom: 4px;
    }

    .nav { display: none; }

    .nav-list {
        gap: 1rem;
    }

    .site-title a {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-nav-next {
        text-align: left;
    }

    .entry-preview {
        flex-direction: column;
    }

    .entry-meta {
        align-self: flex-start;
    }

    .tag {
        font-size: 0.6rem;
    }

    .entry-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}