/* IAS Abstract Repository - Abstract Specific Styles */

/* Search input styling */
#searchinput {
    border: 2px solid var(--ias-gray-light);
    border-radius: 12px 0 0 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--ias-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#searchinput:focus {
    border-color: var(--ias-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    outline: none;
}

/* Search button */
#btnsearch {
    border-radius: 0 12px 12px 0;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Loading animation */
#loadingAbstract {
    text-align: center;
    padding: 3rem;
}

.spinner-border {
    color: var(--ias-primary);
}

/* Abstract list styling */
#abstractList {
    margin-top: 2rem;
    margin-bottom: 5rem; /* Plus d'espace en bas pour éviter le footer */
}

/* Table improvements */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--ias-primary) 0%, var(--ias-accent) 100%);
    color: var(--ias-white);
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    position: relative;
}

.table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--ias-gray-light);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: rgba(220, 38, 38, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border: none;
}

/* Abstract title styling */
.abstract-title {
    font-weight: 600;
    color: var(--ias-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.abstract-title:hover {
    color: var(--ias-accent);
    text-decoration: none;
}

/* Abstract content styling */
.abstract-content {
    background: var(--ias-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--ias-accent);
}

.abstract-content h6 {
    color: var(--ias-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Abstract meta information */
.abstract-meta {
    background: var(--ias-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--ias-gray-light);
}

.abstract-meta strong {
    color: var(--ias-primary);
    font-weight: 600;
}

/* Bookmarked section */
#bookmarkedSection {
    margin-top: 3rem;
}

#bookmarkedSection h4 {
    color: var(--ias-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ias-accent);
}

.bookmarked-item {
    background: var(--ias-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--ias-success);
    transition: all 0.3s ease;
}

.bookmarked-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Button improvements */
.btn-details, .btn-share {
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.btn-details:hover, .btn-share:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modal improvements */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--ias-primary) 0%, var(--ias-accent) 100%);
    color: var(--ias-white);
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
    background-color: var(--ias-light);
}

/* Share page improvements */
.share-options {
    background: var(--ias-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--ias-gray-light);
}

.share-options h6 {
    color: var(--ias-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .abstract-content,
    .abstract-meta {
        padding: 1rem;
    }
    
    #abstractList {
        margin-bottom: 2rem; /* Moins d'espace sur mobile */
    }
}

/* Animation for search results */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search tips styling */
.search-tips {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--ias-accent);
}

.search-tips h6 {
    color: var(--ias-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-tips ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.search-tips li {
    color: var(--ias-dark);
    margin-bottom: 0.25rem;
}

/* Status indicators */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-new {
    background: var(--ias-success);
    color: var(--ias-white);
}

.status-updated {
    background: var(--ias-warning);
    color: var(--ias-white);
}

/* Print styles */
@media print {
    .btn, .navbar, .footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .table {
        border: 1px solid #ccc !important;
    }
    
    .table thead th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* Table filters */
.table thead tr:last-child th {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.table thead tr:last-child th input,
.table thead tr:last-child th select {
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.table thead tr:last-child th input:focus,
.table thead tr:last-child th select:focus {
    border-color: var(--ias-primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.table thead tr:last-child th .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

#filterCount {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #e1f5fe;
}

/* Responsive filters */
@media (max-width: 768px) {
    .table thead tr:last-child th {
        padding: 0.25rem;
    }
    
    .table thead tr:last-child th input,
    .table thead tr:last-child th select {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
    
    .table thead tr:last-child th .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}
