/* Wedding Homepage Frontend Styles */

.wedding-homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--wedding-text-color, #333333);
    background: transparent;
    position: relative;
}

/* Latest Posts Section */
.wedding-latest-posts {
    margin-bottom: 80px;
}

.wedding-latest-posts h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    color: var(--wedding-text-color, #333333);
}

.wedding-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.wedding-post-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wedding-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.wedding-post-featured-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.wedding-post-card:hover .wedding-post-featured-image img {
    transform: scale(1.05);
}

.wedding-post-content {
    padding: 30px;
}

.wedding-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wedding-category-pill {
    background: var(--wedding-primary-color, #f4b2c4);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.wedding-category-pill:hover {
    opacity: 0.8;
    color: #ffffff;
}

.wedding-post-date {
    color: #666666;
    font-size: 0.9rem;
}

.wedding-post-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

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

.wedding-post-title a:hover {
    color: var(--wedding-primary-color, #f4b2c4);
}

.wedding-post-excerpt {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.wedding-read-more {
    color: var(--wedding-primary-color, #f4b2c4);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.wedding-read-more:hover {
    color: var(--wedding-secondary-color, #a8c9a8);
}

.wedding-read-more::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.wedding-read-more:hover::after {
    transform: translateX(3px);
}

/* Topic Chapters Section */
.wedding-chapters {
    margin-bottom: 80px;
}

.wedding-chapter {
    margin-bottom: 60px;
}

.wedding-chapter-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--wedding-text-color, #333333);
    border-bottom: 2px solid var(--wedding-primary-color, #f4b2c4);
    padding-bottom: 15px;
}

.wedding-chapter-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.wedding-chapter-post {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wedding-chapter-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wedding-chapter-post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.wedding-chapter-post:hover .wedding-chapter-post-image img {
    transform: scale(1.05);
}

.wedding-chapter-post-title {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.wedding-chapter-post-title a {
    color: var(--wedding-text-color, #333333);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wedding-chapter-post-title a:hover {
    color: var(--wedding-primary-color, #f4b2c4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wedding-homepage {
        padding: 0 15px;
    }
    
    .wedding-latest-posts h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .wedding-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wedding-post-content {
        padding: 20px;
    }
    
    .wedding-post-title {
        font-size: 1.3rem;
    }
    
    .wedding-chapter-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .wedding-chapter-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wedding-chapter-post-image {
        height: 150px;
    }
    
    .wedding-chapter-post-title {
        padding: 15px;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wedding-chapter-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .wedding-chapter-posts {
        grid-template-columns: repeat(var(--chapter-posts-per-row, 4), 1fr);
    }
}

/* Utility Classes */
.wedding-text-center {
    text-align: center;
}

.wedding-mb-0 {
    margin-bottom: 0;
}

.wedding-mt-20 {
    margin-top: 20px;
}

.wedding-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-style: italic;
}

/* Accessibility */
.wedding-post-card:focus,
.wedding-chapter-post:focus {
    outline: 2px solid var(--wedding-primary-color, #f4b2c4);
    outline-offset: 2px;
}

.wedding-post-title a:focus,
.wedding-chapter-post-title a:focus,
.wedding-category-pill:focus,
.wedding-read-more:focus {
    outline: 2px solid var(--wedding-primary-color, #f4b2c4);
    outline-offset: 2px;
}
