/* ============================================
   NEWS RESULT CARD STYLES
   ============================================
   Extracted from story-list-items.jsp
   Uses CSS variables from /css/site-vars.css.jspf:
   - --site-primary, --site-secondary
   ============================================ */

.news-result-card {
    background: var(--color-bg-surface);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.news-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s ease;
    z-index: 1;
}

.news-result-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.1);
}

.news-result-card:hover::before {
    background: var(--site-primary);
}

.news-result-content {
    display: flex;
    padding: 18px;
    gap: 18px;
    position: relative;
    z-index: 0;
}

.news-result-image {
    flex-shrink: 0;
    width: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.news-result-image img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-result-card:hover .news-result-image img {
    transform: scale(1.05);
}

.news-result-details {
    flex: 1;
    min-width: 0;
}

.news-result-meta {
    font-size: 0.875em;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.news-result-meta b {
    color: #374151;
    font-weight: 500;
}

.news-result-meta a,
.news-result-meta a:link,
.news-result-meta a:visited,
.news-result-meta a:active,
.news-result-meta .profile_tip,
.news-result-meta .profile_tip:link,
.news-result-meta .profile_tip:visited,
.news-result-meta .profile_tip:active {
    color: var(--site-primary) !important;
    text-decoration: none;
}

.news-result-meta a:hover,
.news-result-meta .profile_tip:hover {
    color: var(--site-secondary) !important;
    text-decoration: underline;
}

.news-result-title,
.news-result-title:link,
.news-result-title:visited,
.news-result-title:active {
    color: var(--site-primary) !important;
    font-size: 1.3em;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-result-title:hover {
    color: var(--site-secondary) !important;
    text-decoration: none;
}

.news-result-teaser {
    font-size: 0.9375em;
    color: #4b5563;
    line-height: 1.6;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .news-result-content {
        flex-direction: column;
    }
    
    .news-result-image {
        width: 100%;
    }
}

/* Dark mode overrides for Latest News cards (bio updates widget + story lists) */
html.dark-mode .news-result-card {
    background: var(--dm-bg-card, #1f1f1f);
    border-color: var(--dm-border, rgba(255, 255, 255, 0.14));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
}

html.dark-mode .news-result-card:hover {
    border-color: var(--dm-border-light, rgba(255, 255, 255, 0.28));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
}

html.dark-mode .news-result-meta {
    color: var(--dm-text-muted, #a6adbb);
}

html.dark-mode .news-result-meta b {
    color: var(--dm-text-secondary, #d8deea);
}

html.dark-mode .news-result-meta a,
html.dark-mode .news-result-meta a:link,
html.dark-mode .news-result-meta a:visited,
html.dark-mode .news-result-meta a:active,
html.dark-mode .news-result-meta .profile_tip,
html.dark-mode .news-result-meta .profile_tip:link,
html.dark-mode .news-result-meta .profile_tip:visited,
html.dark-mode .news-result-meta .profile_tip:active {
    color: var(--dm-text-link, #ffb76c) !important;
}

html.dark-mode .news-result-title,
html.dark-mode .news-result-title:link,
html.dark-mode .news-result-title:visited,
html.dark-mode .news-result-title:active {
    color: var(--dm-text-link, #ffb76c) !important;
}

html.dark-mode .news-result-title:hover {
    color: #ffffff !important;
}

html.dark-mode .news-result-teaser {
    color: var(--dm-text-secondary, #d8deea);
}
