
/* News Widget Light Theme - For Dark Backgrounds */
.news-widget-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
}

.news-widget-article {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #3a3a3a;
}

.news-widget-article:last-child {
    border-bottom: none;
}

.news-widget-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 150px;
}

.news-widget-image img {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.news-widget-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.news-widget-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #b0b0b0;
}

.news-widget-date::after {
    content: '•';
    margin-left: 12px;
}

.news-widget-body {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #e0e0e0;
}

.news-widget-body h1,
.news-widget-body h2,
.news-widget-body h3,
.news-widget-body h4,
.news-widget-body h5,
.news-widget-body h6 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.news-widget-body h1 { font-size: 24px; }
.news-widget-body h2 { font-size: 22px; }
.news-widget-body h3 { font-size: 20px; }
.news-widget-body h4 { font-size: 18px; }

.news-widget-body p {
    margin-bottom: 16px;
}

.news-widget-body ul,
.news-widget-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.news-widget-body li {
    margin-bottom: 8px;
}

.news-widget-body a {
    color: #66b3ff;
    text-decoration: underline;
}

.news-widget-body a:hover {
    color: #99ccff;
}

.news-widget-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
}

.news-widget-body blockquote {
    border-left: 4px solid #4a4a4a;
    padding-left: 16px;
    margin: 16px 0;
    color: #b0b0b0;
    font-style: italic;
}

.news-widget-body code {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e0e0e0;
}

.news-widget-body pre {
    background: #2a2a2a;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}

.news-widget-body pre code {
    background: none;
    padding: 0;
}

.news-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.news-widget-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #2a2a2a;
    border-radius: 16px;
    font-size: 13px;
    color: #c0c0c0;
}

.news-widget-read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #66b3ff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.news-widget-read-more:hover {
    background: #99ccff;
}

.news-widget-empty,
.news-widget-error {
    text-align: center;
    color: #b0b0b0;
    padding: 40px 0;
}

.news-widget-error {
    color: #ff6666;
}

@media (max-width: 640px) {
    .news-widget-container {
        padding: 0 12px;
    }
    
    .news-widget-title {
        font-size: 24px;
    }
    
    .news-widget-body {
        font-size: 15px;
    }
    
    .news-widget-article {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}
