/**
 * ================================================================
 * NEWS LIST - ADMIN PANEL STYLES
 * ================================================================
 * File: news_list.css
 * Description: Styles khusus untuk halaman list berita
 * Bootstrap 5 Compatible
 * Mobile Responsive - Grid 2 Column Layout
 * Minimal & Modern Design
 * ================================================================
 */

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
    /* Colors */
    --news-primary: #007bff;
    --news-primary-dark: #0056b3;
    --news-success: #28a745;
    --news-warning: #ffc107;
    --news-danger: #dc3545;
    --news-info: #17a2b8;
    
    /* Grays */
    --news-gray-100: #f8f9fa;
    --news-gray-200: #e9ecef;
    --news-gray-300: #dee2e6;
    --news-gray-400: #ced4da;
    --news-gray-500: #adb5bd;
    --news-gray-600: #6c757d;
    --news-gray-700: #495057;
    --news-gray-800: #343a40;
    --news-gray-900: #212529;
    
    /* Spacing */
    --news-spacing-xs: 0.25rem;
    --news-spacing-sm: 0.5rem;
    --news-spacing-md: 1rem;
    --news-spacing-lg: 1.5rem;
    --news-spacing-xl: 2rem;
    --news-spacing-xxl: 3rem;
    
    /* Border Radius */
    --news-radius-sm: 0.375rem;
    --news-radius-md: 0.5rem;
    --news-radius-lg: 0.75rem;
    --news-radius-xl: 1rem;
    
    /* Shadows */
    --news-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --news-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --news-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --news-shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --news-transition-fast: 0.15s ease;
    --news-transition-normal: 0.3s ease;
    --news-transition-slow: 0.5s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.news-list-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: var(--news-spacing-lg) 0;
}

.news-list-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--news-radius-lg);
    padding: var(--news-spacing-xl);
    margin-bottom: var(--news-spacing-xl);
    box-shadow: var(--news-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-list-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--news-spacing-md);
}

.news-list-title-wrapper {
    flex: 1;
    min-width: 250px;
}

.news-list-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-list-main-title i {
    color: var(--news-primary);
    font-size: 1.5rem;
}

.news-list-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.news-list-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.news-list-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--news-radius-sm);
    font-weight: 500;
    transition: all var(--news-transition-normal);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.news-list-header-btn-primary {
    background: linear-gradient(135deg, var(--news-primary) 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.news-list-header-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.news-list-header-btn-outline {
    background: transparent;
    color: var(--news-primary);
    border: 2px solid var(--news-primary);
}

.news-list-header-btn-outline:hover {
    background: var(--news-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ================================================================
   FILTER SECTION
   ================================================================ */
.news-filter-section {
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    padding: var(--news-spacing-xl);
    margin-bottom: var(--news-spacing-xl);
    box-shadow: var(--news-shadow-sm);
    border: 1px solid #e9ecef;
}

.news-filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: var(--news-spacing-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-filter-title i {
    color: var(--news-primary);
}

.news-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--news-spacing-md);
    align-items: end;
}

.news-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-filter-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--news-radius-sm);
    font-size: 0.9rem;
    transition: all var(--news-transition-normal);
    background: #ffffff;
}

.news-filter-input:focus {
    border-color: var(--news-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.news-filter-input-icon-wrapper {
    position: relative;
}

.news-filter-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.news-filter-input-with-icon {
    padding-left: 2.75rem;
}

.news-filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--news-radius-sm);
    font-size: 0.9rem;
    background: #ffffff;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.news-filter-select:focus {
    border-color: var(--news-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.news-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.news-filter-btn {
    padding: 0.75rem 1.25rem;
    border-radius: var(--news-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-filter-btn-primary {
    background: var(--news-primary);
    color: #ffffff;
}

.news-filter-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.news-filter-btn-reset {
    background: #6c757d;
    color: #ffffff;
}

.news-filter-btn-reset:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* ================================================================
   STATS BAR
   ================================================================ */
.news-stats-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--news-radius-md);
    padding: var(--news-spacing-lg);
    margin-bottom: var(--news-spacing-lg);
    box-shadow: var(--news-shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--news-spacing-md);
    border: 1px solid #e9ecef;
}

.news-stats-info {
    display: flex;
    align-items: center;
    gap: var(--news-spacing-md);
    flex-wrap: wrap;
}

.news-stats-badge {
    background: linear-gradient(135deg, var(--news-primary) 0%, #0056b3 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.news-stats-text {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.25rem;
    border-radius: var(--news-radius-sm);
}

.news-view-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    border-radius: var(--news-radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--news-transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-view-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.news-view-btn.active {
    background: var(--news-primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* ================================================================
   GRID VIEW - 2 COLUMN LAYOUT (MOBILE RESPONSIVE)
   ================================================================ */
.news-grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--news-spacing-lg);
    margin-bottom: var(--news-spacing-xl);
}

.news-item-card {
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.news-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--news-primary);
}

.news-item-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--news-radius-md) var(--news-radius-md) 0 0;
}

.news-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    opacity: 0;
}

.news-item-image.loaded,
.news-item-image[loading="lazy"] {
    opacity: 1;
}

.news-item-card:hover .news-item-image {
    transform: scale(1.08);
}

.news-item-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.news-item-image-placeholder i {
    font-size: 4rem;
    color: #adb5bd;
    opacity: 0.5;
}

.news-item-badges {
    position: absolute;
    top: 0.875rem;
    left: 0;
    right: 0;
    padding: 0 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    z-index: 10;
}

.news-item-status-badge {
    padding: 0.4rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-item-status-published {
    background: rgba(40, 167, 69, 0.95);
    color: #ffffff;
}

.news-item-status-draft {
    background: rgba(255, 193, 7, 0.95);
    color: #212529;
}

.news-item-status-archived {
    background: rgba(108, 117, 125, 0.95);
    color: #ffffff;
}

.news-item-number-badge {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.95), rgba(0, 86, 179, 0.95));
    color: #ffffff;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 32px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.news-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.news-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.news-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--news-transition-normal);
}

.news-item-title a:hover {
    color: var(--news-primary);
}

.news-item-excerpt {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.news-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.news-item-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.news-item-meta-icon {
    width: 16px;
    text-align: center;
    color: var(--news-primary);
}

.news-item-stats {
    display: flex;
    justify-content: space-around;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: var(--news-radius-sm);
}

.news-item-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.news-item-stat i {
    color: var(--news-primary);
    font-size: 0.9rem;
}

.news-item-stat-number {
    font-weight: 600;
    color: #495057;
}

.news-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.news-item-action-btn {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    border-radius: var(--news-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item-action-view {
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    color: #ffffff;
}

.news-item-action-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.news-item-action-edit {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.news-item-action-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.news-item-action-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
}

.news-item-action-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* ================================================================
   LIST VIEW (TABLE)
   ================================================================ */
.news-list-view {
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    overflow: hidden;
    box-shadow: var(--news-shadow-sm);
    margin-bottom: var(--news-spacing-xl);
}

.news-list-table {
    width: 100%;
    border-collapse: collapse;
}

.news-list-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-list-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.news-list-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all var(--news-transition-normal);
}

.news-list-table tbody tr:hover {
    background: #f8f9fa;
}

.news-list-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    font-size: 0.875rem;
}

.news-list-table-image {
    width: 60px;
    height: 60px;
    border-radius: var(--news-radius-sm);
    object-fit: cover;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    opacity: 1;
}

.news-list-table-image:hover {
    transform: scale(1.1);
}

.news-list-table-image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--news-radius-sm);
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.news-list-table-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-list-table-title-content {
    flex: 1;
}

.news-list-table-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.news-list-table-title a {
    color: inherit;
    text-decoration: none;
}

.news-list-table-title a:hover {
    color: var(--news-primary);
}

.news-list-table-excerpt {
    font-size: 0.8rem;
    color: #6c757d;
}

.news-list-table-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-list-table-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-list-table-author-name {
    font-weight: 500;
    color: #495057;
}

.news-list-table-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-list-table-stat-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.news-list-table-stat-icon {
    color: var(--news-primary);
    width: 16px;
}

.news-list-table-date {
    text-align: center;
}

.news-list-table-date-main {
    font-weight: 600;
    color: #495057;
}

.news-list-table-date-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.news-list-table-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
}

.news-list-table-action-btn {
    padding: 0.4rem 0.65rem;
    border: none;
    border-radius: var(--news-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

/* ================================================================
   PAGINATION
   ================================================================ */
.news-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--news-spacing-xl);
    margin-bottom: var(--news-spacing-xl);
}

.news-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-pagination-item {
    margin: 0;
}

.news-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: var(--news-radius-sm);
    color: #495057;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--news-transition-normal);
}

.news-pagination-link:hover {
    background: #f8f9fa;
    border-color: var(--news-primary);
    color: var(--news-primary);
    transform: translateY(-2px);
}

.news-pagination-item.active .news-pagination-link {
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    border-color: var(--news-primary);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.news-pagination-item.disabled .news-pagination-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.news-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    box-shadow: var(--news-shadow-sm);
    margin: var(--news-spacing-xl) 0;
}

.news-empty-state-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
    display: block;
}

.news-empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.news-empty-state-text {
    font-size: 1rem;
    color: #adb5bd;
    margin-bottom: 2rem;
}

.news-empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--news-primary), #0056b3);
    color: #ffffff;
    border: none;
    border-radius: var(--news-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--news-transition-normal);
    text-decoration: none;
}

.news-empty-state-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* ================================================================
   LOADING STATE & SKELETON
   ================================================================ */
.news-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.news-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 123, 255, 0.1);
    border-top-color: var(--news-primary);
    border-radius: 50%;
    animation: news-spin 0.8s linear infinite;
}

@keyframes news-spin {
    to {
        transform: rotate(360deg);
    }
}

.news-loading-text {
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
}

/* Skeleton Loading Animation */
@keyframes news-skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.news-skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: news-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--news-radius-sm);
}

.news-item-image.loading {
    animation: news-skeleton-loading 1.5s ease-in-out infinite;
}

/* ================================================================
   MODAL DELETE
   ================================================================ */
.news-delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.news-delete-modal.show {
    display: flex;
}

.news-delete-modal-content {
    background: #ffffff;
    border-radius: var(--news-radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.news-delete-modal-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-delete-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-delete-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color var(--news-transition-normal);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-delete-modal-close:hover {
    color: #dc3545;
}

.news-delete-modal-body {
    padding: 2rem 1.5rem;
}

.news-delete-modal-text {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1rem;
}

.news-delete-modal-warning {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: var(--news-radius-sm);
    color: #721c24;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.news-delete-modal-warning i {
    color: #dc3545;
    margin-top: 0.125rem;
}

.news-delete-modal-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.news-delete-modal-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--news-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--news-transition-normal);
}

.news-delete-modal-btn-cancel {
    background: #6c757d;
    color: #ffffff;
}

.news-delete-modal-btn-cancel:hover {
    background: #545b62;
}

.news-delete-modal-btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
}

.news-delete-modal-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* ================================================================
   RESPONSIVE - MOBILE FIRST
   ================================================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .news-list-page {
        padding: var(--news-spacing-md) 0;
    }
    
    .news-grid-view {
        grid-template-columns: 1fr;
        gap: var(--news-spacing-lg);
    }
    
    .news-list-header {
        padding: var(--news-spacing-lg);
        margin-bottom: var(--news-spacing-lg);
    }
    
    .news-list-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--news-spacing-md);
    }
    
    .news-list-main-title {
        font-size: 1.375rem;
    }
    
    .news-list-main-title i {
        font-size: 1.25rem;
    }
    
    .news-list-subtitle {
        font-size: 0.875rem;
    }
    
    .news-list-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .news-list-header-btn {
        flex: 1;
        justify-content: center;
        width: 100%;
        padding: 0.875rem 1.25rem;
    }
    
    .news-filter-section {
        padding: var(--news-spacing-md);
        margin-bottom: var(--news-spacing-lg);
    }
    
    .news-filter-title {
        font-size: 1rem;
    }
    
    .news-filter-form {
        grid-template-columns: 1fr;
        gap: var(--news-spacing-md);
    }
    
    .news-filter-actions {
        flex-direction: column;
        gap: var(--news-spacing-sm);
    }
    
    .news-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .news-stats-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--news-spacing-md);
        padding: var(--news-spacing-md);
    }
    
    .news-stats-info {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .news-view-toggle {
        justify-content: center;
        width: 100%;
    }
    
    .news-view-btn {
        flex: 1;
    }
    
    .news-item-card {
        margin-bottom: 0;
        border-radius: var(--news-radius-md);
    }
    
    .news-item-image-wrapper {
        padding-top: 60%;
        border-radius: var(--news-radius-md) var(--news-radius-md) 0 0;
    }
    
    .news-item-content {
        padding: 1.25rem;
    }
    
    .news-item-title {
        font-size: 1rem;
        min-height: 2.8em;
    }
    
    .news-item-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 2.6em;
    }
    
    .news-item-meta {
        gap: 0.4rem;
    }
    
    .news-item-meta-row {
        font-size: 0.75rem;
    }
    
    .news-item-stats {
        padding: 0.625rem;
        gap: 0.5rem;
    }
    
    .news-item-stat {
        font-size: 0.75rem;
    }
    
    .news-item-actions {
        gap: 0.5rem;
    }
    
    .news-item-action-btn {
        width: 100%;
        padding: 0.75rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .news-list-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-list-table {
        min-width: 800px;
    }
    
    .news-pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .news-pagination-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .news-empty-state {
        padding: 3rem 1.5rem;
    }
    
    .news-empty-state-icon {
        font-size: 4rem;
    }
    
    .news-empty-state-title {
        font-size: 1.25rem;
    }
    
    .news-empty-state-text {
        font-size: 0.875rem;
    }
}

/* Small Devices (landscape phones, 576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .news-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--news-spacing-lg);
    }
    
    .news-filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item-content {
        padding: 1rem;
    }
    
    .news-item-title {
        font-size: 0.95rem;
        min-height: 2.6em;
    }
    
    .news-item-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .news-item-action-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }
}

/* Medium Devices (tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .news-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--news-spacing-xl);
    }
    
    .news-filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-item-content {
        padding: 1.25rem;
    }
    
    .news-item-title {
        font-size: 1rem;
    }
    
    .news-item-action-btn {
        font-size: 0.8rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .news-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--news-spacing-xl);
    }
    
    .news-filter-form {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .news-item-image-wrapper {
        padding-top: 56.25%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .news-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--news-spacing-xxl);
    }
    
    .news-item-content {
        padding: 1.75rem;
    }
    
    .news-item-title {
        font-size: 1.25rem;
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .news-grid-view {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--news-spacing-xxl);
    }
}

/* ================================================================
   HOVER EFFECTS & ANIMATIONS
   ================================================================ */
@keyframes news-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item-card {
    animation: news-fade-in-up 0.5s ease-out;
}

.news-item-card:nth-child(1) { animation-delay: 0s; }
.news-item-card:nth-child(2) { animation-delay: 0.05s; }
.news-item-card:nth-child(3) { animation-delay: 0.1s; }
.news-item-card:nth-child(4) { animation-delay: 0.15s; }
.news-item-card:nth-child(5) { animation-delay: 0.2s; }
.news-item-card:nth-child(6) { animation-delay: 0.25s; }

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .news-list-header-actions,
    .news-filter-section,
    .news-stats-bar,
    .news-view-toggle,
    .news-item-actions,
    .news-pagination-wrapper {
        display: none !important;
    }
    
    .news-grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .news-item-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        page-break-inside: avoid;
    }
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.news-item-card:focus-within {
    outline: 2px solid var(--news-primary);
    outline-offset: 2px;
}

.news-item-action-btn:focus,
.news-filter-btn:focus,
.news-pagination-link:focus {
    outline: 2px solid var(--news-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .news-item-card,
    .news-filter-section,
    .news-stats-bar {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .news-item-card,
    .news-item-image,
    .news-item-action-btn,
    .news-pagination-link {
        animation: none;
        transition: none;
    }
}

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container Responsive Padding */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .container-fluid {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Focus Visible Enhancement */
*:focus-visible {
    outline: 2px solid var(--news-primary);
    outline-offset: 2px;
    border-radius: var(--news-radius-sm);
}

/* Selection Color */
::selection {
    background-color: rgba(0, 123, 255, 0.2);
    color: inherit;
}

::-moz-selection {
    background-color: rgba(0, 123, 255, 0.2);
    color: inherit;
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--news-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--news-primary-dark);
}

/* ================================================================
   END OF NEWS_LIST.CSS
   ================================================================ */

