/* Fix news card image sizing and remove extra space */
.news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    min-height: 0;
    max-height: 210px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #2a2236;
}
.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* News & Media Page Styles */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header-content h1.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Section title */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 1.1rem;
}

/* Trending Topics */
.trending-topics {
    background: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    overflow: hidden;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.trending-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(20, 22, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
}

.trend-rank {
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    background: rgba(6, 182, 212, 0.15);
    color: #A7F3D0;
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.trend-title {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.trend-posts {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Popular This Week */
.popular-news {
    background: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    overflow: hidden;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.popular-list {
    display: grid;
    gap: 0.75rem;
}

.popular-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: center;
    background: rgba(20, 22, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 0.75rem;
}

.popular-thumb {
    width: 88px;
    height: 66px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
}

.popular-title {
    margin: 0 0 0.25rem 0;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.popular-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.popular-meta::before {
    content: '👁';
    font-size: 0.95rem;
}

/* News Filters */
.news-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(30, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(40, 45, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Top row layout: trending + popular side by side */
.news-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

/* News Card */
.news-card {
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Featured Card - Spans 2 columns */
.news-card.featured {
    grid-column: span 2;
}

@media (max-width: 1200px) {
    .news-card.featured {
        grid-column: span 1;
    }
}

/* News Image */
.news-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    margin-bottom: 0; /* Remove extra margin below the image */
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::before {
    content: '📰';
    font-size: 4rem;
    opacity: 0.3;
}

/* News Badge */
.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
}

.badge-announcements {
    background: rgba(168, 85, 247, 0.9);
    color: #fff;
}

.badge-updates {
    background: rgba(6, 182, 212, 0.9);
    color: #fff;
}

.badge-events {
    background: rgba(236, 72, 153, 0.9);
    color: #fff;
}

.badge-tournaments {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

/* News Content */
.news-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.2rem 1.1rem 1.2rem; /* Adjust padding for tighter layout */
}

.news-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-date::before {
    content: '📅';
    margin-right: 0.5rem;
}

.news-read-time::before {
    content: '⏱️';
    margin-right: 0.5rem;
}

.news-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.news-card.featured .news-title {
    font-size: 1.75rem;
}

.news-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.btn-read-more {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    color: #fff;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    align-self: flex-start;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .news-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .news-top-row {
        gap: 1.25rem;
    }

    .trending-topics,
    .popular-news {
        padding: 1.25rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .news-top-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .page-header-content h1.page-title {
        font-size: 2rem;
    }
    
    .news-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
    }

    .trending-list,
    .popular-list {
        gap: 0.6rem;
    }
}

@media (max-width: 768px) {
    .page-header-content h1.page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .trending-topics,
    .popular-news {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .popular-item {
        grid-template-columns: 70px 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .news-content {
        padding: 1.25rem;
    }
    
    .news-title {
        font-size: 1.25rem;
    }
    
    .news-card.featured .news-title {
        font-size: 1.5rem;
    }
    
    .news-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .trending-topics,
    .popular-news {
        padding: 0.85rem;
    }

    .trending-item {
        padding: 0.65rem 0.85rem;
        gap: 0.6rem;
    }

    .trend-rank {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }

    .trend-title {
        font-size: 0.9rem;
    }

    .popular-item {
        grid-template-columns: 60px 1fr;
        gap: 0.65rem;
    }
}

@media (max-width: 480px) {
    .page-header-content h1.page-title {
        font-size: 1.5rem;
    }

    .news-card {
        padding: 1rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-card.featured .news-title {
        font-size: 1.3rem;
    }

    .trending-item,
    .popular-item {
        padding: 0.6rem;
    }
}
