/* Doctor Profile Manager - public styles. All selectors are prefixed with .dpm- to avoid theme conflicts. */

:root {
	--dpm-primary: #1769E0;
	--dpm-button: #1769E0;
	--dpm-radius: 12px;
	--dpm-text: #1b2430;
	--dpm-muted: #5b6b7c;
	--dpm-border: #e6ebf1;
	--dpm-bg: #ffffff;
	--dpm-surface: #f7f9fc;
}

.dpm-doctor-profile {
	box-sizing: border-box;
	max-width: 960px;
	margin: 0 auto;
	background: var(--dpm-bg);
	border: 1px solid var(--dpm-border);
	border-radius: var(--dpm-radius);
	box-shadow: 0 4px 20px rgba(20, 30, 60, 0.06);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--dpm-text);
	line-height: 1.55;
}

.dpm-doctor-profile *,
.dpm-doctor-profile *::before,
.dpm-doctor-profile *::after {
	box-sizing: border-box;
}

.dpm-doctor-profile.dpm-error {
	padding: 24px;
	text-align: center;
	color: #b3261e;
	background: #fdecea;
	border-color: #f6c7c2;
}

/* ---------- Header ---------- */

.dpm-doctor-header {
	display: flex;
	gap: 28px;
	padding: 32px;
	align-items: flex-start;
}

.dpm-doctor-image {
	flex: 0 0 220px;
	width: 220px;
}

.dpm-doctor-photo,
.dpm-doctor-photo-placeholder {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: calc(var(--dpm-radius) * 0.8);
	display: block;
	background: var(--dpm-surface);
}

.dpm-doctor-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dpm-muted);
	border: 1px dashed var(--dpm-border);
}

.dpm-doctor-info {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.dpm-doctor-info-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dpm-doctor-name {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.25;
}

.dpm-doctor-designation {
	margin: 0 0 2px;
	font-weight: 600;
	color: var(--dpm-primary);
}

.dpm-doctor-qualifications {
	margin: 0 0 2px;
	color: var(--dpm-muted);
	font-size: 14px;
}

.dpm-doctor-specialty {
	margin: 0 0 12px;
	font-weight: 600;
}

.dpm-doctor-meta {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
}

.dpm-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--dpm-text);
}

.dpm-icon .dashicons {
	color: var(--dpm-primary);
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.dpm-fee-box {
	background: var(--dpm-surface);
	border: 1px solid var(--dpm-border);
	border-radius: calc(var(--dpm-radius) * 0.6);
	padding: 12px 16px;
	margin-bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
}

.dpm-fee-label {
	font-size: 13px;
	color: var(--dpm-muted);
	width: 100%;
}

.dpm-fee-amount {
	font-size: 22px;
	font-weight: 700;
	color: var(--dpm-primary);
}

.dpm-fee-time {
	font-size: 13px;
	color: var(--dpm-muted);
}

.dpm-appointment-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--dpm-button);
	color: #fff !important;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	font-size: 15px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dpm-appointment-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(23, 105, 224, 0.3);
}

.dpm-appointment-button .dashicons {
	color: #fff;
}

/* ---------- Share ---------- */

.dpm-share-toggle {
	background: var(--dpm-surface);
	border: 1px solid var(--dpm-border);
	border-radius: 999px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--dpm-text);
	flex: 0 0 auto;
}

.dpm-share-menu {
	position: absolute;
	right: 0;
	top: 44px;
	background: #fff;
	border: 1px solid var(--dpm-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(20, 30, 60, 0.12);
	padding: 8px;
	display: flex;
	flex-direction: column;
	min-width: 160px;
	z-index: 5;
}

.dpm-share-menu a,
.dpm-share-menu button {
	background: none;
	border: none;
	text-align: left;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 14px;
	color: var(--dpm-text);
	text-decoration: none;
	cursor: pointer;
}

.dpm-share-menu a:hover,
.dpm-share-menu button:hover {
	background: var(--dpm-surface);
}

/* ---------- Tabs ---------- */

.dpm-doctor-tabs {
	display: flex;
	border-top: 1px solid var(--dpm-border);
	border-bottom: 1px solid var(--dpm-border);
	background: var(--dpm-surface);
}

.dpm-doctor-tab {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	color: var(--dpm-muted);
	cursor: pointer;
}

.dpm-doctor-tab:focus-visible {
	outline: 2px solid var(--dpm-primary);
	outline-offset: -2px;
}

.dpm-doctor-tab.is-active {
	color: var(--dpm-primary);
	border-bottom-color: var(--dpm-primary);
}

.dpm-doctor-content {
	padding: 28px 32px;
}

.dpm-doctor-content[hidden] {
	display: none;
}

.dpm-content-block {
	margin-bottom: 26px;
}

.dpm-content-block:last-child {
	margin-bottom: 0;
}

.dpm-content-block h2 {
	font-size: 17px;
	margin: 0 0 10px;
	font-weight: 700;
}

.dpm-plain-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dpm-plain-list li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--dpm-border);
	font-size: 14.5px;
	display: flex;
	align-items: center;
	gap: 8px;
}

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

.dpm-plain-list .dashicons {
	color: var(--dpm-primary);
}

.dpm-social-links {
	display: flex;
	gap: 16px;
	margin-top: 12px;
}

.dpm-social-links a {
	color: var(--dpm-primary);
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
}

.dpm-social-links a:hover {
	text-decoration: underline;
}

.dpm-rich-text {
	font-size: 14.5px;
}

.dpm-rich-text p {
	margin: 0 0 12px;
}

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

.dpm-rich-text ul,
.dpm-rich-text ol {
	margin: 0 0 12px 20px;
	padding: 0;
}

.dpm-content-block-freewrite {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--dpm-border);
}

/* ---------- Print bar ---------- */

.dpm-print-bar {
	padding: 0 32px 28px;
	text-align: right;
}

.dpm-print-button {
	background: var(--dpm-surface);
	border: 1px solid var(--dpm-border);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	cursor: pointer;
	color: var(--dpm-text);
}

.dpm-print-button:hover {
	background: #eef2f7;
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
	.dpm-doctor-header {
		padding: 24px;
	}
	.dpm-doctor-image {
		flex-basis: 170px;
		width: 170px;
	}
	.dpm-doctor-photo,
	.dpm-doctor-photo-placeholder {
		height: 170px;
	}
	.dpm-doctor-name {
		font-size: 24px;
	}
}

/* ---------- Mobile: stack everything vertically ---------- */

@media (max-width: 640px) {
	.dpm-doctor-profile {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}
	.dpm-doctor-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px 18px;
	}
	.dpm-doctor-image {
		width: 140px;
		flex-basis: 140px;
	}
	.dpm-doctor-photo,
	.dpm-doctor-photo-placeholder {
		height: 140px;
	}
	.dpm-doctor-info-top {
		flex-direction: column;
		align-items: center;
	}
	.dpm-doctor-meta {
		justify-content: center;
	}
	.dpm-fee-box {
		justify-content: center;
		text-align: center;
	}
	.dpm-appointment-button {
		width: 100%;
		justify-content: center;
	}
	.dpm-doctor-tabs {
		justify-content: center;
	}
	.dpm-doctor-tab {
		flex: 1 1 50%;
		padding: 14px 10px;
		text-align: center;
	}
	.dpm-doctor-content {
		padding: 22px 18px;
	}
	.dpm-share-menu {
		right: auto;
		left: 50%;
		transform: translateX(-50%);
	}
}

/* ---------- Print ---------- */

@media print {
	.dpm-share-toggle,
	.dpm-share-menu,
	.dpm-print-bar,
	.dpm-doctor-tabs {
		display: none !important;
	}
	.dpm-doctor-content {
		display: block !important;
	}
	.dpm-doctor-profile {
		box-shadow: none;
		border: none;
	}
}

/* ---------- Dark-theme aware colors kept off by default: profile stays on a white card by design ---------- */
