/* ========================================
   Blog Archive Page Styles
   ======================================== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 100px;
    overflow: hidden;
}

.blog-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.blog-hero .hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.blog-hero .hero-icon i {
    font-size: 3rem;
    color: white;
}

.blog-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.blog-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Blog Main Content */
.blog-main {
    min-width: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    transition: all 0.4s ease;
}

.blog-card:hover .blog-card-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #718096;
}

.meta-item i {
    color: #667eea;
    font-size: 0.8rem;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #667eea;
}

.blog-card-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    align-self: flex-start;
}

.blog-read-more:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
}

.blog-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea22 0%, #764ba244 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-posts-icon i {
    font-size: 3.5rem;
    color: #667eea;
}

.no-posts h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.no-posts p {
    font-size: 1.125rem;
    color: #718096;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.widget-title i {
    color: #667eea;
    font-size: 1.1rem;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s;
}

.category-list a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.category-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    background: white;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #667eea;
}

.category-list a:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.recent-post-item:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.recent-post-content {
    flex: 1;
    min-width: 0;
}

.recent-post-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-content h4 a:hover {
    color: #667eea;
}

.recent-post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #718096;
}

.recent-post-date i {
    color: #667eea;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 50px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.tag-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 80px;
    }

    .blog-hero .hero-title {
        font-size: 2.5rem;
    }

    .blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-hero .hero-icon {
        width: 80px;
        height: 80px;
    }

    .blog-hero .hero-icon i {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero .hero-title {
        font-size: 2rem;
    }

    .blog-hero .hero-subtitle {
        font-size: 1rem;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }
}