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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e8f5e8;
    background: linear-gradient(135deg, #0d1a0d 0%, #1a331a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background: rgba(13, 26, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #2d5a2d;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(45, 90, 45, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    color: #66cc66;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(102, 204, 102, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    color: #b3e6b3;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #66cc66;
    background: rgba(45, 90, 45, 0.3);
    transform: translateY(-1px);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #66cc66;
    border-radius: 1px;
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(45, 90, 45, 0.3);
    border-radius: 25px;
    padding: 0.5rem;
    border: 1px solid #2d5a2d;
}

.search-input {
    background: none;
    border: none;
    color: #e8f5e8;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #8bc98b;
}

.search-btn {
    background: #4d804d;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    color: #e8f5e8;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #66cc66;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #66cc66;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main content */
.main {
    padding: 3rem 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h2 {
    font-size: 2.5rem;
    color: #66cc66;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(102, 204, 102, 0.2);
}

.blog-header p {
    font-size: 1.2rem;
    color: #8bc98b;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog posts */
.blog-posts {
    display: grid;
    gap: 2rem;
}

.post {
    background: rgba(26, 51, 26, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2d5a2d;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 90, 45, 0.3);
    border-color: #4d804d;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: #66cc66;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #80d980;
    text-shadow: 0 0 8px rgba(102, 204, 102, 0.3);
}

.post-meta {
    margin-bottom: 1rem;
}

.post-date {
    color: #8bc98b;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-excerpt {
    color: #b3e6b3;
    line-height: 1.7;
    font-size: 1rem;
}

/* Individual post page styles */
.post-header {
    background: rgba(26, 51, 26, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #2d5a2d;
}

.post-header h1 {
    color: #66cc66;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

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

.category-tag {
    background: #4d804d;
    color: #e8f5e8;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-tag:hover {
    background: #66cc66;
    color: #0d1a0d;
}

.post-content {
    background: rgba(26, 51, 26, 0.6);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2d5a2d;
    line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #66cc66;
    margin: 2rem 0 1rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #b3e6b3;
}

.post-content code {
    background: rgba(13, 26, 13, 0.8);
    color: #80d980;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: rgba(13, 26, 13, 0.8);
    color: #80d980;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #2d5a2d;
}

/* Footer */
.footer {
    background: rgba(13, 26, 13, 0.9);
    border-top: 2px solid #2d5a2d;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    color: #8bc98b;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        display: block;
        text-align: center;
        padding: 1rem;
        background: rgba(45, 90, 45, 0.3);
        border-radius: 8px;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .blog-header h2 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .post-title a {
        font-size: 1.3rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta-full {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-content,
    .post-header {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blog-header h2 {
        font-size: 1.8rem;
    }
    
    .post {
        padding: 1rem;
    }
    
    .post-title a {
        font-size: 1.2rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-content,
    .post-header {
        padding: 1rem;
    }
}