﻿/* =================================================================amin
   STYLING COMMUN POUR LES INDEX (Thèses, Publications, Communications)
   ================================================================ */

/* --- CLEAN SEARCH BAR --- */
.search-container {
    position: relative;
    width: 100%;
}

.search-input-clean {
    height: 42px;
    font-size: 0.9rem;
    padding-left: 1rem;
    padding-right: 44px;
    border-radius: 0.6rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

    .search-input-clean:focus {
        border-color: #3b82f6;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.search-btn-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 0.45rem;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .search-btn-icon:hover {
        color: #2563eb;
        background-color: #eff6ff;
    }

/* --- SIDEBAR FILTERS --- */
.filter-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.filter-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
}

    .filter-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

.filter-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-size: 0.82rem;
    color: #334155;
    cursor: pointer;
}

.year-range-input {
    font-size: 0.8rem;
    height: 30px;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    text-align: center;
}

/* --- CONTINUOUS UNIFIED LIST (Remplace thesis, article, comm, topic) --- */
.item-entry {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
    display: block;
    text-decoration: none !important;
    color: inherit;
}

    .item-entry:last-child {
        border-bottom: none;
    }

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.item-entry:hover .item-title {
    color: #2563eb;
    text-decoration: underline;
}

.item-subtitle {
    font-size: 0.82rem;
    color: #475569; /* Utilisé pour authors, people */
    margin-bottom: 0.4rem;
}

.item-meta {
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.meta-journal {
    font-style: italic;
    color: #334155;
}

/* --- TAGS & BADGES UNIFIÉS --- */
.meta-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
}

    /* Variantes de tags */
    .meta-tag.phd {
        background-color: #fef3c7;
        color: #92400e;
        border-color: #fde68a;
    }

    .meta-tag.master {
        background-color: #e0f2fe;
        color: #0369a1;
        border-color: #bae6fd;
    }

    .meta-tag.open-access {
        background-color: #ecfdf5;
        color: #047857;
        border-color: #a7f3d0;
    }

    .meta-tag.oral {
        background-color: #eff6ff;
        color: #1d4ed8;
        border-color: #bfdbfe;
    }

    .meta-tag.poster {
        background-color: #f0fdf4;
        color: #15803d;
        border-color: #bbf7d0;
    }

    .meta-tag.featured {
        background-color: #fef3c7;
        color: #92400e;
        border-color: #fde68a;
    }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .item-entry {
        padding: 0.85rem 0;
    }

    .item-title {
        font-size: 0.9rem;
    }
}
