/* ========================================
   News Page Styles
   ======================================== */

/* News Page Header */
.news-page-header {
    padding-top: 64px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.news-tabs {
    display: flex;
    gap: 32px;
    padding: 16px 0;
}

.news-tab {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.news-tab:hover {
    color: var(--primary-color);
}

.news-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* News Content */
.news-content {
    padding: 32px 0 60px;
    background: var(--bg-secondary);
    min-height: calc(100vh - 200px);
}

.news-layout {
    display: flex;
    gap: 24px;
}

/* Sidebar */
.news-sidebar {
    flex: 0 0 200px;
}

.news-categories {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.news-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.news-category-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.news-category-link.active {
    background: var(--bg-secondary);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.btn-submit:hover {
    opacity: 0.9;
}

/* News Main */
.news-main {
    flex: 1;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* News Item */
.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
}

.news-item-image {
    flex: 0 0 200px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.pin-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
}

.news-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-item-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-author {
    color: var(--primary-color);
    font-weight: 500;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pinned News Item */
.news-item.pinned {
    border-left: 3px solid #f56565;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-layout {
        flex-direction: column;
    }
    
    .news-sidebar {
        flex: none;
        width: 100%;
    }
    
    .news-categories {
        display: flex;
        flex-wrap: wrap;
        overflow-x: auto;
    }
    
    .news-category-link {
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .news-category-link.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-item-image {
        flex: none;
        width: 100%;
        height: 180px;
    }
    
    .news-tabs {
        gap: 20px;
    }
    
    .news-tab {
        font-size: 0.875rem;
    }
}
