/* Publications Page Styles */

/* Search Bar */
.pub-search {
    margin-bottom: 1.5rem;
}

.pub-search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 6px 6px 20px;
    transition: box-shadow 0.3s ease;
}

.pub-search-wrapper:focus-within {
    box-shadow: 0 4px 25px rgba(139, 195, 74, 0.25);
}

.pub-search-icon {
    color: #aaa;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.pub-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: var(--secondary-color);
    background: transparent;
    padding: 10px 0;
}

.pub-search-input::placeholder {
    color: #bbb;
}

.pub-search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pub-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

/* Type Filter Tabs */
.pub-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pub-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pub-filter-tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(139, 195, 74, 0.05);
}

.pub-filter-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.35);
}

/* Compact Filters (Year + Member dropdowns) */
.pub-compact-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pub-compact-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 6px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pub-compact-filter label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    margin-bottom: 0;
}

.pub-compact-filter label i {
    color: var(--primary-color);
}

.pub-compact-filter select {
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    padding: 6px 4px;
    min-width: 120px;
}

/* Active Filters */
.pub-active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(139, 195, 74, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.15);
}

.pub-active-filters-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.pub-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pub-filter-pill i:first-child {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.pub-filter-pill-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.pub-filter-pill-clear:hover {
    background: #e74c3c;
    color: #fff;
}

.pub-clear-all {
    font-size: 0.8rem;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    margin-left: auto;
    transition: opacity 0.2s ease;
}

.pub-clear-all:hover {
    opacity: 0.7;
}

/* Publication Stats */
.pub-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pub-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pub-stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pub-stat-icon.journals {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: #667eea;
}

.pub-stat-icon.conferences {
    background: linear-gradient(135deg, rgba(13, 138, 129, 0.15) 0%, rgba(46, 204, 113, 0.15) 100%);
    color: #0d8a81;
}

.pub-stat-icon.books {
    background: linear-gradient(135deg, rgba(224, 86, 176, 0.15) 0%, rgba(231, 76, 60, 0.15) 100%);
    color: #e056b0;
}

.pub-stat-icon.total {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    color: var(--primary-color);
}

.pub-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.pub-stat-label {
    font-size: 0.8rem;
    color: #888;
}

/* Year Divider */
.year-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.year-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
}

.year-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.3) 0%, transparent 100%);
}

/* Publication Card */
.publication-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.publication-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.pub-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.pub-type-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-type-badge.journal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.pub-type-badge.conference {
    background: linear-gradient(135deg, #0d8a81 0%, #2ecc71 100%);
    color: #fff;
}

.pub-type-badge.book {
    background: linear-gradient(135deg, #e056b0 0%, #e74c3c 100%);
    color: #fff;
}

.pub-type-badge.other {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

/* Journal Ranking Badge */
.pub-ranking-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-ranking-badge.q1 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
}

.pub-ranking-badge.q2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.pub-ranking-badge.q3 {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: #fff;
}

.pub-ranking-badge.q4 {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #fff;
}

/* Indexed In Badges */
.pub-indexed {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    letter-spacing: 0.3px;
}

.pub-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.pub-authors {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.pub-venue {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.pub-venue i {
    font-style: normal;
    color: #aaa;
}

.pub-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.pub-link.doi {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.pub-link.doi:hover {
    background: #667eea;
    color: #fff;
}

.pub-link.pdf {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.pub-link.pdf:hover {
    background: #e74c3c;
    color: #fff;
}

.pub-link.cite {
    background: rgba(139, 195, 74, 0.1);
    color: var(--primary-color);
}

.pub-link.cite:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(104, 159, 56, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.empty-state h4 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .pub-stats {
        gap: 1rem;
    }

    .pub-stat-item {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .pub-search-wrapper {
        padding: 4px 4px 4px 14px;
    }

    .pub-search-input {
        font-size: 0.9rem;
    }

    .pub-search-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .pub-filter-tabs {
        gap: 6px;
    }

    .pub-filter-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .pub-active-filters {
        padding: 10px 14px;
        gap: 8px;
    }

    .pub-compact-filters {
        gap: 0.75rem;
    }

    .pub-compact-filter {
        flex: 1;
        min-width: 140px;
    }

    .pub-stat-item {
        padding: 0.75rem 1rem;
    }

    .pub-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .pub-stat-value {
        font-size: 1.25rem;
    }

    .publication-card {
        padding: 1.25rem;
    }

    .pub-title {
        font-size: 0.95rem;
    }
}
