/* plugins/generic/journalDirectory/css/directory.css */

.jd_wrap {
	max-width: 960px;
	margin: 0 auto;
}

.jd_intro {
	color: #555;
	margin: -0.5rem 0 1.5rem;
}

.jd_search_bar {
	position: relative;
	margin-bottom: 1rem;
}

.jd_search_bar .fa,
.jd_search_bar .jd_search_icon {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	color: #888;
	pointer-events: none;
}

.jd_search_input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 2.75rem 0.75rem 2.5rem;
	font-size: 1.05rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jd_search_input:focus {
	outline: none;
	border-color: #006798;
	box-shadow: 0 0 0 3px rgba(0, 103, 152, 0.15);
}

.jd_reset_btn {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #888;
	cursor: pointer;
	font-size: 0.9rem;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
}

.jd_reset_btn:hover {
	background: #f0f0f0;
	color: #333;
}

.jd_tags_bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}

.jd_tag_pill {
	border: 1px solid #d6d6d6;
	background: #fff;
	color: #444;
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.12s ease;
}

.jd_tag_pill:hover {
	border-color: #006798;
	color: #006798;
}

.jd_tag_pill.is_active {
	background: #006798;
	border-color: #006798;
	color: #fff;
}

.jd_status_row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #777;
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	min-height: 1.4em;
}

.jd_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jd_card {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 1.1rem 1.2rem;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	display: flex;
	flex-direction: column;
}

.jd_card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.jd_card[hidden] {
	display: none;
}

.jd_card_title {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
	line-height: 1.35;
}

.jd_card_title a {
	color: #1a1a1a;
	text-decoration: none;
}

.jd_card_title a:hover {
	color: #006798;
	text-decoration: underline;
}

.jd_card_issn {
	color: #888;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

.jd_card_description {
	color: #555;
	font-size: 0.92rem;
	line-height: 1.45;
	margin-bottom: 0.6rem;
	flex-grow: 1;
}

.jd_card_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-bottom: 0.7rem;
}

.jd_card_tag {
	background: #eef5f9;
	color: #006798;
	font-size: 0.75rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
}

.jd_card_links {
	display: flex;
	gap: 0.9rem;
	font-size: 0.88rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jd_card_links a {
	color: #006798;
	text-decoration: none;
}

.jd_card_links a:hover {
	text-decoration: underline;
}

.jd_no_results {
	text-align: center;
	color: #777;
	padding: 2.5rem 1rem;
	border: 1px dashed #ddd;
	border-radius: 10px;
}

.jd_no_results[hidden] {
	display: none;
}
