/* News Feed Page
   Extracted from news_feed.html */

/* CNN-Style News Feed Layout */
.news-feed-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

/* Hero Section - Main Story */
.news-hero {
    display: block;
    position: relative;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-12);
    cursor: pointer;
    transition: all var(--transition-normal);
    background: linear-gradient(135deg, var(--space-gray-800, #1e293b) 0%, var(--space-gray-900, #0f172a) 100%);
    text-decoration: none;
}

.news-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.news-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-8);
}

.news-hero-category {
    display: inline-block;
    background: var(--spacex-blue);
    color: white; /* hardcoded: white on accent bg */
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
    width: fit-content;
}

.news-hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: white; /* hardcoded: white on dark image overlay */
    margin-bottom: var(--space-3);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: rgba(255, 255, 255, 0.9); /* hardcoded: white on dark image overlay */
    font-size: var(--text-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* News Grid - 3 Column Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (width <= 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.news-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    border-color: var(--spacex-blue);
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--space-gray-800);
}

.news-card-content {
    padding: var(--space-6);
}

.news-card-category {
    display: inline-block;
    background: var(--accent-tint);
    color: var(--spacex-blue-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
}

.news-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.news-card-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-xs);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-color);
}

/* Cross-Tenant Badge */
.cross-tenant-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: white; /* hardcoded: white on colored badge bg */
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full, 9999px);
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-3);
    opacity: 0.9;
}

.cross-tenant-badge i {
    font-size: 0.65rem;
}

.news-card--cross-tenant {
    border-left: 3px solid var(--spacex-blue);
}

/* Headlines Section */
.news-headlines {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

.news-headlines-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--spacex-blue);
}

.news-headlines-icon {
    font-size: var(--text-2xl);
    color: var(--spacex-blue);
}

.news-headlines-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.news-headline-item {
    display: block;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-headline-item:last-child {
    border-bottom: none;
}

.news-headline-item:hover {
    background: var(--glass-bg);
    padding-left: var(--space-6);
}

.news-headline-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.news-headline-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Loading State */
.news-loading {
    text-align: center;
    padding: var(--space-16);
    color: var(--text-secondary);
}

.news-loading-spinner {
    font-size: 3rem;
    color: var(--spacex-blue);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (width <= 768px) {
    .news-hero {
        height: 300px;
    }

    .news-hero-title {
        font-size: var(--text-2xl);
    }

    .news-feed-container {
        padding: var(--space-6) var(--space-4);
    }
}
