/* Custom styles beyond Tailwind */

/* Filter select */
.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    outline: none;
    cursor: pointer;
    min-width: 130px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}
.filter-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Journal card hover */
.journal-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.journal-card:hover {
    transform: translateY(-2px);
}

/* Level badges - color coded */
.level-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.level-SCI, .level-SSCI, .level-EI { background: #fef3c7; color: #92400e; }
.level-CSSCI { background: #fce7f3; color: #9d174d; }
.level-北大核心 { background: #ede9fe; color: #5b21b6; }
.level-核心 { background: #dbeafe; color: #1e40af; }
.level-国家级 { background: #d1fae5; color: #065f46; }
.level-省级 { background: #e0f2fe; color: #0369a1; }
.level-普刊 { background: #f3f4f6; color: #4b5563; }

/* Tag badge */
.tag-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    white-space: nowrap;
}

/* Detail page rows */
.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.detail-label {
    flex-shrink: 0;
    width: 5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
}
.detail-value {
    font-size: 0.875rem;
    color: #374151;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .filter-select {
        min-width: 0;
        flex: 1;
    }
}
