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

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

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

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

.news-page-header {
    background: linear-gradient(135deg, var(--predators-navy) 0%, #052a5c 100%);
    color: white;
    padding: 24px 24px 20px;
}

.news-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.news-page-header h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 8px 0;
}

.season-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

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

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

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

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

/* Twitter Feed Wrapper */
.twitter-feed-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Custom scrollbar for Twitter feed */
.twitter-feed-wrapper::-webkit-scrollbar {
    width: 8px;
}

.twitter-feed-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.twitter-feed-wrapper::-webkit-scrollbar-thumb {
    background: var(--predators-gold);
    border-radius: 4px;
}

.twitter-feed-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e5a815;
}

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

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

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

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

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

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar */
.news-grid::-webkit-scrollbar {
    width: 8px;
}

.news-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: var(--predators-gold);
    border-radius: 4px;
}

.news-grid::-webkit-scrollbar-thumb:hover {
    background: #e5a815;
}

.news-article-card {
    background: white;
    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: var(--predators-navy);
    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: var(--predators-navy);
    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: white;
    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: linear-gradient(135deg, var(--predators-navy) 0%, #052a5c 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.social-content {
    flex: 1;
}

.social-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--predators-navy);
    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;
}

/* ============================================
   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: 20px 16px 16px;
    }

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

    .news-container {
        padding: 24px 16px;
        gap: 24px;
    }

    .section-heading {
        font-size: 20px;
    }

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

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

    .article-content {
        padding: 20px;
    }

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

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

@media (max-width: 480px) {
    .article-image-wrapper {
        height: 180px;
    }

    .article-content {
        padding: 16px;
    }

    .article-title {
        font-size: 16px;
    }

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