/* ============================================
   NEWS PAGE - ARTICLES & SOCIAL FEED
   ============================================ */

:root {
    --predators-gold: #FFB81C;
    --predators-navy: #041E42;
}

.page-news {
    background: #EDEEF0;
    min-height: 100vh;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.news-page-header {
    background: var(--brand-navy-900);
    color: var(--neutral-white);
    padding: var(--space-6) var(--space-6) var(--space-5);
}

.news-header-content {
    max-width: var(--container-2xl);
    margin: 0 auto;
}

.news-page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    margin: 0 0 var(--space-2) 0;
}

.season-subtitle {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   NEWS CONTAINER - TWO COLUMN LAYOUT
   ============================================ */

.news-container {
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
}

.news-articles-column {
    min-width: 0;
}

.social-feed-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Twitter Feed Wrapper */
.twitter-feed-wrapper {
    background: var(--neutral-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    /* Removed max-height - Twitter widget manages its own height */
}

/* SociableKit widget container */
.sk-ww-twitter-feed {
    width: 100%;
}

/* Twitter feed styles moved to /css/twitter-feed.css */

/* ============================================
   SECTION HEADINGS
   ============================================ */

/* News section header with filter */
.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-heading {
    font-size: 24px;
    font-weight: 800;
    color: #48494A;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--predators-gold);
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* News Filters */
.news-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-filter-select {
    padding: 10px 36px 10px 14px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s ease;
}

.source-filter-select:hover {
    border-color: #d1d5db;
}

.source-filter-select:focus {
    outline: none;
    border-color: var(--predators-gold);
    box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.15);
}

@media (max-width: 768px) {
    .news-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .news-filters {
        width: 100%;
    }

    .source-filter-select {
        width: 100%;
    }
}

.heading-icon {
    font-size: 28px;
}

/* ============================================
   NEWS GRID - ARTICLE CARDS
   ============================================ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    /* Removed max-height and overflow-y to fix nested scrollbar issue */
}

.news-article-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.news-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--predators-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Style for logo fallback images */
.article-image[src*="NSH_light.svg"],
.article-image[src*="NSH_dark.svg"] {
    object-fit: contain;
    padding: 20px;
}

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

.article-source-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--predators-gold);
    color: var(--predators-navy);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.article-source {
    font-size: 11px;
    font-weight: 700;
    color: var(--predators-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    font-size: 11px;
    color: #6b7280;
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    color: #48494A;
    margin: 0 0 8px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title-link:hover {
    color: var(--predators-gold);
}

.article-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    margin: 0 0 auto 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #48494A;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.article-read-more:hover {
    color: var(--predators-gold);
    gap: 10px;
}

.article-read-more::after {
    content: '→';
    font-size: 16px;
}

/* ============================================
   SOCIAL MEDIA LINKS
   ============================================ */

.social-section {
    margin-bottom: 32px;
}

.social-links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: var(--predators-gold);
}

.social-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #041E42;
    border-radius: 12px;
    flex-shrink: 0;
}

.social-content {
    flex: 1;
}

.social-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #48494A;
    margin: 0 0 4px 0;
}

.social-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.follow-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--predators-gold);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--predators-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-spinner p {
    color: #6b7280;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* No results message */
.no-results-message {
    text-align: center;
    padding: 48px 20px;
    background: #ffffff;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.no-results-message p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 32px 0;
    margin-top: 16px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #041E42;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: #062952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 30, 66, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn.loading {
    background: #6b7280;
    cursor: wait;
}

.load-more-btn .remaining-count {
    font-size: 12px;
    opacity: 0.8;
}

.load-more-btn .loading-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn .loading-text::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .news-container {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }

    .article-image-wrapper {
        width: 160px;
        height: 120px;
    }

    .news-article-card {
        grid-template-columns: 160px 1fr;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .social-feed-column {
        position: static;
    }

    .news-article-card {
        grid-template-columns: 220px 1fr;
    }

    .article-image-wrapper {
        width: 220px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .news-page-header {
        padding: 24px 20px 20px;
    }

    .news-page-header h1 {
        font-size: 26px;
    }

    .news-container {
        padding: 28px 20px;
        gap: 28px;
    }

    .section-heading {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .news-grid {
        gap: 20px;
        max-height: none;
        overflow-y: visible;
    }

    .news-article-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .article-image-wrapper {
        width: 100%;
        height: 180px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .article-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .twitter-feed-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 24px 16px;
    }

    .article-image-wrapper {
        height: 170px;
    }

    .article-content {
        padding: 18px;
    }

    .article-title {
        font-size: 17px;
        line-height: 1.4;
    }

    .article-description {
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .news-grid {
        gap: 18px;
    }
}
