/**
 * RSS News Summarizer - Front-end Styles
 */

.rns-news-summaries {
    max-width: 100%;
    margin: 2rem 0;
}

.rns-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #2563eb;
}

.rns-article {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.rns-article:last-of-type {
    border-bottom: none;
}

.rns-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.rns-article-title a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rns-article-title a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.rns-article-date {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.rns-article-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.rns-article-summary p {
    margin: 0 0 0.75rem 0;
}

.rns-article-summary p:last-child {
    margin-bottom: 0;
}

.rns-article-error {
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
}

.rns-attribution {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.875rem;
}

.rns-attribution a {
    color: #6b7280;
}

.rns-attribution a:hover {
    color: #374151;
}

.rns-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
}

.rns-notice {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    color: #a16207;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .rns-article-title a {
        color: #60a5fa;
    }
    
    .rns-article-title a:hover {
        color: #93c5fd;
    }
    
    .rns-article-summary {
        color: #d1d5db;
    }
    
    .rns-article-date,
    .rns-attribution {
        color: #9ca3af;
    }
    
    .rns-article,
    .rns-attribution {
        border-color: #374151;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rns-title {
        font-size: 1.5rem;
    }
    
    .rns-article-title {
        font-size: 1.125rem;
    }
    
    .rns-article-summary {
        font-size: 0.9375rem;
    }
}

/* Print styles */
@media print {
    .rns-news-summaries {
        max-width: 100%;
    }
    
    .rns-article {
        page-break-inside: avoid;
    }
    
    .rns-article-title a {
        color: #000;
        text-decoration: none;
    }
    
    .rns-article-title a::after {
        content: " (" attr(href) ")";
        font-size: 0.75rem;
        font-weight: normal;
    }
}
