/* NEWS.CSS */
/* PURPOSE: STYLING FOR NEWS FEED SECTIONS */

/* NEWS SECTION */
.news-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.news-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* NEWS LOADING AND ERROR */
.news-loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.news-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
    text-align: center;
}

/* NEWS CARDS CONTAINER - VERTICAL LIST */
.news-cards {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    border-left: 4px solid var(--gold-border);
}

/* NEWS ITEM - VERTICAL LIST STYLE */
.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.news-item:hover {
    background: var(--bg-primary);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* NEWS ITEM TITLE */
.news-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.news-item-title:hover {
    color: var(--gold-border);
    text-decoration: underline;
}

/* NEWS ITEM DATE */
.news-item-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* RESPONSIVE DESIGN - TABLET */
@media (max-width: 768px) {
    .news-section-title {
        font-size: 1.5rem;
    }
    
    .news-cards {
        padding: 1.25rem;
    }
    
    .news-item {
        padding: 0.75rem 0;
    }
    
    .news-item-title {
        font-size: 0.95rem;
    }
    
    .news-item-date {
        font-size: 0.8rem;
    }
}

/* RESPONSIVE DESIGN - MOBILE */
@media (max-width: 480px) {
    .news-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .news-section-title {
        font-size: 1.3rem;
    }
    
    .news-cards {
        padding: 1rem;
    }
    
    .news-item {
        padding: 0.75rem 0;
    }
    
    .news-item-title {
        font-size: 0.9rem;
    }
    
    .news-item-date {
        font-size: 0.75rem;
    }
}