/* =====================================================
   JOURNALS — Simple Directory Stylesheet
   Scope   : journals.html only
   Depends : style.css (CSS variables)
   ===================================================== */

/* ══════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════ */
.journals-page-header {
	background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 55%, #4dabf7 100%);
	padding: 44px 0 40px;
	position: relative;
	overflow: hidden;
}

.journals-page-header::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
	pointer-events: none;
}

.journals-page-header::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 40px;
	background: var(--gray-50);
	clip-path: ellipse(55% 100% at 50% 100%);
}

.journals-page-header .container-xl {
	position: relative;
	z-index: 1;
}

/* ── Search input in header ── */
.j-search-wrap {
	background: rgba(255, 255, 255, .15);
	border: 1.5px solid rgba(255, 255, 255, .25);
	border-radius: var(--radius-xl);
	padding: 6px 6px 6px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
	backdrop-filter: blur(8px);
}

.j-search-wrap:focus-within {
	background: rgba(255, 255, 255, .22);
	border-color: rgba(255, 255, 255, .5);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .1);
}

.j-search-wrap svg {
	width: 16px;
	height: 16px;
	color: rgba(255, 255, 255, .6);
	flex-shrink: 0;
}

.j-search-wrap input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--font-ui);
	font-size: 14.5px;
	color: white;
}

.j-search-wrap input::placeholder {
	color: rgba(255, 255, 255, .45);
}

.j-search-wrap .j-search-kbd {
	font-size: 10px;
	font-family: var(--font-mono);
	font-weight: 600;
	color: rgba(255, 255, 255, .45);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 4px;
	padding: 2px 6px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   SUBJECT TABS
══════════════════════════════════════════════════ */
.j-tabs-bar {
	background: white;
	border-bottom: 1.5px solid var(--gray-200);
	position: sticky;
	top: 61px;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.j-tabs {
	display: flex;
	align-items: center;
	gap: 0;
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.j-tabs::-webkit-scrollbar {
	display: none;
}

.j-tab {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 13px 18px;
	border: none;
	background: transparent;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 500;
	color: var(--gray-500);
	cursor: pointer;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	margin-bottom: -1.5px;
	transition: all var(--transition);
}

.j-tab:hover {
	color: var(--blue);
	background: var(--blue-xlight);
}

.j-tab.active {
	color: var(--blue);
	border-bottom-color: var(--blue);
	font-weight: 600;
}

.j-tab-count {
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 700;
	background: var(--gray-100);
	color: var(--gray-500);
	padding: 1px 6px;
	border-radius: 99px;
	transition: all var(--transition);
}

.j-tab.active .j-tab-count {
	background: var(--blue-xlight);
	color: var(--blue);
}

/* ══════════════════════════════════════════════════
   TOOLBAR  (count + sort)
══════════════════════════════════════════════════ */
.j-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0 14px;
	border-bottom: 1px solid var(--gray-200);
	margin-bottom: 0;
	flex-wrap: wrap;
}

.j-toolbar-count {
	font-size: 13px;
	color: var(--gray-500);
}

.j-toolbar-count strong {
	color: var(--gray-800);
	font-weight: 700;
}

/* ══════════════════════════════════════════════════
   JOURNAL LIST ROW
══════════════════════════════════════════════════ */
.jl-list {
	display: flex;
	flex-direction: column;
}

.jl-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--gray-100);
	transition: background var(--transition);
}

.jl-row:last-child {
	border-bottom: none;
}

.jl-row:hover {
	background: var(--gray-50);
	border-radius: var(--radius-sm);
	padding-left: 8px;
	padding-right: 8px;
	margin: 0 -8px;
}

/* Subject dot */
.jl-subject-dot {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

/* Body */
.jl-row-body {
	flex: 1;
	min-width: 0;
}

.jl-row-title-line {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.jl-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-900);
	text-decoration: none;
	transition: color var(--transition);
	line-height: 1.3;
}

.jl-title:hover {
	color: var(--blue);
}

.jl-row-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--gray-500);
	gap: 0;
	line-height: 1.4;
}

.jl-sep {
	margin: 0 6px;
	color: var(--gray-300);
}

.jl-issn {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--gray-400);
}

/* Badges */
.jl-q-badge {
	display: inline-flex;
	align-items: center;
	font-size: 10.5px;
	font-weight: 800;
	padding: 1px 6px;
	border-radius: 4px;
	border: 1.5px solid;
	font-family: var(--font-mono);
	line-height: 1.6;
	flex-shrink: 0;
}

.jl-oa-badge {
	display: inline-flex;
	align-items: center;
	font-size: 10.5px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 99px;
	line-height: 1.6;
	flex-shrink: 0;
}

.jl-oa-badge.gold {
	background: #fef3c7;
	color: #92400e;
}

.jl-oa-badge.hybrid {
	background: #dbeafe;
	color: #1d4ed8;
}

/* Metrics */
.jl-row-metrics {
	display: flex;
	gap: 24px;
	flex-shrink: 0;
	align-items: center;
}

.jl-metric {
	text-align: right;
}

.jl-metric-num {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 700;
	color: var(--blue);
	letter-spacing: -0.3px;
	line-height: 1;
	display: block;
}

.jl-metric-lbl {
	font-size: 9.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gray-400);
	font-weight: 600;
	margin-top: 2px;
	display: block;
}

/* Action */
.jl-row-action {
	flex-shrink: 0;
}

.jl-btn-browse {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--blue);
	padding: 6px 12px;
	border: 1.5px solid var(--blue-light);
	border-radius: var(--radius-sm);
	background: var(--blue-xlight);
	text-decoration: none;
	transition: all var(--transition);
	white-space: nowrap;
}

.jl-btn-browse:hover {
	background: var(--blue);
	color: white;
	border-color: var(--blue);
}

.jl-btn-browse svg {
	width: 11px;
	height: 11px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
	.j-tabs-bar {
		position: static;
	}

	.jl-row-metrics {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.journals-page-header {
		padding: 32px 0 28px;
	}

	.j-search-wrap {
		max-width: 100%;
	}

	.j-search-wrap .j-search-kbd {
		display: none;
	}

	.jl-row-action {
		display: none;
	}
}

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.j-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 20px 0;
}

.page-btn {
	padding: 8px 12px;
	border: 1px solid var(--gray-300);
	background: white;
	color: var(--gray-700);
	border-radius: var(--radius-sm);
	font-size: 14px;
	text-decoration: none;
	transition: all var(--transition);
}

.page-btn:hover {
	background: var(--gray-50);
	border-color: var(--gray-400);
}

.page-btn.active {
	background: var(--blue);
	color: white;
	border-color: var(--blue);
	font-weight: 600;
}

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.j-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 20px 0;
}

.page-btn {
	padding: 8px 12px;
	border: 1px solid var(--gray-300);
	background: white;
	color: var(--gray-700);
	border-radius: var(--radius-sm);
	font-size: 14px;
	cursor: pointer;
	transition: all var(--transition);
}

.page-btn:hover {
	background: var(--gray-50);
	border-color: var(--gray-400);
}

.page-btn.active {
	background: var(--blue);
	color: white;
	border-color: var(--blue);
	font-weight: 600;
}