/* Blog Page Styles */

.blog-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Featured Article */
.featured-article {
    padding: 3rem 0;
    background: #fff;
}

.featured-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-image {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
}

.featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    z-index: 1;
}

.featured-image i {
    position: relative;
    z-index: 2;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-meta span {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.article-meta .category {
    background: #667eea;
    color: white;
}

.article-meta .date {
    background: #f7fafc;
    color: #666;
}

.article-meta .read-time {
    background: #f093fb;
    color: white;
}

.featured-content h2 {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

.featured-content p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Blog Categories */
.blog-categories {
    padding: 2rem 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.category-tab:hover,
.category-tab.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
    padding: 3rem 0;
    background: #fff;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(240, 147, 251, 0.8), rgba(245, 87, 108, 0.8));
    z-index: 1;
}

.article-image i {
    position: relative;
    z-index: 2;
}

.article-content {
    padding: 1.5rem;
}

.article-meta-small {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta-small span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.article-meta-small .category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.article-meta-small .date {
    background: #f7fafc;
    color: #666;
}

.article-meta-small .read-time {
    background: rgba(240, 147, 251, 0.1);
    color: #f093fb;
}

.article-content h3 {
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.4;
    font-size: 1.25rem;
}

.article-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

.author-avatar {
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #f7fafc;
    color: #667eea;
}

/* Load More */
.load-more {
    text-align: center;
}

.load-more .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
}

.newsletter-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-benefits i {
    color: #48bb78;
    font-size: 1.1rem;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form .form-input,
.newsletter-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
}

.newsletter-form .form-input::placeholder {
    color: #666;
}

.newsletter-form .btn {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.newsletter-form .btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

.newsletter-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-image {
        height: 250px;
        font-size: 6rem;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .featured-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .categories-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .articles-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .article-meta,
    .article-meta-small {
        gap: 0.5rem;
    }
    
    .article-meta span,
    .article-meta-small span {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .categories-tabs {
        gap: 0.5rem;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Loading States */
.article-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.article-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #667eea;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty States */
.empty-articles {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.empty-articles i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-articles h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-articles p {
    color: #666;
}

/* Search Results */
.search-results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: #f8f9fa;
    border-radius: 16px;
}

.search-results-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.search-results-header p {
    color: #666;
}

/* Article Tags */
.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: #667eea;
    color: white;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.share-btn.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.share-btn.pinterest:hover {
    border-color: #e60023;
    color: #e60023;
}
