/* 
   Research Page Styles 
*/

:root {
    --primary-color: #1a365d; /* Deep elegant navy */
    --accent-color: #3182ce;  /* Bright blue for accents */
    --secondary-color: #2b6cb0; /* Medium blue */
    --light-bg: #f8fafc; /* Very soft slate-tinted white */
    
    --border-color: #e2e8f0;
    --hover-shadow: 0 12px 30px rgba(49, 130, 206, 0.12); /* Blue tinted shadow */
    --default-shadow: 0 4px 15px rgba(26, 54, 93, 0.05); /* Navy tinted shadow */
}

/* -------------------------------
   General Layout and Typography
--------------------------------*/
.research-container {
    width: 90%;
    max-width: 1100px;
    margin: 2rem auto;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--color-dark);
}

.research-container h2 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.3rem;
    border-radius: 2px;
}

.research-container h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.research-container p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.research-container a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.research-container a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* -------------------------------
   Publication Section
--------------------------------*/
.preprints-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.links a {
    font-family: "Source Code Pro", monospace;
    font-weight: 600;
    color: var(--primary-color);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.links a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.1);
}

.publication-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--default-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.publication-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-left-color: var(--accent-color);
    background-color: var(--light-bg);
}

.publication-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.publication-authors {
    color: var(--color-dark-variant);
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: block;
}

.publication-size {
    font-size: 0.95rem;
    color: #475569;
}

.publication-card .links {
    margin-top: 1rem;
}

ol.reversed-list {
    counter-reset: list-counter;
    display: flex;
    flex-direction: column-reverse;
    padding-left: 0;
}

ol.reversed-list li {
    list-style: none;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

ol.reversed-list li::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* -------------------------------
   Thesis Section
--------------------------------*/
.thesis-entry {
    background: linear-gradient(to right, #ffffff, var(--light-bg));
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--default-shadow);
    transition: box-shadow 0.3s ease;
}

.thesis-entry:hover {
    box-shadow: var(--hover-shadow);
}

.thesis-header h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    line-height: 1.4;
}

.thesis-header p {
    color: var(--color-dark-variant);
    font-size: 1rem;
    margin-top: 0.8rem;
}

.thesis-entry code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

/* Collapsible Verification Box */
#verify-instructions {
    background-color: #ffffff;
    border-left: 3px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

#verify-instructions ol {
    margin-bottom: 0;
}

/* -------------------------------
   Lists and Details
--------------------------------*/
ul, ol {
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    padding-left: 1.8rem;
}

li {
    margin-bottom: 0.6rem;
}

/* -------------------------------
   ORCID Badge & Academic Profiles
--------------------------------*/
.orcid-badge {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.orcid-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #2a7f62; /* ORCID green */
    text-decoration: none;
    font-weight: 600;
    background: #f0fdf4;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    transition: all 0.3s ease;
}

.orcid-link img {
    width: 1.2em;
    height: 1.2em;
}

.orcid-link:hover {
    text-decoration: none;
    background: #dcfce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.1);
}

.profile-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.profile-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.profile-icons img {
    height: 32px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.profile-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.profile-icons a:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .research-container {
        width: 95%;
        padding: 0 10px;
    }

    .publication-title {
        font-size: 1.1rem;
    }

    .research-container h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }

    .profile-icons {
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto; /* Just in case it's extremely small */
        padding-bottom: 0.5rem; /* For scrollbar if needed */
    }

    .profile-icons a {
        padding: 4px;
        flex-shrink: 0;
    }

    .profile-icons img {
        height: 18px;
    }
}

/* -------------------------------
   References List 
--------------------------------*/
.custom-ref-list {
    list-style: none;
    padding-left: 0;
}

.custom-ref-list li {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid transparent;
}

.custom-ref-list li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    border-left-color: var(--accent-color);
}

.custom-ref-list strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.custom-ref-list cite a {
    color: var(--primary-color);
    font-weight: 600;
}
/* -------------------------------
   Research Timeline
--------------------------------*/
.research-timeline {
    position: relative;
    max-width: 900px;
    margin: 2rem 0 3rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.75rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    background: var(--light-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.timeline-inst {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark-variant);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-body p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.timeline-body p:last-child {
    margin-bottom: 0;
}

/* -------------------------------
   Abstract Toggle
--------------------------------*/
details.abstract-details {
    margin-top: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f8fafc;
    overflow: hidden;
}

details.abstract-details summary {
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    list-style: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

details.abstract-details summary:hover {
    background: #edf2f7;
}

details.abstract-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

details.abstract-details[open] summary::before {
    transform: rotate(90deg);
}

details.abstract-details summary::-webkit-details-marker {
    display: none;
}

.abstract-content {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: #475569;
    text-align: justify;
    line-height: 1.6;
}

.ongoing-badge {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
/* -------------------------------
   Continuous Auto-Numbering Publications
--------------------------------*/
.continuous-pub-wrapper {
    display: flex;
    flex-direction: column-reverse;
    counter-reset: global-pub-counter 0;
}

.continuous-pub-list {
    display: flex;
    flex-direction: column-reverse;
    padding-left: 0;
    margin-bottom: 2rem;
}

.continuous-pub-list li {
    list-style: none;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.continuous-pub-list li::before {
    counter-increment: global-pub-counter;
    content: counter(global-pub-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* -------------------------------
   User Name Highlight
--------------------------------*/
.my-name {
    font-weight: 800;
    font-family: "Georgia", serif;
    color: var(--accent-color);
}



/* -------------------------------
   Micro-interactions
--------------------------------*/
details.abstract-details[open] .abstract-content {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------
   User Name Highlight
--------------------------------*/
.my-name {
    font-weight: 800;
    font-family: "Georgia", serif;
    color: var(--accent-color);
}

.ongoing-work-list {
    display: flex;
    flex-direction: column-reverse;
    padding-left: 0;
    margin-bottom: 2rem;
}

.ongoing-work-list li {
    list-style: none;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.ongoing-work-list li::before {
    content: "\23F3"; /* Hourglass icon for in progress */
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1rem;
}
