/* ========================================
   SCOPUS AUTHOR - OJSHUB
======================================== */

.sca-page {
    min-height: 70vh;
    background: #f8fafc;
    color: #101828;
}

.sca-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* ========================================
   HERO
======================================== */

.sca-hero {
    padding: 64px 0 42px;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
    border-bottom: 1px solid #eaecf0;
}

.sca-eyebrow,
.sca-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;

    border-radius: 999px;

    background: #f0edff;
    color: #5b4de8;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.sca-hero h1 {
    margin: 14px 0 10px;

    font-size: clamp(
        34px,
        5vw,
        50px
    );

    line-height: 1.08;
    letter-spacing: -.035em;
}

.sca-lead {
    max-width: 720px;

    margin: 0;

    color: #667085;

    font-size: 16px;
    line-height: 1.7;
}


/* ========================================
   SEARCH CARD
======================================== */

.sca-search-card {
    margin-top: 28px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 17px;

    box-shadow:
        0 12px 35px
        rgba(16, 24, 40, .06);
}

.sca-form-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        auto;

    gap: 12px;

    align-items: end;
}

.sca-field label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 12px;
    font-weight: 800;
}

.sca-field label span {
    margin-left: 4px;

    color: #98a2b3;

    font-size: 10px;
    font-weight: 600;
}

.sca-field input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    box-sizing: border-box;

    border: 1px solid #d0d5dd;
    border-radius: 12px;

    background: #ffffff;
    color: #101828;

    outline: none;

    font: inherit;
    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.sca-field input:focus {
    border-color: #7768f5;

    box-shadow:
        0 0 0 4px
        rgba(109, 93, 252, .10);
}

.sca-submit button,
.sca-id-form button {
    height: 52px;

    padding: 0 23px;

    border: 0;
    border-radius: 12px;

    background: #6d5dfc;
    color: #ffffff;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(109, 93, 252, .20);

    transition:
        background .2s ease,
        transform .2s ease;
}

.sca-submit button:hover,
.sca-id-form button:hover {
    background: #5f50ed;
}

.sca-submit button:disabled,
.sca-id-form button:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* ========================================
   AUTHOR ID
======================================== */

.sca-id-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 13px;
    padding: 14px 16px;

    border: 1px solid #e4e7ec;
    border-radius: 14px;

    background: #ffffff;
}

.sca-id-box > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sca-id-box strong {
    color: #344054;
    font-size: 12px;
}

.sca-id-box span {
    color: #98a2b3;
    font-size: 11px;
}

.sca-id-form {
    display: flex;
    gap: 8px;
}

.sca-id-form input {
    width: 220px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    outline: none;

    font: inherit;
    font-size: 12px;
}

.sca-id-form input:focus {
    border-color: #7768f5;

    box-shadow:
        0 0 0 3px
        rgba(109, 93, 252, .09);
}

.sca-id-form button {
    height: 42px;
    padding: 0 16px;

    font-size: 11px;
}


/* ========================================
   ERROR
======================================== */

.sca-error {
    margin-top: 12px;
    padding: 12px 14px;

    border: 1px solid #fecdca;
    border-radius: 11px;

    background: #fef3f2;
    color: #b42318;

    font-size: 12px;
    font-weight: 700;
}


/* ========================================
   LOADING
======================================== */

.sca-loading-section {
    padding: 30px 0;
}

.sca-loading-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 20px;

    border: 1px solid #e4e7ec;
    border-radius: 15px;

    background: #ffffff;
}

.sca-loading-card strong {
    font-size: 13px;
}

.sca-loading-card p {
    margin: 4px 0 0;

    color: #667085;

    font-size: 11px;
}

.sca-spinner {
    width: 31px;
    height: 31px;

    flex: none;

    border: 3px solid #e4e7ec;
    border-top-color: #6d5dfc;
    border-radius: 50%;

    animation:
        scaSpin .8s linear infinite;
}

@keyframes scaSpin {

    to {
        transform: rotate(360deg);
    }

}


/* ========================================
   RESULTS
======================================== */

.sca-results,
.sca-profile-section,
.sca-intro {
    padding: 35px 0 60px;
}

.sca-section-head {
    margin-bottom: 18px;
}

.sca-section-head h2 {
    margin: 9px 0 4px;

    font-size: 25px;
    letter-spacing: -.02em;
}

.sca-section-head p {
    margin: 0;

    color: #667085;

    font-size: 12px;
}


/* ========================================
   AUTHOR CARD
======================================== */

.sca-author-list {
    display: grid;
    gap: 12px;
}

.sca-author-card {
    padding: 20px;

    border: 1px solid #e4e7ec;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 5px 18px
        rgba(16, 24, 40, .035);
}

.sca-author-top {
    display: flex;
    justify-content: space-between;

    gap: 18px;
}

.sca-author-card h3 {
    margin: 0 0 6px;

    color: #101828;

    font-size: 17px;
}

.sca-affiliation {
    margin: 0;

    color: #667085;

    font-size: 12px;
}

.sca-author-id {
    flex: none;

    padding: 6px 9px;

    align-self: flex-start;

    border-radius: 8px;

    background: #f0edff;
    color: #5b4de8;

    font-size: 10px;
    font-weight: 800;
}

.sca-author-data {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 16px;
}

.sca-author-data div {
    padding: 10px 11px;

    border-radius: 10px;

    background: #f9fafb;
}

.sca-author-data span {
    display: block;

    margin-bottom: 4px;

    color: #98a2b3;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.sca-author-data strong {
    display: block;

    color: #344054;

    font-size: 12px;
}

.sca-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 14px;
}

.sca-actions button,
.sca-actions a {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding: 0 12px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    background: #ffffff;
    color: #344054;

    text-decoration: none;

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.sca-actions button {
    border-color: #6d5dfc;

    background: #6d5dfc;
    color: #ffffff;
}


/* ========================================
   PROFILE
======================================== */

.sca-profile-card {
    overflow: hidden;

    border: 1px solid #e4e7ec;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 25px
        rgba(16, 24, 40, .045);
}

.sca-profile-header {
    padding: 24px;

    background:
        linear-gradient(
            135deg,
            #6d5dfc 0%,
            #7868ff 100%
        );

    color: #ffffff;
}

.sca-profile-header span {
    display: block;

    margin-bottom: 6px;

    color: rgba(255,255,255,.75);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.sca-profile-header h3 {
    margin: 0;

    font-size: 24px;
}

.sca-profile-header p {
    margin: 7px 0 0;

    color: rgba(255,255,255,.80);

    font-size: 11px;
}

.sca-metrics {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 1px;

    background: #eaecf0;
}

.sca-metric {
    padding: 18px;

    background: #ffffff;
}

.sca-metric span {
    display: block;

    margin-bottom: 6px;

    color: #98a2b3;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.sca-metric strong {
    color: #101828;

    font-size: 22px;
}

.sca-profile-body {
    padding: 22px;
}

.sca-profile-block + .sca-profile-block {
    margin-top: 22px;
}

.sca-profile-block h4 {
    margin: 0 0 10px;

    color: #344054;

    font-size: 13px;
}

.sca-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.sca-tags span {
    padding: 6px 9px;

    border-radius: 999px;

    background: #f2f4f7;
    color: #475467;

    font-size: 10px;
    font-weight: 700;
}

.sca-aff-list {
    display: grid;
    gap: 8px;
}

.sca-aff-item {
    padding: 11px 12px;

    border: 1px solid #eaecf0;
    border-radius: 10px;

    background: #f9fafb;
}

.sca-aff-item strong {
    display: block;

    color: #344054;

    font-size: 11px;
}

.sca-aff-item span {
    display: block;

    margin-top: 3px;

    color: #667085;

    font-size: 10px;
}


/* ========================================
   EMPTY
======================================== */

.sca-empty {
    padding: 28px;

    border: 1px solid #e4e7ec;
    border-radius: 15px;

    background: #ffffff;
    color: #667085;

    text-align: center;

    font-size: 12px;
}


/* ========================================
   PAGINATION
======================================== */

.sca-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 20px;
}

.sca-pagination button {
    min-width: 36px;
    height: 36px;

    padding: 0 10px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    background: #ffffff;
    color: #344054;

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.sca-pagination button.active {
    border-color: #6d5dfc;

    background: #6d5dfc;
    color: #ffffff;
}

.sca-pagination button:disabled {
    cursor: default;
    opacity: .55;
}


/* ========================================
   INTRO
======================================== */

.sca-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.sca-info-grid article {
    padding: 20px;

    border: 1px solid #e4e7ec;
    border-radius: 15px;

    background: #ffffff;
}

.sca-info-grid article > span {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    margin-bottom: 13px;

    border-radius: 10px;

    background: #f0edff;
    color: #5b4de8;

    font-size: 11px;
    font-weight: 900;
}

.sca-info-grid h3 {
    margin: 0 0 7px;

    font-size: 15px;
}

.sca-info-grid p {
    margin: 0;

    color: #667085;

    font-size: 12px;
    line-height: 1.65;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 800px) {

    .sca-form-grid {
        grid-template-columns: 1fr;
    }

    .sca-submit button {
        width: 100%;
    }

    .sca-id-box {
        align-items: stretch;
        flex-direction: column;
    }

    .sca-id-form input {
        width: 100%;
    }

    .sca-author-data {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .sca-metrics {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .sca-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .sca-shell {
        width:
            calc(100% - 24px);
    }

    .sca-hero {
        padding: 42px 0 30px;
    }

    .sca-id-form {
        flex-direction: column;
    }

    .sca-id-form input,
    .sca-id-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .sca-author-top {
        flex-direction: column;
    }

    .sca-author-id {
        align-self: flex-start;
    }

    .sca-author-data {
        grid-template-columns: 1fr;
    }

}