/*
 * Styles for the database-driven publications page.
 * Builds on odproject.css tile aesthetics.
 */

/* ── Page header ────────────────────────────────────────────────── */
.pub-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pub-admin-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #0b4460;
    background: linear-gradient(90deg, #c9ecff 0%, #b8f4de 100%);
    border: 1px solid #8ed0b8;
    white-space: nowrap;
}

.pub-admin-btn:hover {
    filter: brightness(0.95);
}

/* ── Year section ───────────────────────────────────────────────── */
.pub-year-section {
    margin-bottom: 4px;
}

.pub-year-heading {
    display: inline-block;
    background: linear-gradient(90deg, #0f5372 0%, #1a7a9e 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ── Publication entry card ─────────────────────────────────────── */
.pub-entry {
    background: #ffffff;
    border: 1px solid #d8eaf2;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.pub-entry:hover {
    border-color: #a8d4e8;
    box-shadow: 0 2px 8px rgba(14, 66, 93, 0.07);
}

.pub-title {
    font-weight: 600;
    color: #0f5372;
}

.pub-title a {
    color: #0f5372;
    text-decoration: none;
}

.pub-title a:hover {
    text-decoration: underline;
    color: #0b3f57;
}

.pub-authors {
    color: #3a3a3a;
    font-size: 0.92rem;
}

.pub-journal {
    font-style: italic;
    color: #444;
    font-size: 0.92rem;
}

.pub-reference {
    color: #555;
    font-size: 0.88rem;
}

/* ── Badges ─────────────────────────────────────────────────────── */
.pub-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.pub-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
    line-height: 1.6;
}

.pub-badge-doi {
    background: #e8f4fb;
    color: #0b4460;
    border: 1px solid #9dcde8;
}

.pub-badge-doi:hover {
    background: #c9e8f5;
    text-decoration: none;
}

.pub-badge-citations {
    background: #f0faf3;
    color: #1a5e35;
    border: 1px solid #7ecb9a;
    cursor: default;
}

/* ── Notes (catch-all field) ────────────────────────────────────── */
.pub-notes {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}
