/* ==========================================================================
   Integrated News Section Styles for Homepage - Horizontal List Layout
   ========================================================================== */

.news-section {
    padding: var(--space-12) 0;
    background: var(--bg-gray);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
}

.news-header .section-title {
    text-align: center;
    width: 100%;
}

.news-view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
}

.news-view-all:hover {
    gap: var(--space-2);
    color: var(--primary-dark);
}

/* News List - Horizontal Layout */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* News Item - Horizontal Layout */
.news-item-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.news-item-horizontal:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

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

/* Date and Category in Horizontal Layout */
.news-item-horizontal .news-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}

.news-item-horizontal .news-category {
    background: #ff63631a;
    color: #ff6363;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

/* Title in Horizontal Layout */
.news-item-horizontal .news-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    flex: 1;
}

.news-item-horizontal .news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.news-item-horizontal .news-title a:hover {
    color: #ff6363;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .news-section {
        padding: var(--space-8) 0;
    }
    
    .news-header {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
        margin-bottom: var(--space-6);
    }
    
    .news-item-horizontal {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    
    .news-item-horizontal .news-date {
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .news-item-horizontal .news-category {
        font-size: 0.7rem;
        padding: 2px 8px;
        min-width: 50px;
    }
    
    .news-item-horizontal .news-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: var(--space-6) 0;
    }
    
    .news-item-horizontal {
        flex-wrap: wrap;
        padding: 0.5rem 0;
    }
    
    .news-item-horizontal .news-date,
    .news-item-horizontal .news-category {
        font-size: 0.75rem;
    }
    
    .news-item-horizontal .news-title {
        font-size: 0.85rem;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .news-item-horizontal {
        border-bottom: 2px solid var(--text-primary);
    }
    
    .news-item-horizontal .news-category {
        border: 1px solid var(--primary-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .news-item-horizontal {
        transition: none;
    }
    
    .news-view-all:hover {
        gap: var(--space-1);
    }
}

/* Print styles */
@media print {
    .news-section {
        background: none !important;
        page-break-inside: avoid;
    }
    
    .news-item-horizontal {
        background: none !important;
        border-bottom: 1px solid #000;
        padding: 0.5rem 0;
    }
    
    .news-item-horizontal .news-category {
        background: none !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}