/* ==================== NEWS SECTION STYLES ==================== */

.news-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.08);
}

.news-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-announcement {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.badge-changelog {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-blog {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.badge-update {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.badge-event {
    background: rgba(236, 72, 153, 0.9);
    color: white;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.news-description {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.news-date {
    font-size: 0.85rem;
    color: #10b981;
}

.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
}

.no-news {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.no-news p {
    color: #9ca3af;
    font-size: 1.1rem;
}

/* Animation for fade in on scroll */
.news-card.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

.news-card.fade-in-on-scroll.visible {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-section {
        padding: 3rem 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 1rem;
    }

    .news-image-container {
        width: 150px;
        height: 100px;
        border-radius: 0.5rem;
    }

    .news-content {
        padding: 0;
    }

    .news-badge {
        position: static;
        display: inline-block;
        width: fit-content;
    }
}
