/* Blog Specific Styles */

/* Blog Hero */
.blog-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Search & Filter Bar */
.blog-filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 40px auto 60px;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    width: 20px;
    height: 20px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover,
.category-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Featured Blog */
.featured-blog {
    margin-bottom: 60px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.featured-image {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.featured-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background-color: #f3f4f6;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--color-gray-500);
    margin-bottom: 15px;
}

.blog-category {
    color: var(--color-purple);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--color-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.read-more {
    font-weight: 600;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--color-gray-600);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--color-gray-200);
}

.page-link:hover,
.page-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Single Blog Post */
.blog-single-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    color: white;
}

.blog-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.blog-single-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.blog-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    max-width: 800px;
    margin: -60px auto 0;
    padding: 60px;
    background: white;
    border-radius: 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-800);
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--color-gray-900);
}

.article-body p {
    margin-bottom: 20px;
}

.share-bar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateX(5px);
    color: var(--color-blue);
}

@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

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

    .article-content {
        padding: 30px;
        margin-top: -30px;
    }

    .share-bar {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 40px;
    }
}