/*
Theme Name: MinimalGreen
*/

/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.main-container {
    display: flex;
    max-width: 90%;
    margin: 0 auto;
    gap: 3rem;
    padding: 2rem 0;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 1rem 0;
}

.header-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    text-align: center;
}

.logo {
    width: 240px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00aa18;
}

.main-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
}

.site-main {
    flex: 1;
}

.recent-posts-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00aa18;
    color: #333;
}

.recent-post-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.recent-post-thumbnail {
    flex-shrink: 0;
}

.recent-post-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-post-title a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: color 0.3s;
}

.recent-post-title a:hover {
    color: #00aa18;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-card-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: #00aa18;
}

.post-card-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.read-more-btn {
    display: inline-block;
    background: #00aa18;
    color: #fff;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background: #008814;
}

.single-post {
    max-width: 100%;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.site-footer {
    background: #f8f9fa;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 90%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    width: 180px;
}

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

.footer-nav a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #00aa18;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
    color: #666;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .main-sidebar {
        position: static;
        flex: none;
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .logo {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .main-container {
        max-width: 95%;
    }
    
    .logo {
        width: 160px;
    }
    
    .post-thumbnail img {
        height: 250px;
    }
}