/* Blog-specific styles */

/* Blog Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    background: transparent;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f2dba6;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #292823;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.blog-subtitle {
    color: #45433b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Post Cards */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    background: rgba(245, 228, 188, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #ecc979;
    backdrop-filter: blur(10px);
}

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

.post-card.featured {
    border: 2px solid #ecc979;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 0 0 12px;
}

.post-thumbnail:has(img) {
    background: #f8f9fa;
    padding: 0;
    margin: 0;
}

.post-thumbnail div[style*="linear-gradient"] {
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    background-clip: padding-box;
    position: absolute;
    top: 0;
    left: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ecc979;
    color: #292823;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.post-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #292823;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ecc979;
}

.post-excerpt {
    color: #45433b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b6b6b;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-author::before {
    content: "👨‍🏫";
    font-size: 1rem;
}

.post-date::before {
    content: "📅";
    margin-right: 0.3rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f5e4bc;
    color: #45433b;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.read-more {
    color: #ecc979;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #292823;
}

/* Sidebar */
.sidebar-section {
    background: rgba(245, 228, 188, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #ecc979;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #292823;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecc979;
}

/* Categories */
.category-list {
    list-style: none;
}

.category-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f2dba6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background: #f9f9f9;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    color: #45433b;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    background: #ecc979;
    color: #292823;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Popular Posts */
.popular-posts-list {
    list-style: none;
}

.popular-post-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f2dba6;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #292823;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.popular-post-title:hover {
    color: #ecc979;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #6b6b6b;
}

/* Newsletter */
.newsletter-signup {
    text-align: center;
}

.newsletter-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #f2dba6;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: #ecc979;
}

.newsletter-btn {
    width: 100%;
    background: #ecc979;
    color: #292823;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background: #d4b366;
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    background: rgba(236, 201, 121, 0.8);
    color: #292823;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #ecc979;
    backdrop-filter: blur(10px);
}

.contact-cta h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-cta p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.cta-btn {
    padding: 0.6rem 1rem;
    background: #292823;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #45433b;
    transform: translateY(-2px);
}

/* Coming Soon */
.coming-soon-card {
    opacity: 0.7;
    position: relative;
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(236, 201, 121, 0.9);
    color: #292823;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 3;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 100px 1rem 2rem;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .post-details {
        padding: 1.5rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}