/**
 * Frontend-Styles für Multisite News Aggregator
 */

.multisite-news-aggregator {
    margin: 20px 0;
}

.msna-post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.msna-post:last-child {
    border-bottom: none;
}

.msna-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    line-height: 1.4;
}

.msna-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.msna-title a:hover {
    color: #0073aa;
}

.msna-meta {
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.msna-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.msna-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.msna-excerpt {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.msna-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.msna-read-more:hover {
    color: #005177;
    text-decoration: underline;
}

.msna-no-posts {
    padding: 20px;
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .msna-title {
        font-size: 1.2em;
    }
    
    .msna-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Widget-Styles */
.widget .multisite-news-aggregator {
    margin: 10px 0;
}

.widget .msna-post {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.widget .msna-title {
    font-size: 1.1em;
}

.widget .msna-meta {
    font-size: 0.85em;
}

.widget .msna-excerpt {
    font-size: 0.9em;
}

/* Dunkles Theme Support */
@media (prefers-color-scheme: dark) {
    .msna-post {
        border-bottom-color: #444;
    }
    
    .msna-title a {
        color: #f0f0f0;
    }
    
    .msna-title a:hover {
        color: #5b9dd9;
    }
    
    .msna-meta {
        color: #aaa;
    }
    
    .msna-excerpt {
        color: #ccc;
    }
    
    .msna-no-posts {
        background: #333;
        color: #aaa;
    }
}
