/* Blog Page Specific Styles */

/* Blog Header */
.blog-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    text-align: center;
}

.blog-header h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.3rem;
    color: var(--text-medium);
}

/* Blog Filters & Search */
.blog-filters {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-categories {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.blog-search {
    position: relative;
    min-width: 300px;
}

.blog-search input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
}

.blog-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.blog-search i {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Featured Post */
.featured-post {
    padding: 4rem 0;
    background: var(--white);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-featured {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-featured i {
    font-size: 5rem;
    color: var(--white);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    z-index: 10;
}

.featured-text h2 {
    margin: 1rem 0;
}

.featured-text h2 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.featured-text h2 a:hover {
    color: var(--primary-color);
}

.featured-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-date,
.read-time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-tag.nutrition {
    background: #d4edda;
    color: #155724;
}

.category-tag.recipes {
    background: #fff3cd;
    color: #856404;
}

.category-tag.wellness {
    background: #d1ecf1;
    color: #0c5460;
}

.category-tag.weight-loss {
    background: #f8d7da;
    color: #721c24;
}

.category-tag.sports {
    background: #e2e3e5;
    color: #383d41;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 4rem 0;
    background: var(--light-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-featured-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-post {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-post i {
    font-size: 3.5rem;
    color: var(--white);
}

.post-image .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    margin: 1rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.post-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text {
    color: var(--white);
}

.newsletter-text h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form .btn {
    white-space: nowrap;
    background: var(--white);
    color: var(--primary-color);
}

.newsletter-form .btn:hover {
    background: var(--light-gray);
}

/* Active nav link styling */
.nav-link.active {
    color: var(--primary-color);
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header {
        padding: 120px 0 60px;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .filter-search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-categories {
        justify-content: center;
    }

    .blog-search {
        min-width: 100%;
    }

    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-image {
        height: 300px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        min-width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .featured-image {
        height: 250px;
    }

    .post-content {
        padding: 1.5rem;
    }
}
