/* Blog-specific styles */

/* Blog Main Container */
.blog-main {
    background: var(--background);
    min-height: calc(100vh - 200px);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #666;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 3rem;
    color: var(--primary);
    margin: 0 0 1rem;
    font-weight: 300;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.featured-title a {
    color: var(--primary);
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--secondary);
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.article-date {
    font-weight: 500;
}

.article-category {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Search Bar */
.blog-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto 3rem;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.search-input:focus {
    border-color: var(--secondary);
    outline: none;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background: var(--secondary);
}

/* Blog Content Grid */
.blog-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.blog-post-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-post-card:last-child {
    border-bottom: none;
}

.post-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-title {
    font-size: 1.2rem;
    margin: 0 0 0.8rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--primary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--secondary);
}

.post-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
}

.post-date {
    font-weight: 500;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget-title {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-link:hover {
    color: var(--primary);
}

.post-count {
    background: var(--secondary);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.popular-post-title a {
    color: var(--primary);
    text-decoration: none;
}

.popular-post-title a:hover {
    color: var(--secondary);
}

.popular-post-date {
    font-size: 0.8rem;
    color: #888;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--border);
    color: #666;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--secondary);
    color: white;
}

/* Footer - Updated to match index.html */
.main-footer {
    background: var(--primary);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    margin-bottom: 1rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: white;
}

.divider {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image img {
        height: 200px;
    }
    
    .blog-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-post-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-image img {
        height: 200px;
    }
    
    .blog-search {
        flex-direction: column;
    }
    
    .search-btn {
        align-self: flex-start;
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .legal-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-section {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}