/* Modern Blog Styles - Zwergerl Küche Theme */

/* Blog Ana Container */
.blog-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px 0 40px;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.blog-header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Blog Content */
.blog-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* Blog Filters */
.blog-filters {
    margin-bottom: 25px;
    padding: 20px;
    background: transparent;
    border-radius: 0;
    border: none;
}

.search-form {
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.search-input-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.search-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    background: transparent;
    outline: none;
    font-family: inherit;
}

.search-input-group button {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.search-input-group button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a6b2a 100%);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-filter {
    padding: 8px 16px;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-filter:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 158, 63, 0.2);
    text-decoration: none;
}

.category-filter.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(106, 158, 63, 0.3);
}

.post-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 5px;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 25px;
}

.blog-post {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: var(--transition);
    border: none;
    position: relative;
}

.blog-post:hover {
    transform: none;
    box-shadow: none;
}

.post-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(106, 158, 63, 0.1) 0%, rgba(106, 158, 63, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.blog-post:hover .post-image::before {
    opacity: 1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

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

.post-category a {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8f5e8 100%);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.post-category a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date::before {
    content: '📅';
    font-size: 12px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.post-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: transparent;
}

.read-more:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 158, 63, 0.3);
}

.read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

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

.pagination-btn {
    padding: 12px 18px;
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid rgba(106, 158, 63, 0.2);
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 158, 63, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(106, 158, 63, 0.3);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: transparent;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    border: none;
    position: relative;
    align-self: flex-start;
}

.sidebar-widget h3 {
    margin: 0 0 20px 0;
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-list a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-color: rgba(106, 158, 63, 0.2);
    transform: translateX(5px);
}

.count {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(106, 158, 63, 0.1);
}

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

.recent-posts a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: var(--transition);
}

.recent-posts a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.recent-posts .date {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-posts .date::before {
    content: '🕒';
    font-size: 10px;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.no-posts h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.no-posts p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a6b2a 100%);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 158, 63, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        position: relative;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding: 15px 0;
    }
    
    .blog-header {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-header p {
        font-size: 0.9rem;
    }
    
    .blog-layout {
        padding: 0 10px;
        gap: 15px;
    }
    
    .blog-filters {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .search-input-group {
        max-width: 100%;
    }
    
    .category-filters {
        justify-content: center;
        gap: 8px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .post-image {
        height: 150px;
    }
    
    .read-more {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .blog-main {
        padding: 10px 0;
    }
    
    .blog-header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .blog-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-header p {
        font-size: 0.8rem;
    }
    
    .blog-layout {
        padding: 0 5px;
        gap: 10px;
    }
    
    .blog-filters {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group input {
        border-radius: 8px 8px 0 0;
    }
    
    .search-input-group button {
        border-radius: 0 0 8px 8px;
    }
    
    .category-filters {
        gap: 5px;
    }
    
    .category-filter {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .post-content {
        padding: 10px;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .sidebar-widget {
        padding: 10px;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .post-image {
        height: 120px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .read-more {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post {
    animation: fadeInUp 0.6s ease-out;
}

.blog-post:nth-child(2) { animation-delay: 0.1s; }
.blog-post:nth-child(3) { animation-delay: 0.2s; }
.blog-post:nth-child(4) { animation-delay: 0.3s; }
.blog-post:nth-child(5) { animation-delay: 0.4s; }
.blog-post:nth-child(6) { animation-delay: 0.5s; }