.publications-section {
    /* background: linear-gradient(180deg, #0b0c10 0%, #1f2833 100%); */
    color: #e0e0e0;
}

/* ===============================
   Publications Page Header
=============================== */
.publications-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    /* border-radius: 12px; */
    animation: fadeIn 1.5s ease-in-out;
    /* box-shadow: 0px 6px 20px rgba(0, 188, 212, 0.3); */
}

.publications-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #00e5ff;
    text-shadow: 0px 0px 15px rgba(0, 229, 255, 0.6);
}

.publications-header p {
    font-size: 18px;
    color: #cfd8dc;
    margin-top: 8px;
    text-shadow: 0px 0px 8px rgba(0, 229, 255, 0.2);
}

/* ===============================
   Search & Filters
=============================== */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px auto;
    padding: 12px;
    border-radius: 10px;
    width: 85%;
}

#searchInput,
#yearFilter {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #00bcd4;
    border-radius: 6px;
    background: rgba(15, 15, 20, 0.9);
    color: #f0f0f0;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: rgba(0, 229, 255, 0.6);
}

#searchInput:focus,
#yearFilter:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 6px #00e5ff;
}

#yearFilter {
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    background: rgba(10, 10, 15, 0.9);
    color: #00bcd4;
}

#yearFilter:hover {
    background: #00bcd4;
    color: #0b0c10;
}

#yearFilter option {
    background: #0b0c10;
    color: #e0e0e0;
}

/* ===============================
   Publications Container
=============================== */
.publications-container {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #e0e0e0;
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* Year Section */
.year-section {
    margin-bottom: 25px;
}

.year-section h2 {
    font-size: 22px;
    font-weight: bold;
    color: #00e5ff;
    border-bottom: 2px solid #00e5ff;
    padding-bottom: 5px;
    margin-bottom: 12px;
}

/* ===============================
   Publication Items
=============================== */
.publication-item {
    list-style: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0px 4px 12px rgba(0, 188, 212, 0.1);
    transition: background 0.3s, transform 0.2s;
}

.publication-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Title */
.publication-title {
    font-size: 18px;
    font-weight: bold;
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.publication-title:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Author Tags */
.author-tag {
    display: inline-block;
    background: rgba(0, 188, 212, 0.15);
    color: #e0e0e0;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.author-tag:hover {
    background: rgba(0, 229, 255, 0.4);
}

.author-tag a {
    color: inherit;
    text-decoration: none;
}

.author-tag a:hover {
    text-decoration: underline;
}

/* Meta Information */
.publication-meta {
    font-size: 13px;
    color: #b0bec5;
    margin: 6px 0;
}

/* ===============================
   Actions (Cite, Open Access, etc.)
=============================== */
.publication-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Open Access Tag */
.open-access-tag {
    background: #00bcd4;
    color: #0b0c10;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
}

/* Cite Button */
.cite-button {
    background: linear-gradient(45deg, #1f2833, #2c3e50);
    color: #fff;
    padding: 5px 14px;
    border: 1px solid #00bcd4;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.cite-button:hover {
    background: linear-gradient(45deg, #00bcd4, #00e5ff);
    color: #0b0c10;
    transform: scale(1.05);
    box-shadow: 0 0 8px #00e5ff;
}

/* Citation Text */
.citation-text {
    background: #0f1116;
    color: #e0e0e0;
    padding: 10px;
    margin-top: 8px;
    display: block;
    font-family: monospace;
    white-space: pre-wrap;
    border-left: 3px solid #00e5ff;
    font-size: 13px;
    overflow-x: auto;
    border-radius: 4px;
}

.hidden {
    display: none;
}

.citation-text:not(.hidden) {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Responsive Design
=============================== */
@media (max-width: 992px) {
    .filter-container {
        width: 95%;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #searchInput, #yearFilter {
        width: 100%;
        font-size: 14px;
    }

    .publication-item {
        padding: 12px;
    }

    .publication-title {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .publications-header h1 {
        font-size: 24px;
        padding: 0 10px;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
    }

    #searchInput, #yearFilter {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    .publication-title {
        font-size: 15px;
    }

    .cite-button, .open-access-tag {
        font-size: 12px;
        padding: 3px 8px;
    }
}

@media (max-width: 400px) {
    .publications-header h1 {
        font-size: 20px;
    }

    .publication-title {
        font-size: 14px;
    }

    .cite-button, .open-access-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}
