/* PlayDede Theme — Core Design System & Layout */
:root {
	--pd-primary: #4f46e5;
	--pd-secondary: #7c3aed;
	--pd-bg: #f8fafc;
	--pd-surface: #ffffff;
	--pd-border: #e2e8f0;
	--pd-text: #0f172a;
	--pd-muted: #475569;
	--pd-radius: 12px;
	--pd-container: 1220px;
	--pd-font-scale: 1;
	--pd-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
	--pd-shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
	--pd-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	font-size: calc(16px * var(--pd-font-scale));
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--pd-font-sans);
	color: var(--pd-text);
	background: var(--pd-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--pd-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid var(--pd-primary);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pd-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 9999;
	background: var(--pd-primary);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
}

.pd-skip-link:focus {
	top: 16px;
}

.pd-container {
	width: 100%;
	max-width: var(--pd-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.pd-container--narrow {
	max-width: 860px;
}

.pd-section {
	padding-block: 48px;
}

.pd-section--tight {
	padding-block: 28px;
}

.pd-section--alt {
	background: #ffffff;
	border-top: 1px solid var(--pd-border);
	border-bottom: 1px solid var(--pd-border);
}

.pd-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.pd-section__title {
	margin: 0 0 6px;
	font-size: clamp(1.375rem, 2.2vw, 1.85rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.pd-section__subtitle {
	margin: 0;
	color: var(--pd-muted);
	max-width: 68ch;
}

.pd-muted { color: var(--pd-muted); }
.pd-text-center { text-align: center; }
.pd-text-right { text-align: right; }
.pd-mt-sm { margin-top: 12px; }
.pd-mt-md { margin-top: 20px; }
.pd-mt-lg { margin-top: 32px; }
.pd-mb-md { margin-bottom: 20px; }
.pd-mb-lg { margin-bottom: 32px; }

/* Grid */
.pd-grid {
	display: grid;
	gap: 20px;
}

.pd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
	.pd-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.pd-grid--2,
	.pd-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* Header */
.pd-header {
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--pd-border);
	backdrop-filter: blur(8px);
	z-index: 500;
}

.pd-header--sticky {
	position: sticky;
	top: 0;
}

.pd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}

.pd-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.18rem;
	color: var(--pd-text);
	letter-spacing: -0.02em;
	flex-shrink: 0;
}

.pd-logo:hover { text-decoration: none; }
.pd-logo__text span { color: var(--pd-primary); }

.pd-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pd-nav__list > li > a,
.pd-nav__dropdown-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.94rem;
	font-weight: 500;
	color: var(--pd-text);
	background: transparent;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
}

.pd-nav__list > li > a:hover,
.pd-nav__dropdown-btn:hover {
	background: #eef2ff;
	color: var(--pd-primary);
	text-decoration: none;
}

.pd-nav__has-dropdown { position: relative; }

.pd-nav__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 220px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-border);
	border-radius: var(--pd-radius);
	box-shadow: var(--pd-shadow-md);
	list-style: none;
	padding: 8px;
	margin: 0;
	z-index: 600;
}

.pd-nav__dropdown a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--pd-text);
	font-size: 0.92rem;
	font-weight: 500;
}

.pd-nav__dropdown a:hover {
	background: #eef2ff;
	color: var(--pd-primary);
	text-decoration: none;
}

.pd-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pd-header-search {
	display: flex;
	align-items: center;
	position: relative;
}

.pd-header-search .pd-input--sm {
	width: 190px;
	padding-right: 36px;
}

.pd-icon-btn {
	position: absolute;
	right: 6px;
	background: transparent;
	border: 0;
	color: var(--pd-muted);
	cursor: pointer;
	padding: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pd-mobile-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid var(--pd-border);
	background: var(--pd-surface);
	color: var(--pd-text);
	cursor: pointer;
}

.pd-mobile-drawer {
	background: var(--pd-surface);
	border-top: 1px solid var(--pd-border);
	padding-block: 16px;
}

.pd-mobile-search {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}

.pd-mobile-drawer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.pd-mobile-drawer__links a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--pd-bg);
	color: var(--pd-text);
	font-weight: 500;
	font-size: 0.94rem;
}

@media (max-width: 1080px) {
	.pd-nav,
	.pd-header-search { display: none; }
	.pd-mobile-toggle { display: inline-flex; }
}

@media (max-width: 600px) {
	.pd-hide-mobile { display: none; }
	.pd-mobile-drawer__links { grid-template-columns: minmax(0, 1fr); }
}

/* Hero */
.pd-hero {
	background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
	border-bottom: 1px solid var(--pd-border);
	padding-block: 44px;
}

.pd-hero__grid {
	display: grid;
	grid-template-columns: 1.35fr 0.95fr;
	gap: 28px;
	align-items: center;
}

@media (max-width: 960px) {
	.pd-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.pd-hero__status-pill {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 0.88rem;
}

.pd-hero__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 3.3vw, 2.65rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.pd-hero__desc {
	margin: 0 0 22px;
	font-size: 1.05rem;
	color: var(--pd-muted);
	max-width: 60ch;
}

.pd-hero__search {
	display: flex;
	gap: 10px;
	max-width: 600px;
}

@media (max-width: 520px) {
	.pd-hero__search { flex-direction: column; }
}

.pd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.pd-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 20px;
	font-size: 0.88rem;
	color: var(--pd-muted);
	font-weight: 500;
}

.pd-panel__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
}

.pd-quick-links {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.pd-quick-link {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--pd-border);
	border-radius: 10px;
	background: var(--pd-bg);
	color: var(--pd-text);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pd-quick-link:hover {
	border-color: var(--pd-primary);
	background: #eef2ff;
	text-decoration: none;
}

.pd-quick-link strong { display: block; font-size: 0.95rem; }
.pd-quick-link span { font-size: 0.84rem; color: var(--pd-muted); }

/* Page headers & Article layout */
.pd-page-header { margin-bottom: 24px; }

.pd-page-title {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 2.8vw, 2.25rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.pd-page-subtitle {
	margin: 0;
	color: var(--pd-muted);
	font-size: 1.03rem;
	max-width: 72ch;
}

.pd-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 12px;
	color: var(--pd-muted);
	font-size: 0.9rem;
}

.pd-article-cover {
	margin: 20px 0;
	border-radius: var(--pd-radius);
	overflow: hidden;
}

.pd-prose h2 { margin-top: 28px; font-size: 1.38rem; }
.pd-prose h3 { margin-top: 22px; font-size: 1.15rem; }
.pd-prose p, .pd-prose li { font-size: 1.02rem; color: #1e293b; }

/* Service Detail Layout */
.pd-service-hero {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.pd-service-hero__identity {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	flex: 1 1 420px;
}

.pd-service-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.pd-service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pd-service-layout {
	display: grid;
	grid-template-columns: 1.5fr 0.9fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 900px) {
	.pd-service-layout { grid-template-columns: minmax(0, 1fr); }
}

.pd-facts-list {
	margin: 12px 0 0;
}

.pd-facts-list > div {
	padding: 10px 0;
	border-bottom: 1px solid var(--pd-border);
}

.pd-facts-list > div:last-child { border-bottom: 0; }
.pd-facts-list dt { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; color: var(--pd-muted); }
.pd-facts-list dd { margin: 2px 0 0; font-size: 0.95rem; }

/* Footer */
.pd-footer {
	background: #ffffff;
	border-top: 1px solid var(--pd-border);
	padding-block: 48px 28px;
	margin-top: 40px;
}

.pd-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
}

@media (max-width: 900px) {
	.pd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.pd-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

.pd-footer__desc { color: var(--pd-muted); font-size: 0.92rem; margin: 12px 0; }
.pd-footer__contact { font-size: 0.92rem; margin: 0 0 10px; }
.pd-footer__socials { display: flex; gap: 12px; font-size: 0.9rem; }

.pd-footer__heading {
	margin: 0 0 12px;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--pd-text);
}

.pd-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 0.92rem;
}

.pd-footer__list a { color: var(--pd-muted); }
.pd-footer__list a:hover { color: var(--pd-primary); }

.pd-footer__bottom {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--pd-border);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--pd-muted);
}

.pd-footer__bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
