/* ==========================================================================
   Blog Home Page Specific Styles
   ========================================================================== */

.site-main {
    padding: 0 0 60px;
}

.site-main .container {
    padding: 20px 0;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::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 1440 320"><path fill="%23ffffff15" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,85.3C672,75,768,85,864,101.3C960,117,1056,139,1152,133.3C1248,128,1344,96,1392,80L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.blog-header .container {
    position: relative;
    z-index: 1;
}

.blog-header-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    animation: fadeInUp 0.8s ease;
    color: white;
}

.blog-header-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Featured Posts Section */
.featured-posts-section {
    background: #f8f9fa;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-post {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

.featured-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-post:hover .featured-post-thumbnail img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.featured-post-content {
    padding: 25px;
}

.featured-post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.featured-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-post-title a:hover {
    color: #667eea;
}

.featured-post-excerpt {
    color: #666;
    line-height: 1.6;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    padding: 10px 25px;
    background: #f8f9fa;
    color: #666;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    cursor: pointer;
}

.tab-item:hover {
    background: #e9ecef;
    color: #333;
}

.tab-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Posts List */
.posts-list {
    margin-bottom: 40px;
}

.blog-list-item {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    animation: fadeIn 0.5s ease;
}

.blog-list-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.blog-list-thumbnail {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-list-item:hover .blog-list-thumbnail img {
    transform: scale(1.05);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #667eea50;
}

.blog-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-list-category {
    margin-bottom: 10px;
}

.blog-list-category a {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.blog-list-category a:hover {
    background: #5a6fd8;
}

.blog-list-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-list-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-list-title a:hover {
    color: #667eea;
}

.blog-list-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #999;
}

.blog-list-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-list-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.blog-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-list-tags .tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.blog-list-tags .tag:hover {
    background: #667eea;
    color: white;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 60px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.widget {
    margin-bottom: 20px;
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Popular Posts Widget Enhanced */
.widget-popular .popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-popular .popular-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-popular .popular-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-popular .popular-posts a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.widget-popular .popular-posts a:hover {
    transform: translateX(5px);
}

.popular-posts .rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.popular-posts .rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.popular-posts .rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.popular-posts .rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e4a853);
    color: white;
}

.popular-post-content {
    flex: 1;
    display: flex;
    gap: 10px;
}

.popular-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-posts .post-title {
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tag Cloud Enhanced */
.widget-tags .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag-item {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #666;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud .tag-small {
    font-size: 0.85rem;
}

.tag-cloud .tag-medium {
    font-size: 0.95rem;
    background: #e9ecef;
}

.tag-cloud .tag-large {
    font-size: 1.05rem;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    font-weight: 500;
}

.tag-cloud .tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* Newsletter Widget Enhanced */
.widget-newsletter .newsletter-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

/* Category List Enhanced */
.category-list .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    border-radius: 50%;
    margin-right: 10px;
    color: #667eea;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header-title {
        font-size: 2.5rem;
    }

    .blog-header-subtitle {
        font-size: 1.1rem;
    }

    .blog-list-item {
        flex-direction: column;
    }

    .blog-list-thumbnail {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .category-tabs {
        padding: 15px;
        gap: 10px;
    }

    .tab-item {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

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

@media (max-width: 480px) {
    .blog-header {
        padding: 80px 20px 60px;
    }

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

    .blog-header-subtitle {
        font-size: 1rem;
    }

    .blog-list-title {
        font-size: 1.2rem;
    }

    .blog-list-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .load-more-btn {
        padding: 12px 40px;
        font-size: 1rem;
    }
}
