/**
 * Post Widget Filter Styles
 * Bild links, Text rechts Layout
 */

.post-widget-filter-container {
    margin: 0;
    padding: 0;
}

.post-widget-filter-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-widget-filter-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-widget-filter-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.post-widget-filter-thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-widget-filter-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-widget-filter-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-widget-filter-thumbnail:hover .post-widget-filter-image {
    transform: scale(1.05);
}

.post-widget-filter-text {
    flex: 1;
    min-width: 0;
}

.post-widget-filter-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.post-widget-filter-title a {
    color: #222222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-widget-filter-title a:hover {
    color: #f5af06;
}

.post-widget-filter-meta {
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.post-widget-filter-date {
    margin-right: 10px;
}

.post-widget-filter-author a {
    color: #666;
    text-decoration: none;
}

.post-widget-filter-author a:hover {
    color: #f5af06;
}

.post-widget-filter-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.no-posts {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-widget-filter-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-widget-filter-thumbnail {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .post-widget-filter-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-widget-filter-thumbnail {
        height: 150px;
    }
    
    .post-widget-filter-title {
        font-size: 15px;
    }
    
    .post-widget-filter-excerpt {
        font-size: 13px;
    }
}

/* Widget-spezifische Anpassungen */
.widget_post_widget_filter .widget-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5af06;
}


.post-widget-filter-item:hover .post-widget-filter-thumbnail {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Zusätzliche Styling-Optionen */
.post-widget-filter-container.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.post-widget-filter-container.grid-layout .post-widget-filter-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-widget-filter-container.grid-layout .post-widget-filter-content {
    flex-direction: column;
    text-align: center;
}

.post-widget-filter-container.grid-layout .post-widget-filter-thumbnail {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
}
