/**
 * VRUNESS Academic Biography & Research Works Platform
 * Front-end + admin stylesheet.
 * All colors resolve through CSS custom properties so the admin
 * color pickers control the palette without a build step.
 */

.vruness-bio {
	--vb-primary: #6366f1;
	--vb-secondary: #a855f7;
	--vb-dark: #0b1120;
	--vb-white: #ffffff;
	--vb-ink: #111827;
	--vb-muted: #6b7280;
	--vb-border: #e5e7eb;
	--vb-bg: #f8fafc;
	--vb-radius: 16px;
	--vb-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	--vb-gradient: linear-gradient(135deg, var(--vb-primary), var(--vb-secondary));

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--vb-ink);
	background: var(--vb-bg);
	max-width: 1280px;
	margin: 0 auto;
	line-height: 1.5;
}

.vruness-bio * {
	box-sizing: border-box;
}

.vruness-bio a {
	color: var(--vb-primary);
	text-decoration: none;
}

/* Navbar */
.vb-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
	background: var(--vb-white);
	border-radius: var(--vb-radius);
	box-shadow: var(--vb-shadow);
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
}

.vb-navbar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.vb-navbar__logo {
	border-radius: 50%;
	width: 32px;
	height: 32px;
	object-fit: cover;
}

.vb-navbar__links {
	display: flex;
	list-style: none;
	gap: 20px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.vb-navbar__links a {
	color: var(--vb-ink);
	font-size: 14px;
	font-weight: 500;
}

.vb-navbar__links a:hover {
	color: var(--vb-primary);
}

.vb-navbar__actions {
	display: flex;
	gap: 8px;
}

.vb-icon-btn {
	background: var(--vb-bg);
	border: 1px solid var(--vb-border);
	border-radius: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.vb-search-bar {
	padding: 10px 16px;
	margin-bottom: 16px;
}

.vb-search-bar input {
	width: 100%;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid var(--vb-border);
}

/* Hero */
.vb-hero {
	background: var(--vb-dark);
	color: #f8fafc;
	border-radius: var(--vb-radius);
	padding: 48px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.vb-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: var(--vb-secondary);
	margin: 0 0 8px;
}

.vb-hero__title {
	font-size: 32px;
	margin: 0 0 12px;
}

.vb-hero__credentials {
	background: var(--vb-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.vb-hero__mission {
	max-width: 520px;
	color: #cbd5e1;
	margin: 0 0 16px;
}

.vb-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vb-hero__graphic {
	flex-shrink: 0;
	width: 200px;
	height: 200px;
}

.vb-node {
	fill: var(--vb-secondary);
	opacity: 0.85;
}

.vb-node--core {
	fill: var(--vb-primary);
}

.vb-edge {
	stroke: var(--vb-primary);
	stroke-width: 1;
	opacity: 0.4;
}

/* Pills */
.vb-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(99, 102, 241, 0.12);
	color: var(--vb-primary);
}

.vb-hero .vb-pill {
	background: rgba(255, 255, 255, 0.1);
	color: #e0e7ff;
}

.vb-pill--sm {
	padding: 3px 10px;
	font-size: 11px;
}

.vb-pill--skill {
	background: var(--vb-gradient);
	color: #fff;
}

/* Layout */
.vb-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 20px;
	align-items: start;
}

.vb-card {
	background: var(--vb-white);
	border-radius: var(--vb-radius);
	box-shadow: var(--vb-shadow);
	padding: 24px;
}

.vb-card__heading {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
}

/* Sidebar profile card */
.vb-profile-card {
	text-align: center;
	position: sticky;
	top: 20px;
}

.vb-profile-card__avatar-wrap {
	position: relative;
	display: inline-block;
	margin-bottom: 12px;
}

.vb-profile-card__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.vb-profile-card__avatar--placeholder {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--vb-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: var(--vb-muted);
}

.vb-verified-badge {
	position: absolute;
	bottom: 2px;
	right: 2px;
	background: var(--vb-gradient);
	color: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	border: 2px solid #fff;
}

.vb-profile-card__name {
	margin: 0 0 2px;
	font-size: 18px;
}

.vb-profile-card__credentials,
.vb-profile-card__title,
.vb-profile-card__institution {
	margin: 0 0 2px;
	font-size: 13px;
	color: var(--vb-muted);
}

.vb-profile-card__meta {
	font-size: 13px;
	color: var(--vb-muted);
	margin: 6px 0 0;
}

.vb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	border: none;
}

.vb-btn--gradient {
	background: var(--vb-gradient);
	color: #fff;
	width: 100%;
	margin: 16px 0;
}

.vb-btn--icon {
	background: var(--vb-bg);
	color: var(--vb-ink);
	padding: 8px;
}

.vb-profile-card__social {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
}

.vb-profile-card__social a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--vb-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--vb-ink);
}

/* Stats grid */
.vb-stats-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.vb-stat-card {
	background: var(--vb-white);
	border-radius: 14px;
	box-shadow: var(--vb-shadow);
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.vb-stat-card .dashicons {
	color: var(--vb-primary);
}

.vb-stat-card__value {
	font-size: 22px;
	font-weight: 700;
}

.vb-stat-card__label {
	font-size: 11px;
	color: var(--vb-muted);
}

/* Bento grid */
.vb-bento {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.vb-bento__publications,
.vb-bento__highlights {
	grid-column: span 2;
}

@media (min-width: 900px) {
	.vb-bento__highlights {
		grid-column: span 1;
	}
	.vb-bento__publications {
		grid-column: span 1;
	}
}

.vb-highlight {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--vb-border);
}

.vb-highlight:last-child {
	border-bottom: none;
}

.vb-highlight__thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 10px;
}

.vb-highlight__body h4 {
	margin: 0 0 4px;
	font-size: 14px;
}

.vb-highlight__body p {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--vb-muted);
}

.vb-pill-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* Publications */
.vb-publication {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--vb-border);
}

.vb-publication:last-child {
	border-bottom: none;
}

.vb-publication__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(99, 102, 241, 0.1);
	color: var(--vb-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vb-publication__body {
	flex: 1;
}

.vb-publication__title {
	margin: 0 0 4px;
	font-size: 14px;
}

.vb-publication__authors {
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--vb-muted);
}

.vb-publication__meta {
	margin: 0;
	font-size: 12px;
	color: var(--vb-muted);
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.vb-publication__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.vb-citation-badge {
	background: var(--vb-gradient);
	color: #fff;
	border-radius: 10px;
	padding: 6px 10px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	line-height: 1.1;
}

.vb-citation-badge small {
	display: block;
	font-size: 9px;
	font-weight: 400;
	opacity: 0.85;
}

/* Skills cloud */
.vb-skills-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Timeline */
.vb-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.vb-timeline__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 0 0 20px 0;
	position: relative;
}

.vb-timeline__item::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 24px;
	bottom: 0;
	width: 2px;
	background: var(--vb-border);
}

.vb-timeline__item:last-child::before {
	display: none;
}

.vb-timeline__badge {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--vb-bg);
	border: 2px solid var(--vb-primary);
	color: var(--vb-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	flex-shrink: 0;
}

.vb-timeline__badge--done {
	background: var(--vb-gradient);
	color: #fff;
	border-color: transparent;
}

.vb-timeline__body h4 {
	margin: 0 0 4px;
	font-size: 14px;
}

.vb-timeline__meta {
	margin: 0;
	font-size: 12px;
	color: var(--vb-muted);
}

.vb-status-pill {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--vb-bg);
	color: var(--vb-muted);
	white-space: nowrap;
}

.vb-status-pill--ongoing {
	background: rgba(99, 102, 241, 0.12);
	color: var(--vb-primary);
}

.vb-status-pill--completed {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

/* Activities */
.vb-activities {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vb-activity {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--vb-border);
}

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

.vb-activity__date {
	font-size: 12px;
	color: var(--vb-muted);
	white-space: nowrap;
	min-width: 90px;
}

.vb-activity__body h4 {
	margin: 4px 0;
	font-size: 14px;
}

.vb-activity__venue {
	margin: 0;
	font-size: 12px;
	color: var(--vb-muted);
}

/* Footer */
.vb-footer {
	margin-top: 24px;
	padding: 28px 24px;
	background: var(--vb-dark);
	color: #cbd5e1;
	border-radius: var(--vb-radius);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
}

.vb-footer a {
	color: #e0e7ff;
}

.vb-footer__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

.vb-footer__mission {
	font-size: 12px;
	max-width: 260px;
	color: #94a3b8;
}

.vb-empty {
	color: var(--vb-muted);
	font-size: 13px;
	text-align: center;
	padding: 12px 0;
}

/* Dark mode (toggled via JS, adds .vb-dark-mode to root) */
.vruness-bio.vb-dark-mode {
	--vb-white: #111827;
	--vb-ink: #f1f5f9;
	--vb-muted: #94a3b8;
	--vb-border: #1f2937;
	--vb-bg: #0b1120;
}

/* Responsive */
@media (max-width: 900px) {
	.vb-layout {
		grid-template-columns: 1fr;
	}
	.vb-stats-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.vb-bento {
		grid-template-columns: 1fr;
	}
	.vb-bento__publications,
	.vb-bento__highlights {
		grid-column: span 1;
	}
	.vb-hero {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 520px) {
	.vb-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.vb-navbar__links {
		display: none;
	}
}

/* Admin settings screen */
.vb-admin #vb-avatar-preview img {
	border-radius: 8px;
	display: block;
	margin-bottom: 8px;
}

.vb-admin .title {
	margin-top: 28px;
}
