/* Publications page styles */

.publication-filters {
    background-color: var(--darker-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.publication-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.filter-group select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

.filter-controls .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.filter-controls .btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.filter-controls .btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Publication cards */
.publication {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.publication h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.publication-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.publication-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.publication-links a {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.publication-links a:hover {
    background-color: var(--primary-dark);
}

.publication-links a.bibtex-link, 
.publication-links a.cite-link {
    background-color: var(--accent);
}

.publication-links a.bibtex-link:hover,
.publication-links a.cite-link:hover {
    background-color: #007d71;
}

/* Category styling */
.publication-category {
    margin-bottom: 40px;
}

.publication-category:last-child {
    margin-bottom: 0;
}

/* Loading state */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--text-secondary);
    font-style: italic;
}

/* No publications message */
.no-publications {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* BibTeX modal */
.bibtex-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.bibtex-modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text);
}

.bibtex-code {
    background-color: var(--darker-bg);
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-close, .copy-bibtex {
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-right: 10px;
}

.modal-close:hover, .copy-bibtex:hover {
    background-color: var(--primary-dark);
}

.copy-bibtex {
    background-color: var(--accent);
}

.copy-bibtex:hover {
    background-color: #007d71;
}

/* Year group styling */
.publication-year-group {
    margin-bottom: 50px;
}

.publication-year-group:last-child {
    margin-bottom: 0;
}

.publication-year-group .section-title {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.8rem;
}

/* Google Scholar Button */
.scholar-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4285F4;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 900;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.scholar-button:hover {
    background-color: #1a73e8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.scholar-icon {
    width: 24px;
    height: 24px;
}

/* Abstract toggle styling */
.abstract-section {
    margin: 15px 0;
}

.abstract-toggle {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
}

.abstract-toggle:hover {
    background-color: #007d71;
}

.abstract-text {
    margin: 10px 0 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }

    .scholar-button {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scholar-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .scholar-button {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .scholar-icon {
        width: 18px;
        height: 18px;
    }
}