/* Blog Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.separator {
    opacity: 0.6;
}

/* Blog Categories */
.blog-categories {
    padding: 2rem 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.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);
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
    background: var(--light-bg);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.category-tag.news {
    background: var(--secondary-color);
    color: var(--white);
}

.category-tag.tips {
    background: #28a745;
    color: var(--white);
}

.category-tag.case-study {
    background: #6f42c1;
    color: var(--white);
}

.category-tag.ai {
    background: #fd7e14;
    color: var(--white);
}

.category-tag.notion {
    background: #000000;
    color: var(--white);
}

.post-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-post h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.read-more-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

/* Blog Posts */
.blog-posts {
    padding: 80px 0;
    background: var(--white);
}

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

.post-card {
    background: var(--white);
    border-radius: 12px;
    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-image {
    height: 120px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.post-content {
    padding: 2rem;
}

.post-content .post-meta {
    margin-bottom: 1rem;
}

.post-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-content .post-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e55a2b;
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

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

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-benefits {
    list-style: none;
}

.newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.newsletter-benefits i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #e55a2b;
}

.privacy-note {
    font-size: 0.8rem;
    opacity: 0.8;
    margin: 0;
}

/* Article Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.article-modal {
    background: var(--white);
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
    padding-right: 3rem;
    line-height: 1.3;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.article-meta {
    margin-bottom: 2rem;
}

.article-content {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.1rem;
}

.article-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-brand a {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-brand a:hover {
    color: var(--accent-color);
}

/* Filter Animation */
.post-card.hide {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.post-card.show {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .featured-post h2 {
        font-size: 1.5rem;
    }

    .image-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

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

    .post-content {
        padding: 1.5rem;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form button {
        justify-content: center;
    }

    .article-modal {
        width: 95%;
        margin: 10% auto;
        max-height: 70vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .blog-categories {
        padding: 1rem 0;
    }

    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.8rem;
    }

    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .featured-post {
        padding: 1.5rem;
    }

    .image-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .newsletter-text h2 {
        font-size: 1.6rem;
    }

    .article-modal {
        margin: 15% auto;
        max-height: 60vh;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .article-content {
        font-size: 1rem;
    }
}