/* Blog Page Styles */
@import url('style.css');

/* Page Header */
.page-header {
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6)), url('images/blog_heart.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.page-header::after {
    content: 'Ratgeber & News';
    color: white;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    animation: fadeInDown 1s ease-out;
}

/* Blog List Section */
.blog-list {
    background-color: var(--light-color);
    padding: 80px 0 120px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Featured Post (First item spans 2 cols if space allows) */
@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-card:first-child {
        grid-column: span 2;
        display: flex;
        flex-direction: row;
    }

    .blog-card:first-child .blog-img-wrapper {
        height: 100%;
        flex: 1.2;
    }

    .blog-card:first-child .blog-content {
        flex: 1;
        justify-content: center;
    }
}

.blog-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(212, 175, 55, 0.2);
}

.blog-img-wrapper {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-title a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color)) 0 100% / 0 2px no-repeat;
    transition: background-size 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.blog-excerpt {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

.blog-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.read-more i {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-link.active,
.page-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        height: 300px;
    }

    .page-header::after {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card:first-child {
        grid-column: span 1;
        flex-direction: column;
    }
}