@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap");

* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #252526;
    --bg-tertiary: #2d2d30;
    --text-primary: #d4d4d4;
    --text-secondary: #969696;
    --text-muted: #6a6a6a;
    --accent-blue: #569cd6;
    --accent-yellow: #dcdcaa;
    --accent-green: #4ec9b0;
    --accent-red: #f44747;
    --accent-orange: #ce9178;
    --accent-purple: #c586c0;
    --border-color: #464647;
    --cursor-color: #aeafad;
    --hover-bg: #2a2d2e;
}

body {
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.terminal-container {
    min-height: 100vh;
    background-color: var(--bg-primary);
    position: relative;
}

.upper-header {
    background-color: var(--bg-secondary);
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top:0;
    z-index: 1000;
    justify-content: space-around;
}

.nav-bar {
    background-color: var(--bg-tertiary);
    padding: 0px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width:800px) {
    .nav-bar {
        display: none;
    }
}

.terminal-header-left {
    display: flex;
    flex:1;
    align-items: center;
}

@media only screen and (max-width:800px) {
    .terminal-header-left {
        display: none;
    }
}

.terminal-header-right {
    flex:1;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.btn-closed {background-color: #ff5f57;}
.btn-minimize {background-color: #ffbd2e;}
.btn-maximize {background-color: #28ca42;}

.terminal-title {
    color: var(--text-secondary);
    font-size: 16px;
    margin-left: 16px;
}

#searchsubmit {
    display:none;
}

/* Search Box Input element */
#s {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2px 20px;
    color: var(--accent-blue);
    padding-left: 30px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23999" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M9.5 3a6.5 6.5 0 014.52 11.17l4.86 4.86-1.42 1.42-4.86-4.86A6.5 6.5 0 119.5 3zm0 2a4.5 4.5 0 100 9 4.5 4.5 0 000-9z"/></svg>') no-repeat left 8px center;
    background-size: 16px 16px;
}

#s::placeholder {
    color: var(--text-muted);
}

@media only screen and (max-width:800px) {
    #s {
        max-width: 200px;
    }
}


.terminal-nav-items {
    margin: 0;
    list-style: none;
    display:flex;
    padding: 0px 8px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.terminal-nav-items > li > a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 12px 24px;
}

.terminal-nav-items > li > a:hover {
    text-decoration: none;
    color: var(--text-primary)
}


.current_page_item {
    text-decoration: none;
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    border-bottom: 2px solid;
}

.current_page_item > a {
    color: var(--accent-blue) !important;
}

.terminal-nav-items > li {
    position: relative;
    padding: 12px 24px;
}






.main-content {
    display: flex;
    min-height: calc(100vh - 97px);
}





.sidebar {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding:20px;
    overflow-y: auto;
}

@media only screen and (max-width:800px) {
    .sidebar {
        display: none;
    }
}

.sidebar-item {
    padding-bottom: 35px;
}

.sidebar-title {
    color: var(--accent-yellow);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag {
    background-color: var(--bg-primary);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

a.tag-link {
    text-decoration: none;
}

.post-tag:hover {
    background-color: var(--accent-purple);
    color: #fff;
}

.post-tag {
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent_post {
    color: var(--accent-blue);
    text-decoration: none;
    display: block;
}

.recent_post_date {
    color: var(--text-muted);
    font-size: 14px;
}

.page-content {
    padding: 30px 50px;
}

@media only screen and (max-width: 1000px) {
    .page-content {
        padding: 30px 20px;
    }
}




.blog-post-full {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 24px;
    margin-top: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.post-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-title {
    color: var(--accent-yellow);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    cursor: pointer;
}

.post-header > a {
    text-decoration: none !important;
}

.post-title:hover {
    color: var(--accent-blue);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-tag {
    background-color: var(--bg-primary);
    color: var(--accent-purple);
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.post-content {
    padding: 20px;
}

.post-excerpt {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

@media only screen and (max-width: 1000px) {
    .post-thumbnail {
        display: none;
    }
}

.read-more {
    background: none;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more:hover {
    background-color: var(--accent-blue);
    color: var(--bg-primary);
}

.post-stats {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.return-home {
    text-decoration: none;
    color: var(--accent-blue);

}

.pfp {
    border-radius: 50%;
    height: 200px;
    width: 200px;
    margin: 15px 0px;
    background-image: url("../assets/serious.jpeg");
    background-position: center;
    background-repeat: no-repeat;
}

.pfp:hover {
    outline: 2px solid var(--accent-blue);
    background-image: url("../assets/Mlem.jpeg");
    transition: all 0.3s;
    transform: translateY(-2px);
}



.main-site-content {
    display: flex;
    justify-content: center;
    gap:30px;
}

@media only screen and (max-width:1200px) {
    .main-site-content {
        flex-direction: column;
    }
}

/* Buy Me a Coffee */

.buy-coffee {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 300px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    justify-content: space-between;
}

@media only screen and (max-width:1200px) {
    .buy-coffee {
        width: 100%;
        justify-content: space-evenly;
    }
}

.buy-coffee > p {
    font-size: 14px;
    text-align: center;
    
}


.coffee-ascii {
    font-weight: 800;
    color: var(--accent-green)
}

.coffee-button {
    border: 1px solid var(--accent-green);
    padding:6px 12px;
    border-radius: 3px;
    color: var(--accent-green);
}


.coffee-button-a {
    text-decoration: none;
}

.coffee-button:hover {
    background-color: var(--accent-green);
    color: var(--bg-secondary);
    transition: all 0.3s ease;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pagination-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-numbers {
    text-decoration: none;
    color: var(--accent-blue);
    background-color: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid var(--border-color)
}

.page-numbers:hover {
    transition: all 0.3s ease;
    border: 1px solid var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--accent-blue);
    color: #fff;
}

.page-numbers.current {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
}



/* Single Pages */

.article-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    margin: 16px 0;
}

@media only screen and (max-width: 1200px) {
    .article-container {
        grid-template-columns: 1fr;
    }
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.article-meta > .information > .buy-coffee {
    height: 550px !important;
}

.meta-items, .article-content {
    background-color: var(--bg-secondary);
    padding: 16px;
}

.article-content {
    border-left: 3px solid var(--accent-blue)
}

.meta-items {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

@media only screen and (max-width: 1200px) {
    .meta-items {
        display: none;
    }
}

@media only screen and (min-width: 1201px) {
    .meta-items-mobile {
        display: none;
    }
}

.single-meta-item {
    display: flex;
    flex-direction: column;
    margin: 9px 0;
    font-size: 14px;
    align-items: left;
}

.meta-item-title, .meta-item-content {
    align-self: baseline;
    margin-bottom: 0;
}

.meta-item-title {
    color: var(--accent-orange);
}

.article-title {
    color: var(--accent-yellow)
}

h1.wp-block-heading {
    color: var(--accent-yellow);
    margin-bottom: 16px;
}

h2.wp-block-heading {
    color: var(--accent-blue);
    margin: 24px 0 12px 0;
}

h3.wp-block-heading {
    color: var(--accent-green);
    margin: 20px 0 8px 0;
}

.article-content p {
    margin:6px 0;
    line-height: 1.7;
}

.wp-block-list {
    margin: 12px 0;
}

.wp-block-list > li {
    margin: 4px 0;
    color: var(--text-secondary);
}

blockquote {
    border-left: 3px solid var(--accent-orange);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.wp-block-code {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    position: relative;
}




/* Hamburger Menu Styles - Add these to your existing CSS */

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 20px;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-overlay.active .mobile-nav-content {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.mobile-nav-title {
    color: var(--accent-yellow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-close {
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: var(--accent-red);
}

.mobile-navigation {
    padding: 0;
}

.mobile-nav-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-items li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-items li:last-child {
    border-bottom: none;
}

.mobile-nav-items li a {
    display: block;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-items li a:hover {
    color: var(--accent-blue);
    background-color: var(--hover-bg);
    padding-left: 24px;
}

.mobile-nav-items li.current_page_item a {
    color: var(--accent-blue);
    background-color: var(--bg-primary);
    border-left: 3px solid var(--accent-blue);
}

/* Prevent body scroll when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
}

/* Show hamburger menu on mobile */
@media only screen and (max-width: 800px) {
    .hamburger-menu {
        display: flex;
    }
}

/* Responsive adjustments */
@media only screen and (max-width: 480px) {
    .mobile-nav-content {
        width: 250px;
        right: -250px;
    }
    
    .upper-header {
        padding: 8px 12px;
    }
    
    #s {
        max-width: 200px;
    }

    
}

.terminal-header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}