.publications-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.publication-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .publication-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .publication-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.publication-header {
    margin-bottom: 15px;
}

.publication-title {
    color: var(--accent-color);
    margin: 0 0 8px 0;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'Libre Baskerville', serif;
}

.publication-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-align: left;
}

.publication-authors {
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Libre Baskerville', serif;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.publication-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95em;
    font-style: italic;
    font-family: 'Libre Baskerville', serif;
}

.publication-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.publication-button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.publication-button {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    font-family: 'Libre Baskerville', serif;
    transition: all 0.2s ease;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    background-color: transparent;
    cursor: pointer;
}

.publication-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

/* Shared publication badge styles */
.publication-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    font-family: 'Libre Baskerville', serif;
    color: white;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: default;
    position: relative;
    /* Default badge styling for homepage */
    background-color: var(--accent-color);
    color: white;
}

/* Hardware category - Subtle Blue */
.publication-badge.hardware {
    background-color: #e8f4f8;
    color: #2c5aa0;
    border: 1px solid #d1e7dd;
}

/* Task category - Subtle Green */
.publication-badge.task {
    background-color: #f0f9f0;
    color: #2d5a27;
    border: 1px solid #c3e6cb;
}

/* Others category - Subtle Orange */
.publication-badge.others {
    background-color: #fef7f0;
    color: #b5621b;
    border: 1px solid #f5c6cb;
}

[data-theme="dark"] .publication-badge.hardware {
    background-color: #1a2332;
    color: #7db3d3;
    border: 1px solid #2d3748;
}

[data-theme="dark"] .publication-badge.task {
    background-color: #1a2e1a;
    color: #81c784;
    border: 1px solid #2d3748;
}

[data-theme="dark"] .publication-badge.others {
    background-color: #2e1f1a;
    color: #ffb74d;
    border: 1px solid #2d3748;
}

.publication-badge:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 4px;
}

.publication-citation {
    color: var(--text-secondary);
    font-size: 0.85em;
    font-style: italic;
    text-align: right;
    flex-shrink: 0;
    font-family: 'Libre Baskerville', serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .publication-card {
        padding: 15px;
    }
    
    .publication-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .publication-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .publication-citation {
        text-align: left;
        margin-top: 10px;
    }
}
