/* --- PUBLICATIONS PAGE STYLES --- */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.pub-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border-left: 5px solid #2d2e32; /* A sleek dark gray for contrast */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pub-card:hover {
    transform: translateX(5px); /* Slides slightly to the right on hover */
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pub-year {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
}

.pub-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 8px;
}

.pub-authors {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.pub-authors strong {
    color: #8b8dd6; /* Highlights your name in the author list */
}

.pub-venue {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 15px;
}

.pub-abstract {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.pub-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Publication Buttons */
.pub-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #8b8dd6;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.pub-btn:hover {
    background-color: #7274bf;
    color: #fff;
}

.pub-btn.outline {
    background-color: transparent;
    color: #8b8dd6;
    border: 2px solid #8b8dd6;
    padding: 6px 14px; /* Slightly adjusted to account for border width */
}

.pub-btn.outline:hover {
    background-color: #8b8dd6;
    color: #fff;
}

/* New tag color specific to this page */
.tag.purple {
    background-color: rgba(139, 141, 214, 0.15);
    color: #8b8dd6;
}

.tag.mint {
    background-color: rgba(52, 211, 153, 0.15);
    color: #059669;
}

/* =========================================================
   PUBLICATIONS PAGE — INTRO, STATS, BADGES, CITATIONS
   ========================================================= */

/* Intro */
.pub-intro {
    max-width: 880px;
    margin: 0 0 36px 0;
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.75;
}

.pub-intro strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Stats row at top */
.pub-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 0 0 60px 0;
}

.pub-stat {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid #ececf6;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pub-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}

.pub-stat .stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-purple);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pub-stat .stat-value svg {
    width: 22px;
    height: 22px;
    color: var(--accent-mint);
    flex-shrink: 0;
}

.pub-stat .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 6px;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

/* Section heading with eyebrow */
.pub-section-heading {
    margin-top: 10px;
    margin-bottom: 26px;
}

.pub-section-heading .eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.pub-section-heading h2 {
    font-size: 1.7rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.pub-block { margin-bottom: 70px; }

/* Status badges (mirrors projects/awards convention) */
.pub-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pub-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.pub-status-accepted { background: rgba(43, 176, 149, 0.12); color: #1f8a73; border: 1px solid rgba(43, 176, 149, 0.30); }
.pub-status-review   { background: rgba(255, 152, 0, 0.10); color: #d97706; border: 1px solid rgba(255, 152, 0, 0.30); }
.pub-status-talk     { background: rgba(139, 141, 214, 0.12); color: #6a6cb5; border: 1px solid rgba(139, 141, 214, 0.30); }
.pub-status-service  { background: rgba(74, 74, 90, 0.08);   color: var(--text-gray); border: 1px solid rgba(74, 74, 90, 0.22); }

.pub-status-review .dot { animation: pulse-dot 1.8s ease-in-out infinite; }

/* First-author flag */
.first-author-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-mint), #1f8a73);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
}

.first-author-flag svg { width: 11px; height: 11px; }

/* Header stack so badges + year work nicely together */
.pub-header {
    flex-wrap: wrap;
    gap: 10px;
}

.pub-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Card variants */
.pub-card.is-accepted {
    border-left-color: var(--accent-mint);
}

.pub-card.is-review {
    border-left-color: #d97706;
}

.pub-card.is-talk {
    border-left-color: var(--accent-purple);
}

.pub-card.is-service {
    border-left-color: #4a4a5a;
}

/* Cite button + BibTeX popout */
.pub-btn.cite-btn {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid #d8d9e8;
    padding: 6px 14px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-btn.cite-btn svg { width: 13px; height: 13px; }

.pub-btn.cite-btn:hover {
    border-color: var(--text-dark);
    background: transparent;
    color: var(--text-dark);
}

.pub-btn.cite-btn.is-open {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

.bibtex-block {
    margin-top: 18px;
    background: #1e1e2f;
    color: #e6e6f0;
    border-radius: 10px;
    padding: 18px 20px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.55;
    position: relative;
    display: none;
    white-space: pre;
    overflow-x: auto;
}

.bibtex-block.is-open { display: block; }

.bibtex-copy {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.10);
    color: #e6e6f0;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s ease;
}

.bibtex-copy:hover { background: rgba(255,255,255,0.20); }

.bibtex-copy.copied {
    background: var(--accent-mint);
    border-color: var(--accent-mint);
    color: #fff;
}

/* Service icon badge */
.pub-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(139, 141, 214, 0.12);
    color: var(--accent-purple);
    margin-right: 10px;
}

.pub-service-icon svg { width: 18px; height: 18px; }

.pub-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 600px) {
    .pub-stat .stat-value { font-size: 1.5rem; }
    .pub-intro { font-size: 1rem; }
    .pub-card { padding: 26px 22px; }
    .pub-title { font-size: 1.2rem !important; }
    .first-author-flag { margin-left: 0; margin-top: 6px; }
}