/* Feed LB Frontend Styles */

.feed-lb-container {
    margin: 20px 0;
}

.feed-lb-container[data-columns="2"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feed-lb-container[data-columns="3"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feed-lb-container[data-columns="4"] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .feed-lb-container[data-columns="2"],
    .feed-lb-container[data-columns="3"],
    .feed-lb-container[data-columns="4"] {
        grid-template-columns: 1fr;
    }
}

/* Post Item */
.feed-lb-post-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-lb-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.feed-lb-post-image {
    position: relative;
    overflow: hidden;
}

.feed-lb-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.feed-lb-post-content {
    padding: 20px;
}

.feed-lb-post-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.feed-lb-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feed-lb-post-title a:hover {
    color: #0073aa;
}

.feed-lb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.feed-lb-post-date:before {
    content: "📅 ";
}

.feed-lb-post-source:before {
    content: "🔗 ";
}

.feed-lb-post-author:before {
    content: "✍️ ";
}

.feed-lb-post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feed-lb-post-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.feed-lb-read-more {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.feed-lb-read-more:hover {
    background: #005177;
    color: white;
}

/* Latest News Widget */
.feed-lb-latest-news {
    margin: 20px 0;
}

.feed-lb-latest-news.layout-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feed-lb-latest-news.layout-horizontal .feed-lb-latest-item {
    flex: 1;
    min-width: 300px;
}

.feed-lb-latest-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: background 0.2s ease;
}

.feed-lb-latest-item:hover {
    background: #f0f0f0;
}

.feed-lb-latest-image {
    flex-shrink: 0;
}

.feed-lb-latest-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.feed-lb-latest-content h5 {
    margin: 0 0 8px 0;
    font-size: 1em;
    line-height: 1.3;
}

.feed-lb-latest-content h5 a {
    color: #333;
    text-decoration: none;
}

.feed-lb-latest-content h5 a:hover {
    color: #0073aa;
}

.feed-lb-latest-date {
    font-size: 0.85em;
    color: #666;
}

/* Feed List */
.feed-lb-feeds-list {
    display: grid;
    gap: 20px;
}

.feed-lb-feed-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
}

.feed-lb-feed-name {
    margin: 0 0 10px 0;
    color: #333;
}

.feed-lb-feed-count,
.feed-lb-feed-last-import {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* Error and Empty States */
.feed-lb-no-posts,
.feed-lb-no-feeds,
.feed-lb-error {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
}

.feed-lb-error {
    background: #fee;
    border-color: #fcc;
    color: #c00;
}

/* Responsive Design */
@media (max-width: 600px) {
    .feed-lb-post-content {
        padding: 15px;
    }
    
    .feed-lb-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .feed-lb-latest-item {
        flex-direction: column;
    }
    
    .feed-lb-latest-image img {
        width: 100%;
        height: 150px;
    }
    
    .feed-lb-latest-news.layout-horizontal {
        flex-direction: column;
    }
}

/* Widget Specific Styles */
.widget .feed-lb-latest-news {
    margin: 0;
}

.widget .feed-lb-latest-item {
    padding: 10px;
    margin-bottom: 10px;
}

.widget .feed-lb-latest-image img {
    width: 60px;
    height: 60px;
}

.widget .feed-lb-latest-content h5 {
    font-size: 0.9em;
}

.widget .feed-lb-latest-date {
    font-size: 0.8em;
}