/*Them Variables using Catpuccin mocha and latte*/
:root {
    --crust: #11111b; --mantle: #181825; --base: #1e1e2e;
    --surface1: #45475a; --mauve: #cba6f7; --sapphire: #74c7ec;
    --text: #cdd6f4; --subtext: #a6adc8;
}

body.light-theme {
    --crust: #dce0e8; --mantle: #e6e9ef; --base: #eff1f5;
    --surface1: #bcc0cc; --mauve: #8839ef; --sapphire: #209fb5;
    --text: #4c4f69; --subtext: #6c6f85;
}

/* Default setings of the website */
body {
    display: flex;
    justify-content: center;
    background-color: var(--crust);
    color: var(--text);
    font-family: monospace;
    margin: 0;
}
a {
    text-decoration: none; 
    color: var(--sapphire);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--mauve);
}
.main-container {
    position: relative; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    width: 85vw;
    max-width: 85vw;
    background-color: var(--mantle);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}
.main-container hr {
    margin: 0;
    border: none;
    border-top: 1px solid var(--mauve);
}
.main-container-header { font-size: 24px; font-weight: bold; }
.main-container-subheader { font-size: 18px; font-weight: bold; color: var(--subtext); }
.main-container-subheader p {
    font-size: 12px;
    color: var(--subtext);
    font-weight: bold;
}
.main-container-content {
    margin-top: 25px;
    font-size: 16px;
    text-align: left;
    overflow-wrap: break-word;
}
.main-container-footer {
    text-align: center;
    color: var(--surface1);
}
.github-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    display: block;
    color: var(--subtext);
    transition: color 0.2s ease, transform 0.2s ease;
}
.github-link svg {
    width: 100%;
    height: 100%;
    display: block;
}
.github-link:hover {
    color: var(--mauve);
    transform: scale(1.1);
}

/* Reusable components across the website */
.highlight { color: var(--mauve); font-weight: bold; }
.back-link {
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
    color: var(--sapphire);
}

/* Blog Achive List formatting */
.archive-list .month-header {
    color: var(--sapphire);
    border-bottom: 1px solid var(--surface1);
    padding-bottom: 5px;
    margin-top: 30px;
}
.archive-list ul {
    list-style: none;
    padding-left: 15px;
}
.archive-list li {
    margin-bottom: 10px;
}

/* Blog Post formatting Section */
.blog-post-body h1, .blog-post-body h2, .blog-post-body h3 {
    color: var(--mauve);
    margin-top: 1.5em;
}
.blog-post-body p {
    line-height: 1.6;
    margin-bottom: 1em;
}
.blog-post-body code {
    background-color: var(--base);
    color: var(--mauve);
    padding: 2px 6px;
    border-radius: 4px;
}
.blog-post-body pre {
    background-color: var(--base);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--surface1);
    overflow-x: auto;
}
.blog-post-body .post-divider {
    margin-top: 50px;
    border: 0;
    border-top: 1px solid var(--surface1);
}
/* Mobile Friendly Adjustments */
@media (max-width: 768px) {
    .main-container {
        width: 95vw;
        max-width: 95vw;
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }

    .main-container-header {
        font-size: 20px;
        margin-top: 15px;
    }
    .github-link {
        top: 10px;
        right: 10px;
        width: 20px;
        height: 20px;
    }
    .main-container-content {
        font-size: 15px;
    }
    .blog-post-body pre {
        padding: 10px;
        font-size: 13px;
    }
}