/* Modern Search Results Styles */

.search-results-wrapper {
    background: #ffffff;
    padding: 40px 0;
}

.search-header {
    background: white;
    padding: 30px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.search-info {
    margin-top: 15px;
}

.search-term {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 5px;
}

.results-count {
    font-size: 1rem;
    color: #555555;
    font-weight: 500;
}

.section-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.section-title {
    color: #333333;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.2rem;
    color: #0c5777;
}

.badge {
    background: #0c5777;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.modern-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    background: white;
}

.modern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #0c5777;
}

.card-icon {
    background: linear-gradient(135deg, #0c5777 0%, #0a4a66 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.card-icon i {
    font-size: 2.5rem;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-card:hover .card-image img {
    transform: scale(1.05);
}

.no-image {
    background: linear-gradient(135deg, #0c5777 0%, #0a4a66 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.no-image i {
    font-size: 3rem;
}

.card-hat {
    display: inline-block;
    background: #f8f9fa;
    color: #555555;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Publication Details */
.publication-details {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.detail-item {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555555;
}

.detail-item strong {
    color: #333333;
}

/* Publication Files */
.publication-files {
    margin: 15px 0;
}

.files-title {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #333333;
}

.btn-download {
    display: block;
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    color: #333333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #0c5777;
    color: white;
    border-color: #0c5777;
}

.btn-download.locked {
    color: #999999;
    cursor: not-allowed;
}

.btn-download.locked:hover {
    background: #f8f9fa;
    color: #999999;
    border-color: #e9ecef;
}

.btn-download i {
    margin-right: 8px;
}

.btn-modern {
    background: linear-gradient(135deg, #0c5777 0%, #0a4a66 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    background: linear-gradient(135deg, #0a4a66 0%, #083d54 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(12, 87, 119, 0.3);
}

.search-loading {
    text-align: center;
    padding: 50px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.search-error {
    padding: 30px;
}

.modern-no-results {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.no-results-icon {
    font-size: 4rem;
    color: #0c5777;
    margin-bottom: 20px;
}

.no-results-icon i {
    font-size: inherit;
}

.modern-no-results h4 {
    color: #0c5777;
    font-weight: 600;
    margin-bottom: 15px;
}

.modern-no-results p {
    color: #6c757d;
    margin-bottom: 25px;
}

.btn-outline-primary {
    border-color: #0c5777;
    color: #0c5777;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #0c5777;
    color: white;
    transform: translateY(-2px);
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.pagination a:hover,
.pagination .active span {
    background: #0c5777;
    color: white;
    border-color: #0c5777;
}

.pagination .disabled span {
    color: #cccccc;
    cursor: not-allowed;
}

.pagination .disabled span:hover {
    background: white;
    color: #cccccc;
    border-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-header,
    .section-header {
        padding: 20px;
    }

    .modern-no-results {
        padding: 30px;
    }

    .no-results-icon {
        font-size: 3rem;
    }
    
    .pagination a,
    .pagination span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
