/**
 * Timviec24h - Stylesheet Hồ sơ chi tiết Candidate (Candidate Single Profile)
 * Tone màu nhận diện thương hiệu: Xanh lá Timviec24h (#00b074), nền sáng, thẻ trắng, bo góc hiện đại.
 */

:root {
	--tv24h-primary: #00b074;
	--tv24h-primary-dark: #008f5d;
	--tv24h-primary-light: #f0fdf4;
	--tv24h-primary-border: #bbf7d0;
	--tv24h-text-main: #0f172a;
	--tv24h-text-body: #334155;
	--tv24h-text-muted: #64748b;
	--tv24h-border: #e2e8f0;
	--tv24h-bg-page: #f8fafc;
	--tv24h-bg-card: #ffffff;
	--tv24h-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--tv24h-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
	--tv24h-radius: 12px;
	--tv24h-radius-sm: 6px;
}

.timviec24h-candidate-single-page {
	background-color: var(--tv24h-bg-page);
	min-height: 100vh;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--tv24h-text-body);
}

/* 1. HERO SECTION */
.tv24h-profile-hero {
	background: #ffffff;
	border-bottom: 1px solid var(--tv24h-border);
	padding: 40px 0 32px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.tv24h-hero-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.tv24h-hero-main {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1;
	min-width: 320px;
}

.tv24h-hero-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 3px solid var(--tv24h-primary);
	box-shadow: 0 4px 12px rgba(0, 176, 116, 0.15);
	overflow: hidden;
	background: var(--tv24h-bg-page);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tv24h-hero-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tv24h-avatar-text {
	font-size: 44px;
	font-weight: 700;
	color: var(--tv24h-primary);
	line-height: 1;
}

.tv24h-hero-meta {
	flex: 1;
}

.tv24h-name-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.tv24h-candidate-name {
	font-size: 26px;
	font-weight: 700;
	color: var(--tv24h-text-main);
	margin: 0;
	line-height: 1.3;
	word-break: break-word;
	overflow-wrap: break-word;
}

.tv24h-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.status-badge-active {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.status-badge-open {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.status-badge-closed {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.tv24h-access-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.badge-success {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.badge-warning {
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

.badge-info {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.badge-secondary {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.tv24h-hero-job-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--tv24h-primary);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tv24h-hero-tags {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.tv24h-hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--tv24h-bg-page);
	border: 1px solid var(--tv24h-border);
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 13px;
	color: #475569;
	font-weight: 500;
}

.tv24h-hero-contacts {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.tv24h-contact-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--tv24h-text-main);
	background: #f8fafc;
	padding: 4px 12px;
	border-radius: 6px;
	border: 1px solid var(--tv24h-border);
}

.tv24h-contact-pill a {
	color: var(--tv24h-primary);
	font-weight: 600;
	text-decoration: none;
}

.tv24h-contact-pill a:hover {
	color: var(--tv24h-primary-dark);
	text-decoration: underline;
}

.tv24h-locked-hint {
	font-size: 11px;
	background: #fef3c7;
	color: #b45309;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.tv24h-hero-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	min-width: 200px;
}

/* BUTTONS */
.tv24h-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	text-align: center;
	line-height: 1.4;
}

.tv24h-btn-primary {
	background: var(--tv24h-primary);
	color: #ffffff !important;
}

.tv24h-btn-primary:hover {
	background: var(--tv24h-primary-dark);
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 176, 116, 0.25);
}

.tv24h-btn-outline {
	background: #ffffff;
	border-color: var(--tv24h-border);
	color: #334155 !important;
}

.tv24h-btn-outline:hover {
	border-color: var(--tv24h-primary);
	color: var(--tv24h-primary) !important;
	background: var(--tv24h-primary-light);
}

.tv24h-btn-outline-sm {
	background: transparent;
	border: 1px solid var(--tv24h-border);
	color: var(--tv24h-text-muted) !important;
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 6px;
}

.tv24h-btn-outline-sm:hover {
	color: var(--tv24h-primary) !important;
	border-color: var(--tv24h-primary);
}

.tv24h-btn-disabled {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #94a3b8 !important;
	cursor: not-allowed;
}

.tv24h-btn-block {
	width: 100%;
}

.tv24h-permission-note {
	font-size: 11.5px;
	color: #b45309;
	background: #fef3c7;
	padding: 6px 10px;
	border-radius: 6px;
	line-height: 1.4;
	max-width: 260px;
}

/* 2. BODY CONTENT & CARDS */
.tv24h-profile-body {
	padding: 32px 0 60px;
}

.tv24h-card {
	background: var(--tv24h-bg-card);
	border: 1px solid var(--tv24h-border);
	border-radius: var(--tv24h-radius);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--tv24h-shadow-sm);
	transition: box-shadow 0.2s;
}

.tv24h-card:hover {
	box-shadow: var(--tv24h-shadow-md);
}

.tv24h-section-header {
	font-size: 18px;
	font-weight: 700;
	color: var(--tv24h-text-main);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--tv24h-border);
	display: flex;
	align-items: center;
	gap: 10px;
}

.tv24h-section-header i {
	color: var(--tv24h-primary);
	font-size: 20px;
}

/* APPLIED NOTICE */
.tv24h-card-applied-notice {
	background: #f0fdf4;
	border-color: #bbf7d0;
	padding: 18px 22px;
}

.tv24h-applied-notice-inner {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.tv24h-applied-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tv24h-primary);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.tv24h-applied-title {
	font-size: 16px;
	font-weight: 700;
	color: #15803d;
	margin: 0 0 4px;
}

.tv24h-applied-desc {
	font-size: 13.5px;
	color: #166534;
	margin: 0 0 8px;
}

.tv24h-applied-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tv24h-applied-list li {
	font-size: 13px;
	margin-bottom: 4px;
}

.tv24h-applied-list a {
	color: #15803d;
	text-decoration: underline;
}

/* ABOUT ME */
.tv24h-about-content {
	font-size: 14.5px;
	line-height: 1.7;
	color: #334155;
}

/* TIMELINE */
.tv24h-timeline {
	position: relative;
	padding-left: 20px;
}

.tv24h-timeline::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: #e2e8f0;
}

.tv24h-timeline-item {
	position: relative;
	margin-bottom: 24px;
}

.tv24h-timeline-item:last-child {
	margin-bottom: 0;
}

.tv24h-timeline-bullet {
	position: absolute;
	left: -20px;
	top: 5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tv24h-primary);
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px var(--tv24h-primary);
}

.tv24h-bullet-edu {
	background: #0284c7;
	box-shadow: 0 0 0 2px #0284c7;
}

.tv24h-timeline-body {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 18px;
}

.tv24h-timeline-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	flex-wrap: wrap;
	gap: 8px;
}

.tv24h-exp-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--tv24h-text-main);
	margin: 0;
}

.tv24h-exp-date {
	font-size: 13px;
	color: var(--tv24h-text-muted);
	font-weight: 500;
}

.tv24h-current-badge {
	background: #dcfce7;
	color: #15803d;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
}

.tv24h-exp-company {
	font-size: 14px;
	font-weight: 600;
	color: var(--tv24h-primary);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tv24h-exp-desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: #475569;
}

/* SKILLS */
.tv24h-skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.tv24h-skill-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 12px 14px;
	border-radius: 8px;
}

.tv24h-skill-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tv24h-text-main);
}

.tv24h-skill-pct {
	font-size: 12px;
	color: var(--tv24h-primary);
	font-weight: 700;
}

.tv24h-skill-progress {
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
}

.tv24h-skill-bar {
	height: 100%;
	background: var(--tv24h-primary);
	border-radius: 3px;
}

/* LANGUAGES & CERTIFICATES */
.tv24h-sub-group {
	margin-bottom: 12px;
}

.tv24h-sub-title {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 8px;
}

.tv24h-pill-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tv24h-pill {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
	color: #334155;
}

.tv24h-cert-text {
	font-size: 13.5px;
	color: #475569;
	line-height: 1.6;
}

/* CV PREVIEW BOX */
.tv24h-cv-preview-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	flex-wrap: wrap;
	gap: 16px;
}

.tv24h-cv-preview-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tv24h-cv-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #fee2e2;
	color: #dc2626;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.tv24h-cv-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--tv24h-text-main);
	margin: 0 0 4px;
}

.tv24h-cv-sub {
	font-size: 12.5px;
	color: var(--tv24h-text-muted);
	display: flex;
	gap: 14px;
}

/* 3. SIDEBAR WIDGETS */
.tv24h-widget-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--tv24h-text-main);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tv24h-border);
	display: flex;
	align-items: center;
	gap: 8px;
}

.tv24h-widget-title i {
	color: var(--tv24h-primary);
}

.tv24h-overview-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tv24h-overview-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--tv24h-border);
}

.tv24h-overview-list li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.tv24h-item-icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: var(--tv24h-bg-page);
	border: 1px solid var(--tv24h-border);
	color: var(--tv24h-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	flex-shrink: 0;
}

.tv24h-item-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tv24h-label {
	font-size: 12px;
	color: var(--tv24h-text-muted);
	margin-bottom: 2px;
}

.tv24h-val {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tv24h-text-main);
}

.tv24h-val-highlight {
	color: var(--tv24h-primary);
	font-weight: 700;
}

.tv24h-val-links {
	display: flex;
	gap: 12px;
	margin-top: 4px;
}

.tv24h-val-links a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--tv24h-primary);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
}

.tv24h-val-links a:hover {
	text-decoration: underline;
}

/* PRIVACY CARD */
.tv24h-privacy-card {
	background: #fffbeb;
	border-color: #fde68a;
	text-align: center;
}

.tv24h-privacy-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fef3c7;
	color: #b45309;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin: 0 auto 12px;
}

.tv24h-privacy-title {
	font-size: 15px;
	font-weight: 700;
	color: #92400e;
	margin: 0 0 6px;
}

.tv24h-privacy-text {
	font-size: 13px;
	color: #78350f;
	margin-bottom: 14px;
	line-height: 1.5;
}

.tv24h-privacy-action-hint {
	font-size: 12px;
	color: #b45309;
	line-height: 1.5;
	text-align: left;
	background: #fef9c3;
	padding: 8px 10px;
	border-radius: 6px;
}

.tv24h-export-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tv24h-empty-box {
	background: #f8fafc;
	border: 1px dashed var(--tv24h-border);
	padding: 16px;
	border-radius: 6px;
	font-size: 13.5px;
	color: var(--tv24h-text-muted);
}

/* 4. RESPONSIVE DESIGN */
@media (max-width: 991px) {
	.tv24h-hero-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.tv24h-hero-actions {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.tv24h-hero-actions .tv24h-btn {
		flex: 1;
		min-width: 140px;
	}
}

@media (max-width: 767px) {
	.tv24h-profile-hero {
		padding: 24px 0 20px;
	}
	.tv24h-candidate-name {
		font-size: 21px;
		text-align: center;
	}
	.tv24h-hero-main {
		flex-direction: column;
		align-items: center;
		text-align: center;
		width: 100%;
	}
	.tv24h-hero-meta {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.tv24h-name-row {
		justify-content: center;
	}
	.tv24h-hero-tags {
		justify-content: center;
	}
	.tv24h-hero-contacts {
		justify-content: center;
		flex-direction: column;
		width: 100%;
	}
	.tv24h-contact-pill {
		width: 100%;
		justify-content: center;
	}
	.tv24h-hero-actions {
		flex-direction: column;
		width: 100%;
	}
	.tv24h-hero-actions .tv24h-btn {
		width: 100%;
		min-height: 44px;
	}
	.tv24h-timeline::before {
		left: 4px;
	}
	.tv24h-timeline-bullet {
		left: -20px;
	}
}
