/* assets/css/frontend.css */

/* Inline citation superscript */
.citation-ref {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: super;
}

.citation-ref a {
    text-decoration: none;
    color: #0066cc;
    padding: 0 2px;
}

.citation-ref a:hover {
    text-decoration: underline;
}

.citation-error {
    color: #cc0000;
    font-weight: bold;
}

/* Footnotes section */
.citation-footnotes {
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #ddd;
}

.footnotes-title {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.footnotes-list {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
    padding-left: 2em;
}

.footnote-item {
    margin-bottom: 0.75em;
    padding-left: 0.5em;
}

.footnote-backref {
    text-decoration: none;
    color: #0066cc;
    margin-right: 0.5em;
}

.footnote-backref:hover {
    text-decoration: underline;
}

/* ... continuing from frontend.css ... */

/* Bibliography page styles */
.literature-bibliography {
    font-size: 0.95em;
    line-height: 1.7;
}

.bibliography-list {
    margin: 0;
    padding-left: 2em;
}

.bibliography-entry {
    margin-bottom: 1em;
    padding-left: 0.5em;
}

.citation-authors {
    font-weight: 500;
}

.citation-title em {
    font-style: italic;
}

.citation-doi,
.citation-url {
    word-break: break-all;
    color: #0066cc;
}

/* Smooth scroll for citation links */
html {
    scroll-behavior: smooth;
}

/* Highlight target citation when clicked */
.footnote-item:target,
.bibliography-entry:target {
    background: #fffde7;
    animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
    from { background: #fff59d; }
    to { background: #fffde7; }
}