/* ===== BLOG SPECIFIC STYLES ===== */

/* Global Blog Typography */
.blog-main {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

.blog-main h1, .blog-main h2, .blog-main h3, .blog-main h4, .blog-main h5, .blog-main h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 1rem;
}

.blog-main p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 1rem;
}

.blog-main a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.blog-main a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
}

.blog-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.2;
}

.blog-hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    font-weight: 400;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.blog-stats .stat {
    text-align: center;
}

.blog-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-stats .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Featured Article Section */
.featured-article {
    padding: 4rem 0;
    background-color: white;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.featured-image {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 4rem;
    color: white;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #fd79a8;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-content {
    padding: 2rem;
}

.post-category {
    display: inline-block;
    background-color: #6c5ce7;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

.featured-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: #6c5ce7;
}

.post-excerpt {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #64748b;
    flex-wrap: wrap;
    font-weight: 500;
}

.featured-btn {
    display: inline-block;
    background-color: #6c5ce7;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    background-color: #5f3dc4;
    transform: translateY(-2px);
}

/* Blog Categories Section */
.blog-categories {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: #2d3436;
}

.category-card p {
    color: #636e72;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-count {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Recent Posts Section */
.recent-posts {
    padding: 4rem 0;
    background-color: white;
}

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

.post-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.post-content {
    padding: 1.5rem;
}

.post-content .post-category {
    margin-bottom: 0.5rem;
}

.post-title {
    margin-bottom: 0.75rem;
    color: #1e293b;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #6c5ce7;
}

.post-summary {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
}

.post-content .post-meta {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.load-more-btn {
    background-color: #6c5ce7;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #5f3dc4;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
    color: white;
    font-size: 2rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 1rem;
    gap: 0.5rem;
}

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

.newsletter-form button {
    background-color: #fd79a8;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.newsletter-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 3rem;
    }

    .blog-hero-content p {
        font-size: 1.125rem;
    }

    .blog-stats {
        gap: 2rem;
    }

    .blog-stats .stat-number {
        font-size: 2rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .featured-image {
        height: 250px;
    }

    .featured-content h3 {
        font-size: 1.75rem;
    }

    .post-excerpt {
        font-size: 1rem;
    }

    .post-title {
        font-size: 1.25rem;
    }

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

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

    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }

    .blog-hero-content p {
        font-size: 1rem;
    }

    .blog-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-stats .stat-number {
        font-size: 1.75rem;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-content h3 {
        font-size: 1.5rem;
    }

    .post-excerpt {
        font-size: 0.95rem;
    }

    .post-title {
        font-size: 1.125rem;
    }

    .category-card {
        padding: 1.5rem;
    }

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