/* Rankers Education VTS — Frontend Styles */

*, *::before, *::after {
	box-sizing: border-box;
}

.rvts-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Buttons ─────────────────────────────────────────────── */

.rvts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	line-height: 1;
	white-space: nowrap;
}

.rvts-btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rvts-btn-primary {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.rvts-btn-primary:hover {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

.rvts-btn-outline {
	background: transparent;
	color: #6b7280;
	border-color: #d1d5db;
}

.rvts-btn-outline:hover {
	background: #f9fafb;
	color: #374151;
}

.rvts-btn-search {
	background: #1e3a5f;
	color: #fff;
	border-color: #1e3a5f;
}

.rvts-btn-search:hover {
	background: #162d4a;
	color: #fff;
}

.rvts-btn-call {
	background: #059669;
	color: #fff;
	border-color: #059669;
}

.rvts-btn-call:hover {
	background: #047857;
	color: #fff;
}

.rvts-btn-whatsapp {
	background: #25d366;
	color: #fff;
	border-color: #25d366;
}

.rvts-btn-whatsapp:hover {
	background: #128c7e;
	color: #fff;
}

.rvts-btn-demo {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #fff;
	border-color: #d97706;
}

.rvts-btn-demo:hover {
	background: linear-gradient(135deg, #d97706, #b45309);
	color: #fff;
}

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

/* ── Search Bar ─────────────────────────────────────────── */

.rvts-search-bar {
	background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
	border-radius: 16px;
	padding: 36px;
	margin-bottom: 40px;
	color: #fff;
}

.rvts-search-title h2 {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
	border: none;
}

.rvts-search-title p {
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 24px;
	font-size: 15px;
}

.rvts-search-form {
	margin: 0;
}

.rvts-search-fields {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.rvts-search-field {
	flex: 1;
	min-width: 180px;
	position: relative;
	display: flex;
	align-items: center;
}

.rvts-search-icon {
	position: absolute;
	left: 12px;
	font-size: 16px;
	pointer-events: none;
}

.rvts-search-field input {
	width: 100%;
	padding: 12px 12px 12px 38px;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 14px;
	transition: border-color 0.2s, background 0.2s;
}

.rvts-search-field input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.rvts-search-field input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.25);
}

/* ── Teachers Grid ─────────────────────────────────────── */

.rvts-teachers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	padding-bottom: 40px;
}

/* ── Teacher Card ─────────────────────────────────────── */

.rvts-teacher-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #f0f0f0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.rvts-teacher-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.rvts-card-photo {
	position: relative;
	background: linear-gradient(135deg, #e0e7ff, #dbeafe);
	padding: 28px;
	display: flex;
	justify-content: center;
}

.rvts-card-photo img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rvts-verified-badge {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: #059669;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	white-space: nowrap;
	letter-spacing: 0.5px;
}

.rvts-card-body {
	padding: 20px;
	flex: 1;
}

.rvts-card-name {
	font-size: 18px;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 10px;
	line-height: 1.3;
}

.rvts-card-qualification,
.rvts-card-subjects {
	font-size: 13px;
	color: #4b5563;
	margin: 0 0 6px;
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.rvts-meta-icon {
	flex-shrink: 0;
}

.rvts-card-bio {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.6;
	margin: 10px 0 0;
	border-top: 1px solid #f3f4f6;
	padding-top: 10px;
}

.rvts-card-footer {
	padding: 16px 20px;
	border-top: 1px solid #f3f4f6;
}

.rvts-view-profile {
	width: 100%;
}

/* ── No Results / Empty State ───────────────────────────── */

.rvts-no-results,
.rvts-empty-state {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: #6b7280;
}

.rvts-empty-icon {
	font-size: 64px;
	margin-bottom: 16px;
}

.rvts-empty-state h3 {
	font-size: 22px;
	color: #374151;
	margin: 0 0 8px;
}

.rvts-empty-state p {
	font-size: 15px;
	margin: 0;
}

/* ── Modal ──────────────────────────────────────────────── */

.rvts-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.7);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(3px);
	animation: rvts-fade-in 0.2s ease;
}

@keyframes rvts-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.rvts-modal {
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
	animation: rvts-slide-up 0.3s ease;
}

@keyframes rvts-slide-up {
	from { transform: translateY(30px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

.rvts-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	background: #f3f4f6;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.rvts-modal-close:hover {
	background: #e5e7eb;
}

/* ── Verification Screen ──────────────────────────────── */

#rvts-verify-screen {
	padding: 48px 40px;
	text-align: center;
}

.rvts-modal-icon {
	font-size: 56px;
	margin-bottom: 20px;
	display: block;
}

#rvts-verify-screen h3 {
	font-size: 22px;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 12px;
}

#rvts-verify-screen p {
	color: #6b7280;
	font-size: 15px;
	margin: 0 0 28px;
}

.rvts-verify-form {
	max-width: 340px;
	margin: 0 auto;
}

.rvts-code-input {
	width: 100%;
	padding: 16px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 3px;
	font-family: monospace;
	border: 2px solid #d1d5db;
	border-radius: 10px;
	margin-bottom: 16px;
	text-transform: uppercase;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.rvts-code-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.rvts-error-msg {
	color: #dc2626;
	font-size: 14px;
	margin: 0 0 16px;
	padding: 10px 16px;
	background: #fef2f2;
	border-radius: 8px;
	border-left: 3px solid #dc2626;
}

.rvts-secure-badge {
	margin-top: 24px;
	font-size: 12px;
	color: #9ca3af;
}

/* Spinner */
.rvts-spinner {
	width: 18px;
	height: 18px;
	border: 3px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rvts-spin 0.7s linear infinite;
	display: inline-block;
}

@keyframes rvts-spin {
	to { transform: rotate(360deg); }
}

/* ── Full Teacher Profile ─────────────────────────────── */

.rvts-profile {
	padding: 32px;
}

.rvts-profile-header {
	display: flex;
	gap: 24px;
	margin-bottom: 28px;
	align-items: flex-start;
}

.rvts-profile-photo {
	flex-shrink: 0;
	text-align: center;
}

.rvts-profile-photo img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #e0e7ff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rvts-verified-shield {
	margin-top: 8px;
	background: #059669;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	display: inline-block;
}

.rvts-profile-intro {
	flex: 1;
}

.rvts-profile-name {
	font-size: 24px;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 8px;
}

.rvts-profile-qual,
.rvts-profile-subjects {
	font-size: 14px;
	color: #4b5563;
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.rvts-mode-badge {
	display: inline-block;
	margin-top: 8px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
	letter-spacing: 0.3px;
}

.rvts-profile-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.rvts-profile-actions-bottom {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #f3f4f6;
}

.rvts-profile-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.rvts-bio-section {
	grid-column: 1 / -1;
}

.rvts-profile-section {
	background: #f9fafb;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #f0f0f0;
}

.rvts-section-title {
	font-size: 14px;
	font-weight: 700;
	color: #1e3a5f;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rvts-detail-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.rvts-detail-table th {
	color: #9ca3af;
	font-weight: 600;
	text-align: left;
	padding: 5px 12px 5px 0;
	white-space: nowrap;
	width: 38%;
}

.rvts-detail-table td {
	color: #374151;
	padding: 5px 0;
}

.rvts-detail-table td a {
	color: #2563eb;
	text-decoration: none;
}

.rvts-detail-table td a:hover {
	text-decoration: underline;
}

.rvts-bio-text {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.8;
	margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
	.rvts-search-bar {
		padding: 24px 16px;
	}

	.rvts-search-fields {
		flex-direction: column;
	}

	.rvts-search-field {
		min-width: 100%;
	}

	.rvts-search-field input {
		padding-left: 36px;
	}

	.rvts-teachers-grid {
		grid-template-columns: 1fr;
	}

	#rvts-verify-screen {
		padding: 32px 20px;
	}

	.rvts-profile {
		padding: 20px;
	}

	.rvts-profile-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.rvts-profile-qual,
	.rvts-profile-subjects {
		justify-content: center;
	}

	.rvts-profile-grid {
		grid-template-columns: 1fr;
	}

	.rvts-profile-actions {
		justify-content: center;
	}
}
