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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #000000;
    color: #00ff00;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Matrix-style scrolling background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, transparent 79px, #001100 81px),
        linear-gradient(#001100 1px, transparent 1px);
    background-size: 80px 20px;
    opacity: 0.05;
    z-index: -1;
}

a {
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #003300;
    padding: 1rem 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.nav-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

/* Main content */
.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Page title */
.page-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: #00ff00;
    border-bottom: 2px solid #003300;
    padding-bottom: 1rem;
}

/* Blog list */
.blog-list {
    list-style: none;
}

.blog-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 17, 0, 0.3);
    border-left: 3px solid #003300;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.blog-item:hover {
    border-left-color: #00ff00;
    background-color: rgba(0, 17, 0, 0.5);
}

.blog-item-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.blog-item-title a {
    color: #00ff00;
    text-decoration: none;
}

.blog-item-title a:hover {
    color: #ffffff;
}

.blog-item-meta {
    font-size: 0.85rem;
    color: #006600;
    margin-bottom: 1rem;
}

.blog-item-summary {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.7;
    opacity: 0.9;
}

/* Single post */
.post-header {
    margin-bottom: 3rem;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.post-meta {
    font-size: 0.9rem;
    color: #006600;
    padding-bottom: 1rem;
    border-bottom: 1px solid #003300;
}

.post-content {
    max-width: 800px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #00cc00;
    margin: 2rem 0 1rem;
    font-weight: 500;
}

.post-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    border-bottom: 1px solid #003300;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.8;
    opacity: 0.9;
}

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

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

.post-content li::marker {
    color: #00ff00;
}

.post-content blockquote {
    border-left: 3px solid #00ff00;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    opacity: 0.85;
}

.post-content code {
    background-color: #001100;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    color: #00ff00;
    border: 1px solid #003300;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #001100;
    border: 1px solid #003300;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #003300;
    margin: 1.5rem 0;
}

.post-content a {
    color: #00ff00;
    text-decoration: underline;
}

.post-content a:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #001100;
    border-top: 1px solid #003300;
    padding: 2rem 1rem;
    margin-top: auto;
}

.social-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #00ff00;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.social-link:hover {
    color: #ffffff;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.7;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #003300;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #003300;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .nav {
        justify-content: center;
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .main {
        padding: 1rem;
    }

    .blog-item {
        padding: 1rem;
    }

    .post-content pre {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .social-link,
    .blog-item,
    a {
        transition: none;
    }
}
