/**
 * PromptForger — Main Stylesheet
 *
 * 3-Layer CSS Architecture (Cruvai CSS Architecture Template v1.0.0)
 * Dark-first AI education theme for prompt engineering platforms.
 *
 * Layer 1: theme.json (WordPress generates preset utilities — no custom CSS needed)
 * Layer 2: CSS custom property scoping (light context overrides)
 * Layer 3: Behavioral selectors (dark defaults, effects, community features)
 *
 * WCAG 2.1 AA Contrast Verification:
 * - Text (#E2E8F0) on Primary (#0D0F1A) = 13.7:1 (AAA)
 * - Muted (#94A3B8) on Primary (#0D0F1A) = 7.1:1 (AA)
 * - Secondary (#8B5CF6) on Primary (#0D0F1A) = 5.6:1 (AA)
 * - Accent (#06B6D4) on Primary (#0D0F1A) = 8.1:1 (AAA)
 * - Highlight (#F59E0B) on Primary (#0D0F1A) = 8.6:1 (AAA)
 *
 * @package PromptForger
 */

/* =============================================
   LAYER 2: CSS Custom Property Scoping
   ============================================= */

/*
 * Light section overrides.
 * Dark-first theme: default is light text on dark bg.
 * Redefine tokens when a light bg is used.
 */
.has-background-color {
	--wp--preset--color--text: #1E293B;
	--wp--preset--color--muted: #475569;
}

/* =============================================
   LAYER 3: Behavioral Selectors
   ============================================= */

/* ── 3.0: Global Defaults ── */

html {
	scroll-behavior: smooth;
}

@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ── 3.1: Skip Link (Accessibility) ── */

.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 9999;
	padding: 8px 16px;
	background: var(--wp--preset--color--secondary);
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
}

/* ── 3.2: Sticky Header ── */

.wp-block-template-part[data-area="header"] {
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

/* Header container */
.pf-header {
	background: rgba(13, 15, 26, 0.92) !important;
}

/* Logo sizing */
.pf-header-logo .wp-block-site-logo img,
.pf-header .wp-block-site-logo img {
	width: 52px !important;
	height: 52px !important;
	object-fit: contain;
	border-radius: 8px;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.pf-header .wp-block-site-logo img:hover {
	transform: scale(1.05);
	filter: brightness(1.15);
}

/* Hide site title in header — logo only */
.pf-header .wp-block-site-title {
	display: none !important;
}

/* ── Main Navigation — Sleek Modern ── */

.pf-main-nav .wp-block-navigation-item a {
	position: relative;
	padding: 24px 18px !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em;
	color: #94A3B8 !important;
	text-decoration: none !important;
	transition: color 0.25s ease;
	white-space: nowrap;
}

.pf-main-nav .wp-block-navigation-item a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, #8B5CF6, #A78BFA);
	border-radius: 2px;
	transform: translateX(-50%);
	transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-main-nav .wp-block-navigation-item a:hover {
	color: #E2E8F0 !important;
}

.pf-main-nav .wp-block-navigation-item a:hover::after {
	width: 70%;
}

.pf-main-nav .wp-block-navigation-item.current-menu-item a,
.pf-main-nav .wp-block-navigation-item a[aria-current="page"] {
	color: #8B5CF6 !important;
}

.pf-main-nav .wp-block-navigation-item.current-menu-item a::after,
.pf-main-nav .wp-block-navigation-item a[aria-current="page"]::after {
	width: 70%;
}

/* ── 3.3: Header Actions (Search) ── */

.pf-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Search input refinement */
.pf-header-search .wp-block-search__inside-wrapper {
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 8px !important;
	transition: border-color 0.25s ease, background 0.25s ease;
	min-width: 200px;
}

.pf-header-search .wp-block-search__inside-wrapper:focus-within {
	border-color: rgba(139, 92, 246, 0.4) !important;
	background: rgba(255, 255, 255, 0.09) !important;
}

.pf-header-search input.wp-block-search__input {
	background: transparent !important;
	border: none !important;
	color: #E2E8F0 !important;
	font-size: 0.8125rem !important;
	padding: 8px 14px !important;
	min-width: 0 !important;
	width: 100% !important;
}

.pf-header-search input.wp-block-search__input::placeholder {
	color: #64748B !important;
}

.pf-header-search .wp-block-search__button {
	background: rgba(139, 92, 246, 0.12) !important;
	border: none !important;
	border-radius: 0 7px 7px 0 !important;
	padding: 8px 14px !important;
	transition: background 0.2s ease;
	min-height: 36px;
}

.pf-header-search .wp-block-search__button:hover {
	background: rgba(139, 92, 246, 0.25) !important;
}

.pf-header-search .wp-block-search__button svg {
	fill: #8B5CF6 !important;
	width: 16px;
	height: 16px;
}

/* ── 3.4: Auth Button in Header ── */

.pf-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pf-auth-button a,
.pf-auth-button button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: 20px;
	color: #A78BFA;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.25s ease;
	white-space: nowrap;
	cursor: pointer;
}

.pf-auth-button a:hover,
.pf-auth-button button:hover {
	background: rgba(139, 92, 246, 0.2);
	border-color: rgba(139, 92, 246, 0.45);
	color: #FFFFFF;
	transform: translateY(-1px);
}

.pf-auth-button svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
}

/* ── 3.5: Block Styles — Neon Glow ── */

.is-style-pf-neon-glow {
	border: 1px solid rgba(139, 92, 246, 0.15);
	border-radius: 12px;
	transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.is-style-pf-neon-glow:hover {
	box-shadow:
		0 0 20px rgba(139, 92, 246, 0.15),
		0 0 40px rgba(139, 92, 246, 0.05);
	border-color: rgba(139, 92, 246, 0.35);
	transform: translateY(-2px);
}

/* ── 3.6: Block Styles — Glass Card ── */

.is-style-pf-glass-card {
	background: rgba(22, 27, 46, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
}

/* ── 3.7: Block Styles — Dark Section ── */

.is-style-pf-dark-section {
	background-color: var(--wp--preset--color--background);
}

/* ── 3.8: Block Styles — Surface Card ── */

.is-style-pf-surface-card {
	background-color: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.is-style-pf-surface-card:hover {
	border-color: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
}

/* ── 3.9: Block Styles — Heading Accents ── */

.is-style-pf-accent-underline::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	margin-top: 12px;
	background: var(--wp--preset--color--secondary);
	border-radius: 2px;
}

.is-style-pf-centered-accent {
	text-align: center;
}

.is-style-pf-centered-accent::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--wp--preset--color--secondary);
	border-radius: 2px;
}

/* ── 3.10: Block Styles — Buttons ── */

.is-style-pf-outline-neon .wp-block-button__link {
	background: transparent !important;
	border: 2px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary) !important;
	transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.is-style-pf-outline-neon .wp-block-button__link:hover {
	background: rgba(139, 92, 246, 0.1) !important;
	box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.is-style-pf-accent-button .wp-block-button__link {
	background: var(--wp--preset--color--accent) !important;
	color: #FFFFFF !important;
}

.is-style-pf-accent-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent-light) !important;
}

.is-style-pf-dark-button .wp-block-button__link {
	background: var(--wp--preset--color--primary-light) !important;
	color: var(--wp--preset--color--text) !important;
}

.is-style-pf-dark-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary) !important;
}

/* ── 3.11: Block Styles — Images ── */

.is-style-pf-glow-shadow img {
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

/* ── 3.12: Block Styles — Separator ── */

.is-style-pf-neon-separator {
	border: none !important;
	height: 2px !important;
	background: linear-gradient(90deg, #8B5CF6, #06B6D4) !important;
	opacity: 0.5;
}

/* ── 3.13: Block Styles — Card Grid Columns ── */

.is-style-pf-card-grid > .wp-block-column {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: var(--wp--preset--spacing--50);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.is-style-pf-card-grid > .wp-block-column:hover {
	border-color: rgba(139, 92, 246, 0.2);
	transform: translateY(-2px);
}

/* ── 3.14: Block Styles — Cover Gradient (Neural Network) ── */

.is-style-pf-gradient-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(13, 15, 26, 0.95) 0%,
		rgba(13, 15, 26, 0.7) 40%,
		rgba(139, 92, 246, 0.12) 70%,
		rgba(6, 182, 212, 0.08) 100%
	);
	pointer-events: none;
}

/* ── 3.15: Block Styles — Prompt Block ── */

.is-style-pf-prompt-block {
	position: relative;
	background: var(--wp--preset--color--primary) !important;
	border-left: 3px solid var(--wp--preset--color--secondary);
	border-radius: 0 8px 8px 0;
	padding: 20px 24px !important;
	font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace !important;
	font-size: 0.875rem !important;
	line-height: 1.7 !important;
	color: var(--wp--preset--color--accent-light) !important;
	overflow-x: auto;
}

.is-style-pf-prompt-block code {
	background: transparent !important;
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	padding: 0 !important;
}

/* Prompt block hover — subtle violet glow */
.is-style-pf-prompt-block:hover {
	box-shadow: 0 0 16px rgba(139, 92, 246, 0.08);
}

/* Copy button positioning (added via JS) */
.pf-prompt-copy {
	position: absolute;
	top: 8px;
	right: 8px;
	padding: 4px 10px;
	background: rgba(139, 92, 246, 0.15);
	border: 1px solid rgba(139, 92, 246, 0.25);
	border-radius: 4px;
	color: #A78BFA;
	font-size: 0.7rem;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.is-style-pf-prompt-block:hover .pf-prompt-copy {
	opacity: 1;
}

.pf-prompt-copy:hover {
	background: rgba(139, 92, 246, 0.3);
	color: #FFFFFF;
}

/* ── 3.16: Navigation Styling ── */

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: rgba(8, 10, 18, 0.98) !important;
	backdrop-filter: blur(20px);
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item
	a {
	color: var(--wp--preset--color--text) !important;
	font-size: 1.125rem !important;
	padding: 12px 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item
	a:hover {
	color: var(--wp--preset--color--secondary) !important;
}

/* Navigation hamburger icon color */
.wp-block-navigation__responsive-container-open svg {
	fill: #E2E8F0;
}

/* Hide site title everywhere in the header (show only logo) */
.wp-block-template-part[data-area="header"] .wp-block-site-title {
	display: none !important;
}

/* ── 3.17: Footer Styles ── */

footer .wp-block-group a,
.wp-block-template-part[data-area="footer"] a {
	color: #94A3B8;
	text-decoration: none;
	transition: color 0.2s ease;
}

footer .wp-block-group a:hover,
.wp-block-template-part[data-area="footer"] a:hover {
	color: var(--wp--preset--color--secondary);
}

/* ── 3.18: Skill Level Badges ── */

.pf-skill-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.7rem;
	font-weight: 700;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

.pf-skill-badge--beginner {
	background: rgba(6, 182, 212, 0.15);
	color: #06B6D4;
	border: 1px solid rgba(6, 182, 212, 0.3);
}

.pf-skill-badge--intermediate {
	background: rgba(139, 92, 246, 0.15);
	color: #8B5CF6;
	border: 1px solid rgba(139, 92, 246, 0.3);
}

.pf-skill-badge--advanced {
	background: rgba(245, 158, 11, 0.15);
	color: #F59E0B;
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.pf-skill-badge--expert {
	background: rgba(239, 68, 68, 0.15);
	color: #EF4444;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── 3.19: AI Model Badges ── */

.pf-model-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.7rem;
	font-weight: 600;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.4;
}

/* GPT models — green */
.pf-model-badge--gpt {
	background: rgba(16, 163, 127, 0.15);
	color: #10A37F;
	border: 1px solid rgba(16, 163, 127, 0.3);
}

/* Claude models — amber/orange */
.pf-model-badge--claude {
	background: rgba(204, 147, 79, 0.15);
	color: #CC934F;
	border: 1px solid rgba(204, 147, 79, 0.3);
}

/* Gemini models — blue */
.pf-model-badge--gemini {
	background: rgba(66, 133, 244, 0.15);
	color: #4285F4;
	border: 1px solid rgba(66, 133, 244, 0.3);
}

/* Llama / open-source models — violet */
.pf-model-badge--llama,
.pf-model-badge--open-source {
	background: rgba(139, 92, 246, 0.15);
	color: #8B5CF6;
	border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Midjourney — cyan */
.pf-model-badge--midjourney {
	background: rgba(6, 182, 212, 0.15);
	color: #06B6D4;
	border: 1px solid rgba(6, 182, 212, 0.3);
}

/* DALL-E — highlight/amber */
.pf-model-badge--dalle {
	background: rgba(245, 158, 11, 0.15);
	color: #F59E0B;
	border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Stable Diffusion — red/pink */
.pf-model-badge--stable-diffusion {
	background: rgba(236, 72, 153, 0.15);
	color: #EC4899;
	border: 1px solid rgba(236, 72, 153, 0.3);
}

/* Generic / Universal fallback */
.pf-model-badge--generic {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--muted);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── 3.20: Difficulty Meter ── */

.pf-difficulty-meter {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.pf-difficulty-meter__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	margin-right: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pf-difficulty-meter__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pf-difficulty-meter__dot--filled {
	background: var(--wp--preset--color--secondary);
	border-color: rgba(139, 92, 246, 0.5);
	box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
}

/* ── 3.21: Effectiveness Score ── */

.pf-effectiveness {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-weight: 800;
	font-size: 1.25rem;
	border-radius: 8px;
	font-variant-numeric: tabular-nums;
}

.pf-effectiveness--high {
	background: rgba(74, 222, 128, 0.15);
	color: #4ADE80;
	border: 2px solid rgba(74, 222, 128, 0.3);
}

.pf-effectiveness--mid {
	background: rgba(245, 158, 11, 0.15);
	color: #F59E0B;
	border: 2px solid rgba(245, 158, 11, 0.3);
}

.pf-effectiveness--low {
	background: rgba(239, 68, 68, 0.15);
	color: #EF4444;
	border: 2px solid rgba(239, 68, 68, 0.3);
}

/* ── 3.22: Use Case Tags ── */

.pf-use-case-tag {
	display: inline-block;
	padding: 3px 10px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--muted);
	font-size: 0.7rem;
	font-weight: 600;
	border-radius: 12px;
	text-transform: none;
	letter-spacing: 0.02em;
	border: 1px solid rgba(255, 255, 255, 0.06);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.pf-use-case-tag:hover {
	border-color: rgba(139, 92, 246, 0.25);
	color: var(--wp--preset--color--text);
}

/* ── 3.23: Reading Time ── */

.pf-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.pf-reading-time svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	flex-shrink: 0;
}

/* ── 3.24: Entry Meta ── */

.pf-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.pf-entry-meta a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.pf-entry-meta a:hover {
	color: var(--wp--preset--color--secondary);
}

.pf-entry-meta__separator {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--wp--preset--color--muted);
	opacity: 0.5;
}

/* ── 3.25: Community — Insight Cards ── */

.pf-insight-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 24px;
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-insight-card:hover {
	border-color: rgba(139, 92, 246, 0.2);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pf-insight-card__title {
	color: var(--wp--preset--color--text);
	font-weight: 700;
	font-size: 1.125rem;
	margin-bottom: 8px;
}

.pf-insight-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.pf-insight-card__title a:hover {
	color: var(--wp--preset--color--secondary);
}

.pf-insight-card__excerpt {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

.pf-insight-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.pf-insight-card__type-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pf-insight-card__type-badge--tip {
	background: rgba(6, 182, 212, 0.15);
	color: #06B6D4;
}

.pf-insight-card__type-badge--technique {
	background: rgba(139, 92, 246, 0.15);
	color: #8B5CF6;
}

.pf-insight-card__type-badge--template {
	background: rgba(245, 158, 11, 0.15);
	color: #F59E0B;
}

.pf-insight-card__type-badge--discussion {
	background: rgba(74, 222, 128, 0.15);
	color: #4ADE80;
}

/* ── 3.26: Community — Upvote Button ── */

.pf-upvote-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none !important;
}

.pf-upvote-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	transition: transform 0.2s ease;
}

.pf-upvote-btn:hover {
	background: rgba(139, 92, 246, 0.08);
	border-color: rgba(139, 92, 246, 0.25);
	color: #A78BFA;
}

.pf-upvote-btn:hover svg {
	transform: translateY(-1px);
}

.pf-upvote-btn.is-active {
	background: rgba(139, 92, 246, 0.15);
	border-color: rgba(139, 92, 246, 0.4);
	color: #8B5CF6;
}

.pf-upvote-btn.is-active svg {
	fill: currentColor;
}

/* ── 3.27: Community — Auth Forms ── */

.pf-auth-form {
	max-width: 400px;
	margin: 0 auto;
	padding: 40px;
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
}

.pf-auth-form__title {
	color: var(--wp--preset--color--text);
	font-size: 1.5rem;
	font-weight: 800;
	text-align: center;
	margin-bottom: 8px;
}

.pf-auth-form__subtitle {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	text-align: center;
	margin-bottom: 32px;
}

.pf-auth-form label {
	display: block;
	color: var(--wp--preset--color--text);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.pf-auth-form input[type="text"],
.pf-auth-form input[type="email"],
.pf-auth-form input[type="password"] {
	width: 100%;
	padding: 10px 14px;
	background: var(--wp--preset--color--primary-light);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: var(--wp--preset--color--text);
	font-size: 0.875rem;
	margin-bottom: 16px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	outline: none;
}

.pf-auth-form input[type="text"]:focus,
.pf-auth-form input[type="email"]:focus,
.pf-auth-form input[type="password"]:focus {
	border-color: rgba(139, 92, 246, 0.5);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.pf-auth-form button[type="submit"] {
	width: 100%;
	padding: 12px 24px;
	background: var(--wp--preset--color--secondary);
	border: none;
	border-radius: 6px;
	color: #FFFFFF;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.15s ease;
}

.pf-auth-form button[type="submit"]:hover {
	background: var(--wp--preset--color--secondary-light);
	transform: translateY(-1px);
}

.pf-auth-form__footer {
	text-align: center;
	margin-top: 20px;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.pf-auth-form__footer a {
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s ease;
}

.pf-auth-form__footer a:hover {
	color: var(--wp--preset--color--secondary-light);
}

/* ── 3.28: Community — Member Profile ── */

.pf-member-profile {
	background: var(--wp--preset--color--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 32px;
	text-align: center;
}

.pf-member-profile__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid rgba(139, 92, 246, 0.3);
	margin: 0 auto 16px;
	object-fit: cover;
}

.pf-member-profile__name {
	color: var(--wp--preset--color--text);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 4px;
}

.pf-member-profile__role {
	color: var(--wp--preset--color--secondary);
	font-size: 0.8125rem;
	font-weight: 600;
	margin-bottom: 16px;
}

.pf-member-profile__stats {
	display: flex;
	justify-content: center;
	gap: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-member-profile__stat {
	text-align: center;
}

.pf-member-profile__stat-value {
	display: block;
	color: var(--wp--preset--color--text);
	font-size: 1.125rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.pf-member-profile__stat-label {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pf-member-profile__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

/* ── 3.29: Fade-In Animation ── */

.pf-fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.pf-fade-in.pf-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── 3.30: Search Overlay ── */

.pf-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(8, 10, 18, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.pf-search-overlay.is-active {
	display: flex;
}

.pf-search-overlay__inner {
	width: 100%;
	max-width: 640px;
	padding: 0 24px;
}

.pf-search-overlay input[type="search"] {
	width: 100%;
	padding: 16px 24px;
	background: var(--wp--preset--color--surface);
	border: 2px solid rgba(139, 92, 246, 0.3);
	border-radius: 8px;
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--large);
	outline: none;
	transition: border-color 0.3s ease;
}

.pf-search-overlay input[type="search"]:focus {
	border-color: var(--wp--preset--color--secondary);
}

.pf-search-overlay input[type="search"]::placeholder {
	color: #64748B;
}

.pf-search-overlay__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.pf-search-overlay__close:hover {
	color: var(--wp--preset--color--text);
	background: rgba(255, 255, 255, 0.1);
}

.pf-search-overlay__close svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {

	/* Smaller skill badges on mobile */
	.pf-skill-badge,
	.pf-model-badge {
		font-size: 0.65rem;
		padding: 2px 8px;
	}

	/* Smaller effectiveness score on mobile */
	.pf-effectiveness {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}

	/* Single-column insight cards on mobile */
	.pf-insight-card {
		padding: 16px;
	}

	/* Auth form full-width on mobile */
	.pf-auth-form {
		padding: 24px;
		margin: 0 16px;
	}

	/* Member profile compact on mobile */
	.pf-member-profile {
		padding: 24px 16px;
	}

	.pf-member-profile__stats {
		gap: 16px;
	}

	/* Search overlay input smaller on mobile */
	.pf-search-overlay input[type="search"] {
		font-size: 1rem;
		padding: 12px 16px;
	}

	/* Entry meta stacks on mobile */
	.pf-entry-meta {
		gap: 8px;
	}

	/* Difficulty meter slightly smaller */
	.pf-difficulty-meter__dot {
		width: 8px;
		height: 8px;
	}

	/* Use case tags wrap tighter */
	.pf-use-case-tag {
		font-size: 0.65rem;
		padding: 2px 8px;
	}

	/* Prompt block less padding on mobile */
	.is-style-pf-prompt-block {
		padding: 14px 16px !important;
		font-size: 0.8125rem !important;
	}

	/* Header actions compact */
	.pf-header-actions {
		gap: 8px;
	}

	.pf-header-search .wp-block-search__inside-wrapper {
		min-width: 140px;
	}
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
	.wp-block-template-part[data-area="header"],
	.wp-block-template-part[data-area="footer"],
	.wp-block-navigation,
	.wp-block-button,
	.pf-search-overlay,
	.pf-upvote-btn,
	.pf-auth-button {
		display: none !important;
	}

	body {
		background: #FFFFFF;
		color: #000000;
		font-size: 12pt;
	}

	.is-style-pf-prompt-block {
		background: #F3F4F6 !important;
		color: #1E293B !important;
		border-left-color: #6D28D9 !important;
	}
}
