/**
 * News & Blog Styles
 * Sarah Moulton Faux Theme
 * 
 * Add this CSS to your theme's style.css or create a separate
 * news-styles.css and enqueue it in functions.php
 */

/* ==========================================================================
   Archive Page - News Grid
   ========================================================================== */

.news-archive {
    padding: 80px 0 100px;
    background-color: #fafafa;
    min-height: 60vh;
}

.news-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 15px;
    letter-spacing: 0.02em;
}

.archive-description {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    margin: 0;
}

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

/* News Card */
.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 30px;
}

.news-card-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.meta-separator {
    margin: 0 8px;
    color: #ccc;
}

.news-category {
    color: #8b7355;
}

.news-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 15px;
}

.news-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #8b7355;
}

.news-card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.news-card-excerpt p {
    margin: 0;
}

.read-more-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b7355;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more-link:hover {
    color: #6d5a45;
}

.read-more-link .arrow {
    transition: transform 0.2s ease;
}

.read-more-link:hover .arrow {
    transform: translateX(4px);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #888;
}

/* Pagination */
.smf-pagination,
.navigation.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.smf-pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.smf-pagination .page-numbers,
.navigation.pagination .page-numbers {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 10px 16px;
    color: #555;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.smf-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    background-color: #8b7355;
    border-color: #8b7355;
    color: #fff;
}

.smf-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ==========================================================================
   Single Post Page
   ========================================================================== */

.single-post {
    background-color: #fff;
}

/* Post Hero Image */
.post-hero {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.post-hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Post Container */
.single-post .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px 100px;
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.post-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.post-category {
    color: #8b7355;
}

.post-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Post Content */
.post-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 2em 0 0.8em;
}

.post-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 1.8em 0 0.6em;
}

.post-content a {
    color: #8b7355;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #6d5a45;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2em 0;
}

.post-content blockquote {
    border-left: 3px solid #8b7355;
    margin: 2em 0;
    padding: 20px 30px;
    background: #fafafa;
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Post Footer - Tags */
.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tag-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #8b7355;
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.post-navigation a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-navigation a:hover {
    color: #8b7355;
}

/* Back to News Link */
.back-to-news {
    margin-top: 40px;
    text-align: center;
}

.back-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #8b7355;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #6d5a45;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    
    .news-archive {
        padding: 60px 0 80px;
    }
    
    .archive-title {
        font-size: 2.2rem;
    }
    
    .archive-description {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-card-content {
        padding: 25px;
    }
    
    .news-card-title {
        font-size: 1.3rem;
    }
    
    /* Single Post */
    .post-hero {
        max-height: 300px;
    }
    
    .single-post .container {
        padding: 40px 20px 80px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-previous,
    .nav-next {
        max-width: 100%;
        text-align: left;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    
    .archive-header {
        margin-bottom: 40px;
    }
    
    .archive-title {
        font-size: 1.8rem;
    }
    
    .news-card-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.7rem;
    }
}
