/*
 * Researchers feature styles.
 * Global palette, body, navbar, links, footer, and base page background
 * are inherited from public/assets/css/app.css.
 */

.scholar-container {
    max-width: 1280px;
}

.min-w-0 {
    min-width: 0;
}

/* SEARCH HERO */

.researcher-search-hero {
    background:
        linear-gradient(
            115deg,
            var(--unida-primary) 0%,
            #08738a 48%,
            var(--unida-dark) 100%
        );
}

.researcher-page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 750;
}

.researcher-hero-search {
    width: min(680px, 100%);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.researcher-hero-search i {
    color: #78bfc9;
    font-size: 1.25rem;
}

.researcher-hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text-primary);
    font-size: 1rem;
    background: transparent;
}

.researcher-hero-search input::placeholder {
    color: #96a5ae;
}

/* TOOLBAR */

.researcher-toolbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.result-meta {
    color: #74838e;
    font-size: .9rem;
}

.researcher-sort {
    min-width: 150px;
}

/* RESULT AREA */

.researcher-results,
.researcher-detail-page {
    min-height: calc(100vh - 150px);
}

.researcher-filter-card,
.researcher-card,
.researcher-profile-panel,
.researcher-content-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26, 50, 65, .06);
}

.researcher-filter-card {
    padding: 20px;
}

.filter-block h2 {
    margin: 0 0 12px;
    color: #142d3d;
    font-size: 1rem;
    font-weight: 750;
}

.filter-list {
    display: grid;
    gap: 3px;
}

.filter-row {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;

    gap: 9px;

    width: 100%;

    padding: 5px 8px 5px 2px;

    color: var(--text-primary);

    font-size: .79rem;

    text-decoration: none;
}


.filter-row:hover,
.filter-row.active {
    color: var(--unida-primary);
    background: #eef8f8;
}

.filter-check {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 1px solid #8797a2;
    border-radius: 3px;
    background: #fff;
}

.filter-row.active .filter-check {
    border-color: var(--unida-primary);
    background:
        var(--unida-primary)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E")
        center / 12px
        no-repeat;
}

.filter-label {
    min-width: 0;
}

.filter-count {
    justify-self: end;

    min-width: 34px;

    margin-left: 8px;

    padding: 3px 8px;

    border-radius: 999px;

    background: #edf1f3;

    color: #788993;

    font-size: .68rem;

    line-height: 1.2;

    text-align: center;

    white-space: nowrap;
}
.filter-divider {
    height: 1px;
    margin: 20px 0;
    background: #e8edf0;
}

.filter-total {
    color: #87959e;
    font-size: .78rem;
}

/* CARDS */

.researcher-card {
    padding: 18px;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.researcher-card:hover {
    transform: translateY(-2px);
    border-color: #b8dadd;
    box-shadow: 0 7px 20px rgba(26, 50, 65, .09);
}

.researcher-avatar,
.researcher-profile-initial,
.similar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(135deg, var(--unida-primary), var(--unida-secondary));
    font-weight: 750;
}

.researcher-avatar {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--unida-primary),
            var(--unida-secondary)
        );

    border: 2px solid #eef3f5;

    color: #ffffff;
}


.researcher-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}


.researcher-avatar-initial {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 750;
}

.researcher-name {
    margin: 0;
    color: var(--unida-primary);
    font-size: 1rem;
    font-weight: 750;
}

.researcher-name a {
    color: inherit;
}

.researcher-position {
    margin-top: 2px;
    color: #6c7e89;
    font-size: .86rem;
}

.researcher-pill {
    flex: 0 0 auto;
    padding: 4px 10px;
    color: #1c3645;
    background: #f0f3f5;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.researcher-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .78rem;
}

.researcher-links a {
    color: #008e65;
}

.researcher-links a + a {
    color: #8d4bd9;
}

.researcher-affiliation {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #0870c9;
    font-size: .85rem;
    line-height: 1.4;
}

.researcher-affiliation i {
    margin-top: 1px;
    color: #9aabb4;
}

.researcher-expertise {
    display: -webkit-box;
    overflow: hidden;
    color: #415d6b;
    font-size: .82rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.researcher-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.researcher-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    color: #71828c;
    background: #f7f9fa;
    border-radius: 5px;
    font-size: .74rem;
}

.researcher-empty {
    padding: 70px 20px;
    color: #7a8b95;
    text-align: center;
    background: #fff;
    border: 1px dashed #ced9df;
    border-radius: 10px;
}

.researcher-empty i {
    display: block;
    margin-bottom: 10px;
    color: #9db1bc;
    font-size: 2rem;
}

.researcher-empty h3 {
    color: #2c4655;
    font-size: 1rem;
}

/* DETAIL */

.back-researchers {
    color: var(--unida-primary);
    font-size: .92rem;
}

.researcher-profile-panel,
.researcher-content-panel {
    padding: 22px;
}

.researcher-profile-photo {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border: 4px solid #f2f6f7;
    border-radius: 50%;
    object-fit: cover;
}

.researcher-profile-initial {
    font-size: 1.8rem;
}

.researcher-detail-name {
    margin: 0;
    color: #102b3b;
    font-size: 1.65rem;
    font-weight: 780;
}

.researcher-detail-position {
    margin-top: 4px;
    color: #677a86;
}

.profile-id-badges {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.profile-id-badges span {
    padding: 8px 12px;
    color: #163445;
    background: #f2f4f5;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.researcher-detail-affiliation {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #056bb6;
    line-height: 1.5;
}

.researcher-unit-roles {
    color: #667a86;
    font-size: .86rem;
    line-height: 1.5;
}

.researcher-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.researcher-stat {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 9px;
}

.researcher-stat i {
    font-size: 1.4rem;
}

.researcher-stat strong {
    display: inline-block;
    margin-right: 5px;
    font-size: 1.35rem;
}

.researcher-stat span {
    font-size: .8rem;
}

.researcher-stat.publication {
    color: #056db8;
    background: #eaf4ff;
}

.researcher-stat.education {
    color: #5539d2;
    background: #efedff;
}

.researcher-stat.rank {
    color: #c67600;
    background: #fff6df;
}

.researcher-stat.position {
    color: #008b80;
    background: #e9f9f6;
}

.profile-section-title {
    margin-bottom: 14px;
    color: #183344;
    font-size: .98rem;
    font-weight: 760;
}

.researcher-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.topic-chip {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    color: #334e5d;
    background: #f7f9fa;
    border-radius: 8px;
    font-size: .84rem;
    line-height: 1.3;
}

.topic-chip i {
    color: var(--unida-primary);
    font-size: 1.05rem;
}

.publication-row {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f3;
}

.publication-row:first-of-type {
    padding-top: 4px;
}

.publication-row:last-child {
    border-bottom: 0;
}

.publication-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0673bf;
    background: #edf6fe;
    border-radius: 8px;
}

.publication-row h3 {
    margin: 0 0 6px;
    color: #1a3a4d;
    font-size: .91rem;
    font-weight: 680;
    line-height: 1.45;
}

.publication-meta {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    color: #84939c;
    font-size: .76rem;
}

.publication-meta span + span::before {
    content: "•";
    margin-right: 9px;
    color: #b5c0c6;
}

.timeline-list {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 3px 0 18px;
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: -2px;
    width: 1px;
    background: #d8e4e8;
}

.timeline-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    margin-top: 5px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--unida-primary);
    box-shadow: 0 0 0 2px #a8d8dd;
}

.timeline-item strong {
    color: #2b4655;
    font-size: .85rem;
}

.timeline-year {
    margin-top: 3px;
    color: var(--unida-primary);
    font-size: .74rem;
}

.profile-empty-state {
    padding: 18px 0;
    color: #8a989f;
    font-size: .84rem;
}

.similar-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    color: #243f4e;
    font-size: .9rem;
    font-weight: 760;
}

.similar-title i {
    color: var(--unida-primary);
}

.similar-list {
    display: grid;
    gap: 10px;
}

.similar-researcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    color: inherit;
    border: 1px solid #e6ecef;
    border-radius: 8px;
    transition: background .15s ease, border-color .15s ease;
}

.similar-researcher:hover {
    background: #f5fbfb;
    border-color: #b9dfe2;
}

.similar-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    font-size: .8rem;
}

.similar-researcher strong {
    color: #075d8e;
    font-size: .82rem;
}

.similar-researcher span,
.similar-researcher small {
    color: #7d8d96;
    font-size: .73rem;
}

.sticky-similar {
    position: sticky;
    top: 84px;
}

/* BOOTSTRAP PAGINATION */

.pagination {
    --bs-pagination-color: var(--unida-primary);
    --bs-pagination-active-bg: var(--unida-primary);
    --bs-pagination-active-border-color: var(--unida-primary);
}

/* RESPONSIVE */

@media (max-width: 1199.98px) {
    .sticky-similar {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .researcher-filter-card {
        margin-bottom: 2px;
    }

    .researcher-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .researcher-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .researcher-hero-search {
        height: 57px;
    }

    .researcher-profile-photo {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .researcher-stat-grid,
    .researcher-topics {
        grid-template-columns: 1fr;
    }

    .researcher-profile-panel,
    .researcher-content-panel {
        padding: 17px;
    }
}
/* =========================================================
   COLLABORATION NETWORK
   ========================================================= */

.collaboration-panel {
    overflow: hidden;
}


.collaboration-total {
    color: var(--text-secondary);

    font-size: .78rem;
}


.collaboration-network-shell {
    display: grid;

    grid-template-columns: 210px minmax(0, 1fr);

    min-height: 520px;

    overflow: hidden;

    border: 1px solid var(--border-color);

    border-radius: 9px;

    background: var(--white);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.collaboration-sidebar {
    padding: 16px 14px;

    border-right: 1px solid var(--border-color);

    background: #fbfcfd;
}


.collaboration-filter-title {
    margin-bottom: 13px;

    color: #627481;

    font-size: .72rem;

    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .025em;
}


.collaboration-filter-row {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-bottom: 18px;

    color: #304b5b;

    font-size: .83rem;

    line-height: 1.3;

    cursor: pointer;
}


.collaboration-filter-row input {
    margin-top: 2px;
}


.collaboration-filter-row i {
    margin-top: 1px;

    font-size: .95rem;
}


.collaboration-count {
    color: #9aa8b0;

    font-size: .73rem;
}


.collab-researcher-icon {
    color: #0782d1;
}


.collab-external-icon {
    color: #16a34a;
}


.collab-unit-icon {
    color: #e69200;
}


.collab-organization-icon {
    color: #00a885;
}


/* =========================================================
   GRAPH
   ========================================================= */

.collaboration-stage {
    position: relative;

    min-width: 0;

    background: #ffffff;
}


.collaboration-network {
    width: 100%;

    height: 520px;
}


.collaboration-fullscreen {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 20;

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border-color);

    border-radius: 7px;

    background: #ffffff;

    color: #617581;

    box-shadow:
        0 2px 7px rgba(20, 45, 60, .08);
}


.collaboration-fullscreen:hover {
    color: var(--unida-primary);

    border-color: var(--unida-primary);
}


/* =========================================================
   LOADING
   ========================================================= */

.collaboration-loading {
    position: absolute;

    inset: 0;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    background: rgba(255, 255, 255, .92);

    color: var(--text-secondary);

    font-size: .84rem;
}


/* =========================================================
   EMPTY
   ========================================================= */

.collaboration-empty {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    color: #8998a0;
}


.collaboration-empty i {
    font-size: 2rem;

    color: #afbbc1;
}


.collaboration-empty strong {
    color: #536975;

    font-size: .9rem;
}


.collaboration-empty span {
    font-size: .78rem;
}


/* =========================================================
   FULLSCREEN
   ========================================================= */

.collaboration-network-shell:fullscreen {
    width: 100vw;

    height: 100vh;

    grid-template-columns: 230px minmax(0, 1fr);

    background: #ffffff;
}


.collaboration-network-shell:fullscreen .collaboration-network {
    height: 100vh;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .collaboration-network-shell {
        grid-template-columns: 1fr;
    }


    .collaboration-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px 15px;

        border-right: 0;

        border-bottom:
            1px solid var(--border-color);
    }


    .collaboration-filter-title {
        grid-column: 1 / -1;
    }


    .collaboration-filter-row {
        margin-bottom: 7px;
    }


    .collaboration-network {
        height: 430px;
    }

}

.researcher-filter-search {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 10px;

    border: 1px solid var(--border-color);

    border-radius: 6px;

    background: #ffffff;
}


.researcher-filter-search i {
    flex: 0 0 auto;

    color: #91a1aa;

    font-size: .78rem;
}


.researcher-filter-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text-primary);

    font-size: .76rem;
}


.researcher-filter-search input::placeholder {
    color: #9aa9b1;
}


.filter-show-more {
    margin-top: 12px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--unida-primary);

    font-size: .76rem;

    font-weight: 600;
}


.filter-show-more:hover {
    text-decoration: underline;
}

.researcher-publication-title {
    margin: 0;
}

.researcher-publication-title a {
    color: var(--unida-primary);
    font-weight: 700;
    text-decoration: none;
}

.researcher-publication-title a:hover {
    color: var(--unida-dark);
    text-decoration: underline;
}