/* Publications section styles */
#publications {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.publications-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Publications Controls */
.publications-controls {
    margin: 2rem 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: linear-gradient(to right bottom, #ffffff, #f8f9fa);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 62, 80, 0.1);
}

/* Search Container */
.search-container {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 800px;
    width: 100%;
}

.search-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    opacity: 0.1;
}

#pub-search {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 2rem;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #2c3e50;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#pub-search::placeholder {
    color: #adb5bd;
    font-weight: 300;
}

#pub-search:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 8px 16px rgba(44, 62, 80, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.4rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

#pub-search:focus + .search-icon {
    color: #2c3e50;
    transform: translateY(-50%) scale(1.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    color: #2c3e50;
    background: rgba(44, 62, 80, 0.1);
}

/* Search Stats and Filters */
.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 2rem;
    max-width: 800px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #6c757d;
}

.stats-text {
    font-style: italic;
}

.search-filters {
    display: flex;
    gap: 1rem;
}

.type-filter {
    padding: 0.6rem 1.2rem;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background: white;
    color: #2c3e50;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.type-filter:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.1);
}

.type-filter:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Publications List */
.publication-item {
    background: white;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(44, 62, 80, 0.2);
}

.publication-item:hover::before {
    opacity: 1;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #6c757d;
}

.publication-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(52, 152, 219, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.publication-meta span:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.publication-meta i {
    color: #3498db;
    font-size: 1rem;
}

.publication-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.publication-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.publication-links a:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
    border-color: transparent;
}

.publication-links a i {
    transition: transform 0.3s ease;
}

.publication-links a:hover i {
    transform: translateX(4px);
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 16px;
    color: #6c757d;
}

.error-message i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
    display: block;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.search-suggestions {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.search-suggestions li {
    margin: 0.5rem 0;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-suggestions li::before {
    content: '•';
    color: #3498db;
}

/* Show More Button */
.show-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border: 1px solid #e9ecef;
    border-radius: 25px;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
    border-color: transparent;
}

.show-more-btn i {
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateY(2px);
}

/* Highlight */
.highlight {
    background: linear-gradient(120deg, rgba(52, 152, 219, 0.2) 0%, rgba(46, 204, 113, 0.2) 100%);
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-container {
        margin-bottom: 1.5rem;
    }

    #pub-search {
        padding: 1.2rem 3.5rem 1.2rem 1.5rem;
        font-size: 1rem;
    }

    .search-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }

    .publication-item {
        padding: 1.5rem;
    }

    .publication-title {
        font-size: 1.2rem;
    }

    .publication-meta {
        gap: 0.75rem;
    }

    .publication-meta span {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .publication-links a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-bottom: 1rem;
    }

    #pub-search {
        padding: 1rem 3rem 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .publication-item {
        padding: 1.2rem;
        border-radius: 12px;
    }

    .show-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
} 