/**
 * RSS News Aggregator - Frontend Styles
 */

/* Container */
.rna-news-container {
    max-width: 900px;
    margin: 0 auto;
}

/* News Item */
.rna-news-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rna-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

/* Title */
.rna-news-title {
    margin: 0 0 12px 0;
    font-size: 1.25em;
    line-height: 1.4;
}

.rna-news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rna-news-title a:hover {
    color: #0066cc;
}

/* Description (sottotitolo) */
.rna-news-description {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* Meta (source + date) */
.rna-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85em;
    color: #777;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.rna-news-source,
.rna-news-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rna-icon {
    font-size: 0.9em;
}

/* Footer */
.rna-news-footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 0.85em;
}

/* No Items */
.rna-no-items {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .rna-news-item {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .rna-news-item:hover {
        border-color: #505050;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .rna-news-title a {
        color: #e5e5e5;
    }
    
    .rna-news-title a:hover {
        color: #66b3ff;
    }
    
    .rna-news-description {
        color: #b0b0b0;
    }
    
    .rna-news-meta {
        border-top-color: #404040;
        color: #888;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .rna-news-item {
        padding: 15px 18px;
    }
    
    .rna-news-title {
        font-size: 1.1em;
    }
    
    .rna-news-meta {
        flex-direction: column;
        gap: 8px;
    }
}
