/*
 * MAI Home - Insights Page
 * Insights page styling including page header and blog posts
 */

/* Insights Page */
.insights-page {
    padding-top: 80px; /* Account for fixed header */
    min-height: 100vh;
}

/* Page Header */
.insights-page .page-header {
    background-color: var(--primary-bg);
    padding: 4rem 0 3rem !important;
    text-align: center;
    border-bottom: 1px solid rgba(243, 238, 231, 0.6);
    margin-bottom: 0;
}

.insights-page .page-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.insights-page .page-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Blog Section */
.insights-page .blog-section {
    padding: 2rem 0 4rem !important;
    margin-top: 0 !important;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Post Card */
.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.post-content {
    padding: var(--spacing-lg);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--text-secondary);
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.meta-separator {
    opacity: 0.5;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.read-more {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--text-secondary);
}

.no-posts h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.no-posts p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Newsletter Section */
.insights-page .newsletter-section {
    background-color: var(--primary-bg);
    padding: 4rem 0 !important;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.newsletter-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-form .form-input {
    flex: 1;
    background-color: var(--white);
    border: 1px solid rgba(243, 238, 231, 0.6);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid rgba(243, 238, 231, 0.6);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

/* Single Blog Post Header */
.single-post {
    padding-top: 80px; /* Account for fixed header */
}

.single-post .post-header {
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(243, 238, 231, 0.6);
    margin-bottom: 2rem;
}

.single-post .post-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.single-post .post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.single-post .post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.single-post .post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(243, 238, 231, 0.6);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .insights-page {
        padding-top: 30px;
    }
    
    .insights-page .page-header {
        padding: 7rem 0 1rem !important;
    }
    
    .insights-page .blog-section {
        padding: 0 0 2rem !important;
        margin-top: -1rem !important;
    }
    
    .insights-page .newsletter-section {
        padding: 2rem 0 !important;
    }
    
    .insights-page .page-title {
        font-size: 2.5rem;
    }
    
    .insights-page .page-description {
        font-size: 1.1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-input {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Single Blog Post Mobile */
    .single-post {
        padding-top: 60px;
    }
    
    .single-post .post-header {
        padding: 2rem 0 1.5rem;
    }
    
    .single-post .post-title {
        font-size: 2rem;
    }
    
    .single-post .post-meta {
        font-size: 0.85rem;
    }
} 