/* ========================================
   Papers Page
   ======================================== */
.papers-page {
    padding-top: 80px;
    padding-bottom: 3rem;
}

.papers-header {
    margin-bottom: 2rem;
}

.papers-heading {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.papers-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 2.5rem;
}

/* ========================================
   Section Labels (FEATURED)
   ======================================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-label span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ========================================
   Year Headings
   ======================================== */
.year-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

/* ========================================
   Papers Sections
   ======================================== */
.papers-section {
    margin-bottom: 2.5rem;
}

/* ========================================
   Papers Grid
   ======================================== */
.papers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ========================================
   Publication Card
   ======================================== */
.pub-card {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--card-bg);
    padding: 1.4rem 1.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: default;
}

.pub-card:hover {
    border-color: var(--accent);
}

/* Card Header: venue + actions */
.pub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pub-venue {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.pub-badge-oral {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.35);
    background: rgba(220, 38, 38, 0.12);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.pub-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Action buttons (Code, PDF) */
.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pub-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.pub-btn-accent {
    border-color: var(--accent);
    color: var(--accent);
}

.pub-btn-accent:hover {
    background: var(--accent);
    color: #fff;
}

/* Expand/collapse chevron button */
.pub-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pub-expand-btn:hover {
    color: var(--text-secondary);
}

.pub-card[data-expanded="true"] .pub-expand-btn .chevron {
    transform: rotate(180deg);
}

/* Title */
.pub-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    margin-bottom: 0;
    cursor: pointer;
}

.pub-title:hover {
    color: var(--accent);
}

/* Expandable details */
.pub-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.pub-card[data-expanded="true"] .pub-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

/* Authors */
.pub-authors {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.pub-self-author {
    color: var(--accent) !important;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Summary */
.pub-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pub-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .papers-grid {
        grid-template-columns: 1fr;
    }

    .year-heading {
        font-size: 2rem;
    }

    .papers-heading {
        font-size: 1.8rem;
    }

    .pub-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
