/* style.css - Frontend styles for Enhanced RSS Block */

.wp-block-enhanced-rss {
    margin: 1.5em 0;
}

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

.enhanced-rss-item {
    display: flex;
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #e0e0e0;
}

.enhanced-rss-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.enhanced-rss-image {
    flex: 0 0 120px;
    margin-right: 1em;
}

.enhanced-rss-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.enhanced-rss-image a:hover img {
    opacity: 0.8;
}

.enhanced-rss-content {
    flex: 1;
}

.enhanced-rss-title {
    margin: 0 0 0.5em 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.enhanced-rss-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.enhanced-rss-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.enhanced-rss-meta {
    margin-bottom: 0.5em;
    font-size: 0.9em;
    color: #666;
}

.enhanced-rss-date,
.enhanced-rss-author {
    margin-right: 1em;
}

.enhanced-rss-excerpt {
    font-size: 0.95em;
    line-height: 1.5;
    color: #333;
}

/* Responsive styles */
@media (max-width: 768px) {
    .enhanced-rss-item {
        flex-direction: column;
    }
    
    .enhanced-rss-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 1em;
    }
    
    .enhanced-rss-image img {
        height: 150px;
    }
}

/* Editor specific styles - editor-style.css */
.enhanced-rss-preview {
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.enhanced-rss-placeholder .components-placeholder {
    min-height: 200px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .enhanced-rss-item {
        border-bottom-color: #333;
    }
    
    .enhanced-rss-meta {
        color: #ccc;
    }
    
    .enhanced-rss-excerpt {
        color: #ddd;
    }
    
    .enhanced-rss-title a:hover {
        color: #4a9eff;
    }
}