/* ==========================================================
   Academic Homepage — style.css
   ========================================================== */

:root {
	--primary: #1a3c6e; /* deep academic blue */
	--primary-light: #2d5da3;
	--accent: #8a6508; /* accessible muted gold */
	--text: #2b2b2b;
	--text-light: #5a5a5a;
	--bg: #ffffff;
	--bg-alt: #f4f6f9;
	--border: #dde3ea;
	--max-width: 960px;
	--font-body: 1rem;
	--font-small: 0.9375rem;
	--font-subheading: 1.125rem;
	--line-body: 1.65;
	--paragraph-gap: 0.75rem;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 70px; /* offset for fixed navbar */
}

body {
	font-family: Georgia, "Times New Roman", serif;
	color: var(--text);
	background: var(--bg);
	font-size: var(--font-body);
	line-height: var(--line-body);
}

h1,
h2,
h3 {
	line-height: 1.3;
}

p {
	margin-bottom: var(--paragraph-gap);
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--primary-light);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ======================= Navigation Bar ======================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--primary);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.navbar {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 1.2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
}

.navbar-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	flex-shrink: 0;
	color: #fff;
	font-size: 1.3rem;
	font-weight: bold;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.navbar-brand:hover {
	text-decoration: none;
	color: #ffd97a;
}

.nav-menu {
	list-style: none;
	display: flex;
}

.nav-menu a {
	display: block;
	color: #e8edf4;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	transition: color 0.2s;
}

.nav-menu a:hover {
	color: #ffd97a;
	text-decoration: none;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.nav-toggle span {
	width: 24px;
	height: 2px;
	background: #fff;
	display: block;
}

/* ======================= Hero ======================= */
.hero {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
	padding: 2.5rem 1.2rem 2rem;
}

.hero-content {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

.avatar {
	width: 150px;
	height: 150px;
	flex-shrink: 0;
	border-radius: 50%;
	object-fit: cover;
	background: var(--primary);
	color: #fff;
	font-size: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Georgia, serif;
	box-shadow: 0 4px 12px rgba(26, 60, 110, 0.3);
}

.hero-text h1 {
	font-size: 2.4rem;
	color: var(--primary);
	margin-bottom: 0.4rem;
}

.subtitle {
	font-size: var(--font-body);
	color: var(--text-light);
	margin-bottom: 1rem;
}

.tagline {
	max-width: 560px;
	margin-bottom: 1rem;
}

/* Research metrics badges */
.profile-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.profile-badge {
	display: inline-flex;
	overflow: hidden;
	border-radius: 4px;
	background: var(--primary);
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.8rem;
	white-space: nowrap;
}

.profile-badge:hover,
.profile-badge:focus-visible {
	text-decoration: none;
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

.profile-badge-label,
.profile-badge-value {
	padding: 0.2rem 0.6rem;
}

.profile-badge-value {
	background: var(--accent);
	font-weight: bold;
}

/* Social / academic profile icon row */
.social-icons {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: nowrap;
}

.icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.icon-link:focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 4px;
}

.icon-link img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 4px;
}

/* ======================= Sections ======================= */
.section {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 2rem 1.2rem;
}

.section-title {
	font-size: 1.7rem;
	color: var(--primary);
	border-bottom: 2px solid var(--accent);
	display: inline-block;
	padding-bottom: 0.3rem;
	margin-bottom: 1rem;
}

.section-note {
	color: var(--text-light);
	font-size: var(--font-body);
	margin-bottom: 1rem;
}

/* ======================= News ======================= */
.news-list {
	list-style: none;
}

.news-list li {
	padding: 0.45rem 0;
	border-bottom: 1px dashed var(--border);
}

.news-list li:last-child {
	border-bottom: none;
}

.news-date {
	display: inline-block;
	min-width: 80px;
	font-weight: bold;
	color: var(--accent);
	font-family: "Courier New", monospace;
	font-size: 0.9rem;
}

/* ======================= About ======================= */
.about-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2.5rem;
}

.about-text p {
	margin-bottom: var(--paragraph-gap);
}

.about-text p:last-child {
	margin-bottom: 0;
}

.about-interests {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: 4px;
	padding: 1.2rem 1.5rem;
	align-self: start;
}

.about-interests h3 {
	color: var(--primary);
	font-size: var(--font-subheading);
	margin-bottom: var(--paragraph-gap);
}

.about-interests ul {
	list-style: square inside;
	color: var(--text-light);
}

/* ======================= Publications ======================= */
.pub-group {
	margin-bottom: 1.2rem;
}

.pub-group h3 {
	color: var(--accent);
	font-size: var(--font-subheading);
	margin-bottom: var(--paragraph-gap);
}

.pub-item {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.8rem 1.3rem;
	margin-bottom: 0.6rem;
	transition: box-shadow 0.2s;
}

.pub-item:hover {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.pub-title {
	font-weight: bold;
	font-size: var(--font-body);
}

.pub-authors {
	font-size: var(--font-body);
	color: var(--text-light);
}

.pub-venue {
	font-style: italic;
	font-size: var(--font-body);
}

.pub-item p {
	margin: 0 0 0.25rem;
}

.pub-item p:last-child {
	margin-bottom: 0;
}

.pub-links a {
	font-size: var(--font-small);
}

.badge {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 0.75rem;
	font-style: normal;
	padding: 0.1rem 0.5rem;
	border-radius: 10px;
	margin-left: 0.4rem;
}

.badge-cited {
	background: var(--primary-light); /* deep blue for ESI Highly Cited */
}

.badge-hot {
	background: #c0392b; /* warm red for ESI Hot Paper */
}

/* ======================= Funding & Honors ======================= */
.funding-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.2rem;
}

.funding-grid h3 {
	color: var(--primary);
	font-size: var(--font-subheading);
	margin-bottom: var(--paragraph-gap);
}

.funding-list {
	list-style: none;
}

.funding-list li {
	padding: 0.5rem 0;
	border-bottom: 1px dashed var(--border);
}

.funding-list li:last-child {
	border-bottom: none;
}

.funding-year {
	display: inline-block;
	min-width: 86px;
	font-weight: bold;
	font-family: "Courier New", monospace;
	font-size: 0.9rem;
	color: var(--accent);
}

.funding-title {
	font-weight: bold;
}

/* ======================= Academic Activities ======================= */
.activity-group {
	margin-bottom: 1.2rem;
}

.activity-group:last-child {
	margin-bottom: 0;
}

.activity-group h3 {
	color: var(--primary);
	font-size: var(--font-subheading);
	margin-bottom: var(--paragraph-gap);
}

/* Reviewer journals: tag cloud handles 30+ entries compactly */
.reviewer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	font-size: var(--font-small);
	color: var(--primary);
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 999px;
	transition:
		background 0.2s,
		color 0.2s,
		border-color 0.2s;
}

.tag:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.activity-list {
	list-style: none;
}

.activity-list li {
	padding: 0.45rem 0;
	border-bottom: 1px dashed var(--border);
	color: var(--text);
}

.activity-list li:last-child {
	border-bottom: none;
}

/* ======================= Contact ======================= */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
}

.contact-grid h3 {
	color: var(--primary);
	font-size: var(--font-subheading);
	margin-bottom: var(--paragraph-gap);
}

.prospective-note {
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--text-light);
	background: var(--bg-alt);
	border-left: 3px solid var(--accent);
	padding: 0.6rem 1rem;
}

/* ======================= Footer ======================= */
.site-footer {
	background: var(--primary);
	color: #c8d4e6;
	text-align: center;
	padding: 1.2rem;
	font-size: 0.9rem;
}

/* ======================= Responsive ======================= */
@media (max-width: 960px) {
	.nav-toggle {
		display: flex;
	}

	.nav-menu {
		display: none;
		position: absolute;
		top: 60px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--primary);
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	}

	.nav-menu.open {
		display: flex;
	}

	.nav-menu a {
		padding: 0.9rem 1.4rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}

@media (max-width: 768px) {
	.hero-content {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.profile-badges,
	.social-icons {
		justify-content: center;
	}

	.about-grid,
	.contact-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
