/* Project cards: icons, badges, illustrations, hover effects */

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.75em;
	margin-top: 1em;
}

.project-card {
	--accent: #b8d96b;
	position: relative;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-top: 4px solid var(--accent);
	border-radius: 10px;
	padding: 1.4em 1.4em 1.6em;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
	border-color: rgba(255, 255, 255, 0.18);
}

.project-card .illustration {
	width: 100%;
	height: 100px;
	margin-bottom: 0.9em;
	color: var(--accent);
}

.project-card .illustration svg {
	width: 100%;
	height: 100%;
	display: block;
}

.project-card h3 {
	display: flex;
	align-items: center;
	gap: 0.55em;
	margin: 0 0 0.6em;
	font-size: 1.05em;
}

.project-card h3 .icon {
	color: var(--accent);
}

.project-card p.desc {
	flex: 1;
	opacity: 0.85;
	font-size: 0.95em;
	line-height: 1.65;
	margin: 0 0 1.1em;
}

.tech-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
}

.tech-badges span {
	font-size: 0.72em;
	padding: 0.25em 0.7em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--accent);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.project-card.cat-ai { --accent: #9b7bff; }
.project-card.cat-travel { --accent: #4fc3f7; }
.project-card.cat-rec { --accent: #f5c344; }
.project-card.cat-mobile { --accent: #5ddab4; }
.project-card.cat-chat { --accent: #ff7aa8; }

/* Writing & Insights: sub-tabs + post cards */

.insights-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin: 1.4em 0 1.6em;
	padding: 0;
	list-style: none;
}

.insights-tabs button {
	font: inherit;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	padding: 0.55em 1.1em;
	border-radius: 999px;
	font-size: 0.85em;
	letter-spacing: 0.02em;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.insights-tabs button:hover {
	border-color: rgba(184, 217, 107, 0.6);
}

.insights-tabs button.active {
	background: rgba(184, 217, 107, 0.16);
	border-color: rgba(184, 217, 107, 0.6);
	color: #d5e8b0;
	font-weight: 600;
}

.tab-panel {
	display: none;
}

.tab-panel.active {
	display: block;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(504px, 1fr));
	justify-items: center;
	gap: 1.75em;
}

.post-card {
	width: 100%;
	max-width: 504px;
}

.post-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	padding: 1.2em;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.28);
}

.post-card .embed-slot {
	width: 100%;
	min-height: 260px;
	overflow: hidden;
	border-radius: 8px;
}

.post-card .embed-slot iframe {
	width: 100%;
	border: 0;
}

.post-card.placeholder .embed-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 180px;
	border: 1px dashed rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.85em;
	padding: 1em;
}

.post-card h4 {
	margin: 0.9em 0 0.4em;
	font-size: 1em;
}

.post-card p {
	font-size: 0.88em;
	opacity: 0.8;
	margin: 0 0 0.6em;
}

.post-card a.read-link {
	font-size: 0.85em;
	color: #b8d96b;
}

.topic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 1em;
}

.topic-tags span {
	border: 1px solid rgba(255, 255, 255, 0.35);
	font-size: 0.75em;
	padding: 0.35em 0.8em;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.85);
}

/* Publications: stat tiles + year timeline */

.pub-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1em;
	margin: 1.4em 0 2em;
}

.pub-stat {
	text-align: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 1.2em 0.8em;
}

.pub-stat-num {
	font-size: 2.2rem;
	font-weight: 600;
	line-height: 1;
	color: #b8d96b;
}

.pub-stat-num span {
	font-size: 1.3rem;
}

.pub-stat-label {
	font-size: 0.78em;
	opacity: 0.75;
	margin-top: 0.5em;
}

.pub-timeline {
	position: relative;
	padding-left: 1.8em;
}

.pub-timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.35em;
	bottom: 0.35em;
	width: 2px;
	background: rgba(255, 255, 255, 0.15);
}

.pub-year {
	position: relative;
	margin-bottom: 2em;
}

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

.pub-year-label {
	position: relative;
	margin: 0 0 1em;
	font-size: 1.05em;
	color: #b8d96b;
}

.pub-year-label::before {
	content: '';
	position: absolute;
	left: -1.86em;
	top: 0.4em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #b8d96b;
}

.pub-card {
	display: flex;
	gap: 1em;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 1.1em 1.3em;
	margin-bottom: 1em;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.pub-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
	border-color: rgba(255, 255, 255, 0.26);
}

.pub-card-icon {
	color: #b8d96b;
	font-size: 1.25em;
	flex-shrink: 0;
	padding-top: 0.15em;
}

.pub-card-body h4 {
	margin: 0 0 0.6em;
	font-size: 0.98em;
	line-height: 1.5;
}

.pub-venue-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em;
}

.pub-venue-name {
	font-size: 0.82em;
	opacity: 0.7;
}

.pub-badge {
	font-size: 0.72em;
	padding: 0.25em 0.7em;
	border-radius: 999px;
	border: 1px solid;
	white-space: nowrap;
}

.pub-badge-springer {
	color: #5ddab4;
	border-color: rgba(93, 218, 180, 0.5);
	background: rgba(93, 218, 180, 0.08);
}

.pub-badge-iccit {
	color: #4fc3f7;
	border-color: rgba(79, 195, 247, 0.5);
	background: rgba(79, 195, 247, 0.08);
}

.pub-badge-ieee {
	color: #ff9f5a;
	border-color: rgba(255, 159, 90, 0.5);
	background: rgba(255, 159, 90, 0.08);
}

.scholar-btn {
	display: inline-block;
	margin-top: 2em;
	padding: 0.7em 1.4em;
	border-radius: 999px;
	border: 1px solid #b8d96b;
	color: #b8d96b;
	text-decoration: none;
	font-size: 0.9em;
	transition: background 0.25s ease, color 0.25s ease;
}

.scholar-btn:hover {
	background: #b8d96b;
	color: #1b1f22;
}
