/* Blog Page Styles */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.blog-filters .container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #333;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    min-width: 180px;
}

.filter-group input[type="text"] {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 250px;
    flex: 1;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Featured Article */
.featured-article {
    padding: 3rem 0;
    background: #f8f9fa;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.featured-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 0;
}

.blog-grid-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    display: inline-block;
    background: #e3e8ff;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

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

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

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

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

.newsletter-form button {
    white-space: nowrap;
}

/* Article Page Styles */
.article-header {
    padding: 2rem 0 1rem;
    background: #f8f9fa;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #764ba2;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.article-meta-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    margin-bottom: 1rem;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-category-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Article Content Layout */
.article-content {
    padding: 3rem 0;
}

.article-content .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-main {
    max-width: 800px;
}

.article-main h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}

.article-main h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
    color: #333;
}

.article-main p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.05rem;
}

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

.article-main li {
    line-height: 1.8;
    margin-bottom: 0.75rem;
    color: #444;
}

.article-main blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #666;
    font-style: italic;
}

.article-main .highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.related-article-link {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.related-article-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.related-article-link h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.related-article-link .meta {
    font-size: 0.8rem;
    color: #888;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: #666;
    font-size: 1.1rem;
}

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

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

    .blog-filters .container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

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

    .filter-group select,
    .filter-group input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 200px;
    }

    .featured-content {
        padding: 1.5rem;
    }

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

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

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

    .article-content .container {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 3rem 0 2rem;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .featured-content h2 {
        font-size: 1.3rem;
    }

    .blog-card h3 {
        font-size: 1.1rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-main h2 {
        font-size: 1.4rem;
    }

    .article-main h3 {
        font-size: 1.2rem;
    }
}
