/* Add this to your existing CSS file or create a new one: INVESTech/wwwroot/css/news.css */

/* News Page Specific Styles */
.news-grid {
    gap: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
}

.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.news-card-meta i {
    margin-right: 0.5rem;
    color: #007bff;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    line-height: 1.4;
}

.news-card-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.news-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Country badges */
.country-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.date-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-weight: 400;
}

/* Filter section */
.filter-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-card .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Search enhancements */
.search-input-group .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Results info card */
.results-info-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.results-info-card h5 {
    color: white;
    margin-bottom: 1rem;
}

/* No results state */
.no-results-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
}

.no-results-icon {
    color: #adb5bd;
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* News detail modal */
.news-detail-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.news-detail-modal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.news-detail-modal .modal-body {
    padding: 2rem;
}

.news-detail .news-content {
    line-height: 1.8;
    color: #495057;
}

.news-detail .news-content h6 {
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.news-detail .news-content h6:first-of-type {
    margin-top: 0;
}

/* Related links styling */
.related-links .list-group-item {
    border: none;
    padding: 0.75rem 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
}

.related-links .list-group-item:last-child {
    border-bottom: none;
}

.related-links .list-group-item:hover {
    background: rgba(0, 123, 255, 0.05);
    padding-left: 0.5rem;
    transition: all 0.2s ease;
}

/* Pagination enhancements */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.pagination .page-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .news-card:hover {
        transform: none;
    }

    .news-card-image {
        height: 150px;
    }

    .news-card-body {
        padding: 1rem;
    }

    .filter-card .row > div {
        margin-bottom: 1rem;
    }

    .results-info-card {
        margin-top: 1rem;
    }

    .pagination {
        justify-content: center;
    }

    .pagination .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .news-card-title {
        font-size: 1.1rem;
    }

    .news-card-description {
        font-size: 0.9rem;
    }

    .filter-card .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Loading states */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.news-card:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.news-card .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

/* Print styles */
@media print {
    .filter-card,
    .pagination,
    .btn {
        display: none !important;
    }

    .news-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .news-card:hover {
        transform: none;
    }
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.lux-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.lux-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.lux-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: #667eea;
}

.badge {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .lux-card:hover {
        transform: none;
    }

    .display-5 {
        font-size: 2rem !important;
    }
}