/* Modern Publication Cards */
.publication-card {
    border-radius: 12px;
    overflow: hidden;
}

.publication-card .card {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.publication-title {
    line-height: 1.4;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.publication-title a {
    color: inherit;
    transition: color 0.3s ease;
}

.publication-title a:hover {
    color: #007bff;
}

.publication-authors {
    font-size: 0.95rem;
}

.publication-meta .badge {
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
}

.publication-venue {
    font-size: 0.9rem;
    line-height: 1.4;
}

.publication-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 1.5px;
}

.publication-actions .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.publication-actions .btn-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.publication-actions .btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.publication-actions .btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.publication-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.publication-actions .btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.publication-actions .btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.citation-block code {
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 8px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

.keywords-tags .output-keywords {
    display: inline-block;
}

.keywords-tags .output-keywords::before {
    content: '';
}

.keywords-tags .output-keywords::after {
    content: '';
}

.abstract-text {
    line-height: 1.6;
    color: #495057;
    margin-bottom: 0;
}

.card-footer {
    border-radius: 0 0 12px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Publication type badges - all with white text */
.bibtextypekey {
    color: white !important;
}

.badge.bibtextypekey {
    color: white !important;
}

.bibtexVar.bibtextypekey.badge {
    color: white !important;
}

.bg-article,
.badge.bg-article {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
}

.bg-inproceedings,
.badge.bg-inproceedings {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    color: white !important;
}

.bg-book,
.badge.bg-book {
    background: linear-gradient(135deg, #6f42c1, #5a2d91) !important;
    color: white !important;
}

.bg-incollection,
.badge.bg-incollection {
    background: linear-gradient(135deg, #fd7e14, #e55a00) !important;
    color: white !important;
}

.bg-techreport,
.badge.bg-techreport {
    background: linear-gradient(135deg, #6c757d, #545b62) !important;
    color: white !important;
}

.bg-mastersthesis,
.bg-phdthesis,
.badge.bg-mastersthesis,
.badge.bg-phdthesis {
    background: linear-gradient(135deg, #e83e8c, #c2185b) !important;
    color: white !important;
}

.bg-misc,
.badge.bg-misc {
    background: linear-gradient(135deg, #17a2b8, #117a8b) !important;
    color: white !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .publication-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .publication-title {
        font-size: 1.1rem;
    }
    
    .publication-actions {
        margin-top: 1rem;
    }
    
    .publication-meta .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .publication-actions .btn-lg {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .publication-title {
        color: #f8f9fa;
    }
    
    .publication-venue,
    .abstract-text {
        color: #dee2e6;
    }
    
    .card-footer {
        background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    }
    
    .citation-block code {
        background-color: #2d3748 !important;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}