/**
 * Pakdoc public UI — layout patterns inspired by modern healthcare marketplaces
 * (hero search card, rounded tiles, clear CTAs). Color scheme: teal / slate / amber
 * (distinct from orange/navy palettes used elsewhere).
 */
:root {
	--pd-bg: #f8fafc;
	--pd-surface: #ffffff;
	--pd-hero-start: #042f2e; /* Deep Forest/Teal */
	--pd-hero-end: #064e3b;   /* Modern Teal */
	--pd-primary: #115e59;
	--pd-primary-dark: #0d9488;
	--pd-accent: #fbbf24;     /* Vibrant Amber */
	--pd-accent-hover: #f59e0b;
	--pd-text: #0f172a;
	--pd-muted: #475569;
	--pd-radius-lg: 1rem;
	--pd-radius-xl: 1.5rem;
	--pd-radius-2xl: 2rem;
	--pd-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--pd-shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body.pd-public {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
	background: var(--pd-bg);
	color: var(--pd-text);
	min-height: 100vh;
}

.pd-promo-bar {
	display: none;
}

.pd-promo-bar a {
	color: var(--pd-primary-dark);
	font-weight: 600;
	text-decoration: none;
}

.pd-promo-bar a:hover {
	text-decoration: underline;
}

.pd-header {
	background: var(--pd-surface);
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
	position: sticky;
	top: 0;
	z-index: 1030;
}

.pd-header .navbar-brand {
	padding: 0;
}

.pd-logo-img {
	height: 60px; /* Signficantly increased */
	width: auto;
	display: block;
}

@media (max-width: 576px) {
	.pd-logo-img {
		height: 48px;
	}
}


.hover-primary:hover { color: var(--pd-primary) !important; }



.pd-btn-accent {
	background: var(--pd-accent);
	border: none;
	color: #0f172a !important;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.5rem 1.15rem;
	font-size: 0.9rem;
	transition: background 0.15s ease, transform 0.1s ease;
}

.pd-btn-accent:hover {
	background: var(--pd-accent-hover);
	color: #0f172a !important;
	transform: translateY(-1px);
}

.pd-icon-btn {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pd-muted);
	background: #fff;
}

.pd-icon-btn:hover {
	background: #f8fafc;
	color: var(--pd-primary-dark);
}

.pd-main {
	padding-bottom: 3rem;
}

/* Landing — simplified visual */
.pd-landing-hero-visual {
	position: relative;
	border-radius: var(--pd-radius-2xl);
	overflow: hidden;
	box-shadow: var(--pd-shadow-lg);
	border: 4px solid rgba(255, 255, 255, 0.1);
}

.pd-hero-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-landing-hero-visual:hover .pd-hero-main-img {
	transform: scale(1.05);
}

.pd-landing-trust-card {
	position: absolute;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-radius: var(--pd-radius-lg);
	padding: 1rem;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	z-index: 5;
}

.pd-landing-trust-card .btn {
	font-size: 0.85rem;
	padding: 0.4rem 1rem;
}

.pd-landing-section-title {
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--pd-text);
	font-size: 1.35rem;
}

@media (min-width: 768px) {
	.pd-landing-section-title {
		font-size: 1.5rem;
	}
}

.pd-landing-stats {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-radius: var(--pd-radius-xl);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--pd-shadow);
	padding: 1.75rem 1.25rem;
}

.pd-landing-stat {
	text-align: center;
	padding: 0.5rem;
}

.pd-landing-stat strong {
	display: block;
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--pd-primary-dark);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.pd-landing-stat-desc {
	font-size: 0.8125rem;
	color: var(--pd-muted);
	font-weight: 500;
	display: block;
	max-width: 12rem;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.35;
}

.pd-landing-stat--text strong {
	font-size: 1rem;
	font-weight: 800;
	color: var(--pd-text);
	display: block;
	margin-bottom: 0.25rem;
	letter-spacing: -0.02em;
}

.pd-landing-feature-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	margin-bottom: 0.75rem;
}

.pd-landing-wave {
	line-height: 0;
	color: var(--pd-bg);
	margin-top: -1px;
}

.pd-landing-wave svg {
	display: block;
	width: 100%;
	height: 48px;
}

.pd-landing-showcase {
	background: var(--pd-surface);
	border-radius: var(--pd-radius-xl);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--pd-shadow-lg);
	overflow: hidden;
}

.pd-landing-showcase-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	padding: 1.5rem;
}

@media (min-width: 768px) {
	.pd-landing-showcase-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.25rem;
		padding: 2rem;
	}
}

.pd-landing-doc-card {
	text-align: center;
}

.pd-landing-doc-card img {
	width: 100%;
	max-width: 140px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--pd-radius-lg);
	margin: 0 auto 0.65rem;
	display: block;
	box-shadow: var(--pd-shadow);
	border: 1px solid rgba(15, 23, 42, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-landing-doc-card:hover img {
	transform: translateY(-3px);
	box-shadow: var(--pd-shadow-lg);
}

.pd-landing-doc-card .name {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--pd-text);
	margin: 0;
}

.pd-landing-doc-card .role {
	font-size: 0.75rem;
	color: var(--pd-muted);
	margin: 0;
}

.pd-landing-cta-band {
	background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
	border-radius: var(--pd-radius-xl);
	padding: 2rem 1.5rem;
	color: #fff;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.pd-landing-cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.pd-landing-cta-band .inner {
	position: relative;
	z-index: 1;
}

.pd-landing-credit {
	font-size: 0.7rem;
	color: var(--pd-muted);
	opacity: 0.85;
}

/* Hero (landing) — Mid-weight Brand Gradient */
.pd-hero {
	background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
	border-radius: var(--pd-radius-2xl);
	padding: 5rem 2.5rem;
	position: relative;
	overflow: hidden;
	box-shadow: var(--pd-shadow-lg);
	border: none;
}

@media (max-width: 768px) {
    .pd-hero {
        padding: 2.5rem 1.25rem;
        border-radius: var(--pd-radius-xl);
    }
}

.pd-hero-group-visual {
    position: relative;
    z-index: 2;
}

.pd-hero-group-visual img {
	border: 6px solid #ffffff;
	box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.15);
	border-radius: 1.5rem;
}

.pd-hero-title {
	font-family: 'Playfair Display', Georgia, serif;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
    font-size: 3.75rem;
}

.pd-hero-title i {
    font-style: italic;
    color: var(--pd-accent);
}

@media (max-width: 992px) {
    .pd-hero-title {
        font-size: 2.75rem;
    }
}

.pd-hero p {
	color: rgba(255, 255, 255, 0.9);
}

.pd-hero .pd-badge-soft {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: none;
}

.pd-hero .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Mobile Search Bar optimizations */
.pd-search-container {
    max-width: 500px;
}
@media (max-width: 576px) {
    .pd-search-container {
        border-radius: var(--pd-radius-lg) !important;
        flex-direction: column;
        padding: 0.5rem !important;
    }
    .pd-search-container form {
        flex-direction: column;
        gap: 0.5rem;
    }
    .pd-search-container input {
        border-radius: var(--pd-radius-lg) !important;
        padding-left: 0.5rem !important;
        text-align: center;
    }
    .pd-search-container button {
        width: 100%;
        margin-left: 0 !important;
    }
}



.pd-hero::before {
	content: "";
	position: absolute;
	top: -10%;
	left: -5%;
	width: 40%;
	height: 60%;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

@media (min-width: 768px) {
	.pd-hero {
		padding: 2.5rem 2.5rem;
	}
}

.pd-hero::after {
	content: "";
	position: absolute;
	right: -20%;
	top: -30%;
	width: 55%;
	height: 160%;
	background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.pd-hero h1 {
	color: #fff;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.pd-hero .pd-accent-text {
	color: var(--pd-accent);
}

.pd-badge-soft {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.pd-search-bar {
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem 0.35rem 0.35rem 1rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.pd-search-bar input {
	border: none;
	box-shadow: none !important;
	flex: 1;
	min-width: 0;
	font-size: 0.95rem;
	color: var(--pd-text);
	background: transparent;
}

.pd-search-bar input::placeholder {
	color: #94a3b8;
}

.pd-search-bar input:focus {
	outline: none;
}

.pd-search-bar .btn-search {
	border-radius: 999px;
	padding: 0.6rem 1.25rem;
	font-weight: 700;
	background: var(--pd-accent);
	color: #0f172a;
	border: none;
	white-space: nowrap;
}

.pd-search-bar .btn-search:hover {
	background: var(--pd-accent-hover);
	color: #0f172a;
}

/* Universal search on light panels (e.g. search page filters) */
.pd-search-bar--light {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.pd-search-bar--light input {
	color: var(--pd-text);
}

.pd-search-bar--light input::placeholder {
	color: #94a3b8;
}

/* Feature tiles */
.pd-tile {
	background: var(--pd-surface);
	border-radius: var(--pd-radius-lg);
	overflow: hidden;
	box-shadow: var(--pd-shadow);
	border: 1px solid rgba(15, 23, 42, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	height: 100%;
}

.pd-tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--pd-shadow-lg);
}

.pd-tile-media {
	height: 140px;
	background: linear-gradient(145deg, #ccfbf1 0%, #e0f2fe 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
}

.pd-tile-body {
	padding: 1.15rem 1.25rem 1.25rem;
}

.pd-tile-body h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	color: var(--pd-text);
}

/* Search results page */
.pd-page-title {
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pd-text);
}

.pd-filter-card {
	background: var(--pd-surface);
	border-radius: var(--pd-radius-lg);
	padding: 1.25rem;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--pd-shadow);
	margin-bottom: 1.5rem;
}

.pd-doctor-card {
	background: var(--pd-surface);
	border-radius: var(--pd-radius-lg);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--pd-shadow);
	transition: box-shadow 0.15s ease;
	height: 100%;
}

.pd-doctor-card:hover {
	box-shadow: var(--pd-shadow-lg);
}

.pd-doctor-card .card-body {
	padding: 1.25rem;
}

.pd-doctor-card .badge {
	background: #ecfeff !important;
	color: var(--pd-primary-dark) !important;
	font-weight: 600;
}

.pd-doctor-card .btn-outline-primary {
	border-color: var(--pd-primary);
	color: var(--pd-primary-dark);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.875rem;
}

.pd-doctor-card .btn-outline-primary:hover {
	background: var(--pd-primary);
	border-color: var(--pd-primary);
	color: #fff;
}

/* Signup / content panels */
.pd-panel {
	background: var(--pd-surface);
	border-radius: var(--pd-radius-lg);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--pd-shadow);
}

.pd-footer {
	margin-top: auto;
	padding: 3rem 0 2.5rem;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
}

.pd-powered-by {
	margin-top: 0.5rem;
}

.pd-powered-by .brand {
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.03em;
}

.pd-powered-by .label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	color: var(--pd-muted);
	opacity: 0.8;
}

.pd-footer a {
	color: var(--pd-primary-dark);
	text-decoration: none;
	font-weight: 500;
}

.pd-footer a:hover {
	text-decoration: underline;
}

.offcanvas.pd-offcanvas {
	border-radius: 0 var(--pd-radius-lg) var(--pd-radius-lg) 0;
}

/* Public doctor profile */
.pd-profile-hero {
	padding-bottom: 0.5rem;
}

.pd-profile-badge {
	display: inline-block;
	background: #ecfeff;
	color: var(--pd-primary-dark);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
}

.pd-share-bar .pd-share-input {
	box-shadow: var(--pd-shadow);
	border-radius: 999px;
	overflow: hidden;
}

.pd-share-bar .form-control {
	font-size: 0.8125rem;
}

.pd-profile-card {
	background: var(--pd-surface);
	border-radius: var(--pd-radius-xl);
	padding: 1.5rem;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--pd-shadow);
}

.pd-profile-avatar-wrap {
	width: 100%;
	max-width: 280px;
}

.pd-profile-avatar {
	width: 100%;
	aspect-ratio: 1;
	border-radius: var(--pd-radius-xl);
	overflow: hidden;
	background: linear-gradient(145deg, #e0f2fe 0%, #ccfbf1 100%);
	box-shadow: var(--pd-shadow);
}

.pd-profile-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	width: 100%;
	height: 100%;
	min-height: 200px;
}

.profile-about {
	line-height: 1.65;
	color: var(--pd-text);
}

/* Doctor portal (reuses tokens) */
body.pd-doctor-portal {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	background: var(--pd-bg);
	color: var(--pd-text);
}

.pd-doctor-nav {
	background: linear-gradient(135deg, var(--pd-hero-end) 0%, #0f172a 100%);
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}
