/* ========================================
   BLOG STYLES - La Estrella Photography
   Matches main site design (Playfair + Poppins)
   ======================================== */

/* Blog Grid Layout */
.blog-container {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 5px; /* Much closer to navbar */
}

.blog-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; /* Smaller title */
    color: #333;
    margin-bottom: 15px;
}

.blog-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #666;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-btn {
    background: rgba(214, 90, 127, 0.1);
    border: 2px solid #d65a7f;
    color: #d65a7f;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, #d65a7f 0%, #b84a6f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(214, 90, 127, 0.3);
}

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

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(214, 90, 127, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #d65a7f 0%, #b84a6f 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.blog-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin: 15px 0;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-family: 'Poppins', sans-serif;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    font-family: 'Poppins', sans-serif;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Single Blog Post Styles */
.post-container {
    max-width: 800px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #d65a7f 0%, #b84a6f 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.post-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 40px;
}

/* Table of Contents */
.table-of-contents {
    background: #f9f9f9;
    border-left: 4px solid #d65a7f;
    padding: 25px;
    margin: 30px 0;
    border-radius: 10px;
}

.table-of-contents h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin: 10px 0;
}

.table-of-contents a {
    color: #d65a7f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: #b84a6f;
    padding-left: 10px;
}

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

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin: 40px 0 20px;
    scroll-margin-top: 120px; /* For TOC anchor links */
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 15px;
    scroll-margin-top: 120px;
}

.post-content p {
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin: 10px 0;
}

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

.post-content blockquote {
    border-left: 4px solid #d65a7f;
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #f9f9f9;
    padding: 20px 25px;
    border-radius: 10px;
}

/* Affiliate Product Box */
.affiliate-product {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
    border: 2px solid #d65a7f;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.affiliate-product-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 10px;
}

.affiliate-product-content {
    flex: 1;
}

.affiliate-product h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.affiliate-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d65a7f;
    margin: 10px 0;
}

.affiliate-product-description {
    color: #666;
    margin: 10px 0;
}

.affiliate-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d65a7f 0%, #b84a6f 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.affiliate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 90, 127, 0.4);
}

.affiliate-disclosure {
    background: #f9f9f9;
    border-left: 4px solid #d65a7f;
    padding: 15px 20px;
    margin: 30px 0;
    font-size: 0.85rem;
    color: #666;
    border-radius: 5px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: 'Poppins', sans-serif;
}

.comparison-table th {
    background: linear-gradient(135deg, #d65a7f 0%, #b84a6f 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:hover {
    background: #f9f9f9;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-pinterest {
    background: #e60023;
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Email Signup Box */
.email-signup {
    background: linear-gradient(135deg, #d65a7f 0%, #b84a6f 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
}

.email-signup h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.email-signup p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.email-signup form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.email-signup input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.email-signup button {
    padding: 15px 30px;
    background: white;
    color: #d65a7f;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-signup button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .affiliate-product {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-product-image {
        width: 100%;
        max-width: 200px;
    }
    
    .email-signup form {
        flex-direction: column;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
}

/* Search Box */
.blog-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.blog-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #d65a7f;
    border-radius: 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.blog-search input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(214, 90, 127, 0.3);
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #d65a7f;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Author Bio Box */
.author-bio {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    margin: 50px 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.author-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.author-info p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}
