/**
 * En Masse - Blog Specific Styles
 * Fixed to match actual HTML structure
 */

/* Blog Archive Layout */
.blog {
    background-color: #0a0e1a;
    min-height: 100vh;
    color: #fff;
}

.blog .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

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

.blog-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.blog-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Individual Post Items */
.post-item {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid #1a2332;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.1);
    border-color: #1dd1a1;
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

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

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

/* Post Content */
.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Post Header */
.post-header {
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

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

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

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-date {
    color: #888;
}

/* Post Categories */
.post-categories {
    margin-bottom: 1rem;
}

.post-categories a {
    display: inline-block;
    background: #1dd1a1;
    color: #0a0e1a;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.post-categories a:hover {
    background: #1bc79e;
}

/* Post Excerpt */
.post-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Read More Link */
.read-more-link {
    color: #1dd1a1;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more-link:hover {
    color: #1bc79e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog .container {
        padding: 1rem;
    }
}

/* Additional Blog Archive Styling */
.blog-archive {
    background-color: #0a0e1a;
    min-height: 100vh;
    color: #fff;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.archive-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

/* Ensure blog pages have dark background */
body.blog {
    background-color: #0a0e1a;
}

body.blog .site-header {
    background-color: rgba(10, 14, 26, 0.95);
}

/* High Priority Overrides */
body.blog,
body.blog #main-content,
body.blog .archive-page,
body.blog .blog-archive {
    background-color: #0a0e1a !important;
    color: #fff !important;
}

.posts-grid .post-item {
    background: rgba(26, 35, 50, 0.8) !important;
    border: 1px solid #1a2332 !important;
    color: #fff !important;
}

.post-item .post-title a {
    color: #fff !important;
}

.post-item:hover {
    box-shadow: 0 10px 30px rgba(29, 209, 161, 0.1) !important;
    border-color: #1dd1a1 !important;
}
