/* =================================================================
 * Shared styles for all prank screen pages
 *
 * THEME-WIDE DESIGN RULE — applies to every tool page, not just pranks
 * "One Tool Card + Separator-Based Content Sections"
 *
 *   1. Hero is plain (no card wrapper).
 *   2. The interactive tool lives in ONE white card with the
 *      shared border / radius / shadow values.
 *   3. Content sections BELOW the tool (SEO body, FAQ, instructions,
 *      OS variants, etc.) are NEVER wrapped in additional boxes.
 *      They are separated from the tool and from each other by:
 *        padding-top: 36px;
 *        border-top: 1px solid var(--{tool}-border);
 *      The .{tool}-faq-inner / .prank-page-faq-inner wrappers are
 *      flat (padding: 0; no border / background / shadow).
 *   4. Primary action buttons follow the tool's accent color.
 *   5. Thumbnails are real CSS-rendered mini previews — never
 *      empty colored rectangles.
 *
 * Affected files: every */css/*.css file in foxiz-child/assets/css.
 * If you add a new tool, follow the same pattern from the start.
 * ================================================================= */

/* =================================================================
 * Prank Screens — landing-page styles
 * Mirrors the existing tool design system (border, radius, shadow,
 * spacing rhythm) so prank pages feel consistent with /password-generator,
 * /image-upscaler, etc.
 * ================================================================= */
.prank-page {
	--prank-accent: #6d28d9;
	--prank-accent-light: color-mix(in srgb, #6d28d9 10%, transparent);
	--prank-border: var(--flex-gray-15, rgba(0, 0, 0, 0.08));
	--prank-surface: var(--solid-white, #fff);
	--prank-radius: 16px;
	--prank-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 6px 24px rgba(0, 0, 0, 0.07);
	position: relative;
	padding: 36px 0 80px;
}

/* ---------- Landing Hero (matches .pwgen-hero) ---------- */
.prank-hero {
	max-width: 800px;
	margin: 0 auto;
	padding: 18px 0 28px;
	text-align: center;
}
.prank-hero-title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3.5vw, 2.2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--headline-fcolor, #111827);
}
.prank-hero-subtitle {
	max-width: 640px;
	margin: 0 auto 18px;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	line-height: 1.65;
	color: var(--excerpt-color, #6b7280);
}
.prank-hero-badges {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
}
.prank-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 40px;
	background: var(--flex-gray-7, rgba(0, 0, 0, 0.04));
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--meta-fcolor, #4b5563);
	letter-spacing: 0.01em;
}
.prank-badge svg {
	width: 14px;
	height: 14px;
}

/* =================================================================
 * Tool sections (mirrors .pwgen-tool-section + .pwgen-card)
 * ================================================================= */
.prank-tool-section {
	max-width: 1100px;
	margin: 0 auto 36px;
}
.prank-os-section {
	max-width: 1100px;
	margin: 0 auto 36px;
}
.prank-card {
	background: var(--prank-surface);
	border: 1px solid #ddd;
	border-radius: var(--prank-radius);
	box-shadow: var(--prank-shadow);
	padding: 36px 36px 32px;
}

/* =================================================================
 * Preview Area
 * Two-column grid: live mini-preview on the left, settings on the right.
 * ================================================================= */
.prank-preview-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
	gap: 32px;
	align-items: stretch;
}
@media (max-width: 900px) {
	.prank-preview-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.prank-card {
		padding: 24px 22px 22px;
	}
}

/* ---------- Preview frame (the mini fake-update box) ---------- */
.prank-preview-frame {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: 12px;
	overflow: hidden;
	background: #0067c0;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
	isolation: isolate;
}
.prank-preview-frame > .fwu11-stage,
.prank-preview-frame > .fwu10-stage,
.prank-preview-frame > [class$="-stage"] {
	border-radius: 12px;
}
.prank-fullscreen-btn {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 8px;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background var(--effect, 0.25s ease), transform var(--effect, 0.25s ease);
}
.prank-fullscreen-btn:hover {
	background: rgba(255, 255, 255, 0.32);
	transform: scale(1.05);
}
.prank-fullscreen-btn svg {
	width: 18px;
	height: 18px;
}

/* ---------- Settings panel (right column) ---------- */
.prank-settings-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding: 28px 24px;
	background: #f3f4f6;
	border-radius: 12px;
}
.prank-setting {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.prank-setting-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--headline-fcolor, #374151);
}
.prank-setting-control {
	display: grid;
	grid-template-columns: 1fr 60px;
	align-items: center;
	gap: 12px;
}
.prank-settings-panel .prank-setting-control input[type="number"] {
	width: 100%;
	min-width: 0;
	padding: 9px 12px;
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	text-align: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	outline: none;
	font-variant-numeric: tabular-nums;
	font-family: inherit;
	transition: border-color var(--effect, 0.2s ease), background var(--effect, 0.2s ease), box-shadow var(--effect, 0.2s ease);
}
.prank-setting-control input:hover {
	border-color: var(--flex-gray-30, #d1d5db);
}
.prank-setting-control input:focus {
	background: var(--prank-surface);
	border-color: var(--prank-accent);
	box-shadow: 0 0 0 3px var(--prank-accent-light);
}
.prank-setting-control input::-webkit-outer-spin-button,
.prank-setting-control input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.prank-setting-control input[type=number] {
	-moz-appearance: textfield;
}
.prank-setting-suffix {
	font-size: 0.95rem;
	color: var(--meta-fcolor, #6b7280);
	font-weight: 500;
}
.prank-restart-btn {
	margin-top: 6px;
	padding: 14px 18px;
	background: #0067c0;
	color: #fff;
	border: 1.5px solid #0067c0;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: all var(--effect, 0.25s ease);
}
.prank-restart-btn:hover {
	background: #005ba6;
	border-color: #005ba6;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 103, 192, 0.28);
}
.prank-launch-help {
	margin: 6px 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--meta-fcolor, #6b7280);
	text-align: center;
}
.prank-launch-help kbd {
	display: inline-block;
	padding: 3px 8px;
	font-size: 0.85rem;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	background: var(--flex-gray-7, #f3f4f6);
	border: 1px solid var(--prank-border);
	border-bottom-width: 2px;
	border-radius: 5px;
	color: var(--headline-fcolor, #374151);
}

/* =================================================================
 * OS Variants Grid
 * ================================================================= */
.prank-os-grid-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--headline-fcolor, #111827);
	margin: 0 0 20px;
	text-align: center;
}
.prank-os-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}
.prank-os-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 16px 12px;
	background: var(--prank-surface);
	border: 1px solid var(--prank-border);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: all var(--effect, 0.25s ease);
}
.prank-os-card:hover {
	border-color: var(--prank-accent);
	box-shadow: 0 6px 18px rgba(109, 40, 217, 0.14);
	transform: translateY(-2px);
}
.prank-os-card.is-current {
	border-color: var(--prank-accent);
	box-shadow: 0 0 0 2px var(--prank-accent-light);
	background: var(--prank-accent-light);
}
.prank-os-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	background: #0067c0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px;
	color: #fff;
	text-align: center;
	font-family: "Segoe UI", system-ui, sans-serif;
}
.prank-os-thumb--win { background: #0067c0; }
.prank-os-thumb--mac { background: #000; }
.prank-os-thumb--bsod { background: #0078d7; align-items: flex-start; padding: 12px 14px; }
.prank-os-thumb--hack { background: #000; align-items: flex-start; padding: 10px 12px; }

/* Windows spinner */
.prank-thumb-spinner {
	position: relative;
	width: 28px;
	height: 28px;
	margin-bottom: 2px;
}
.prank-thumb-spinner span {
	position: absolute;
	top: 0;
	left: 50%;
	width: 3px;
	height: 3px;
	margin-left: -1.5px;
	background: #fff;
	border-radius: 50%;
	transform-origin: 1.5px 14px;
	animation: prank-thumb-spin 1.6s linear infinite;
}
.prank-thumb-spinner span:nth-child(2) { animation-delay: -0.2s; }
.prank-thumb-spinner span:nth-child(3) { animation-delay: -0.4s; }
.prank-thumb-spinner span:nth-child(4) { animation-delay: -0.6s; }
.prank-thumb-spinner span:nth-child(5) { animation-delay: -0.8s; }
@keyframes prank-thumb-spin {
	0%   { transform: rotate(0deg); opacity: 1; }
	80%  { opacity: 0; }
	100% { transform: rotate(360deg); opacity: 0; }
}
.prank-thumb-line {
	font-size: 9px;
	font-weight: 500;
	line-height: 1.3;
}
.prank-thumb-sub {
	font-size: 7.5px;
	opacity: 0.85;
	line-height: 1.3;
}

/* macOS */
.prank-thumb-apple {
	font-size: 28px;
	line-height: 1;
	margin-bottom: 4px;
}
.prank-thumb-bar {
	width: 70%;
	height: 4px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	overflow: hidden;
}
.prank-thumb-bar-fill {
	width: 45%;
	height: 100%;
	background: #fff;
	border-radius: 2px;
}

/* BSOD */
.prank-thumb-frown {
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	margin-bottom: 4px;
}
.prank-thumb-bsod-text {
	font-size: 8px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
}

/* Hacker Typer */
.prank-thumb-code {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: 8px;
	color: #22c55e;
	line-height: 1.4;
	width: 100%;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.prank-os-card span {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--headline-fcolor, #374151);
}

/* ---------- Legacy launch panel (still used by some pages) ---------- */
.prank-launch-panel {
	max-width: 560px;
	margin: 0 auto 30px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.prank-launch-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.prank-launch-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45);
}
.prank-launch-btn svg {
	width: 20px;
	height: 20px;
}
.prank-launch-help {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	text-align: center;
}
.prank-launch-help kbd {
	display: inline-block;
	padding: 2px 7px;
	font-size: 11px;
	font-family: ui-monospace, monospace;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-bottom-width: 2px;
	border-radius: 5px;
	color: #374151;
}

/* ---------- Instruction Steps ---------- */
.prank-instructions {
	max-width: 780px;
	margin: 0 auto 40px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.prank-instruction {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
}
.prank-instruction-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: linear-gradient(135deg, #f5f3ff, #fdf2f8);
	color: #8b5cf6;
	font-weight: 800;
	font-size: 13px;
	margin-bottom: 10px;
}
.prank-instruction-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #111827;
}
.prank-instruction-text {
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	margin: 0;
}

/* =================================================================
 * FULLSCREEN OVERLAY (shown when prank is launched)
 * ================================================================= */
.prank-overlay {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 2147483647;
	display: none;
	overflow: hidden;
	margin: 0;
	padding: 0;
}
.prank-overlay.is-active {
	display: flex;
}
html.prank-active,
body.prank-active {
	overflow: hidden !important;
	height: 100%;
}
/* When the prank is active, hide every sibling of the overlay at body level
 * so the Foxiz header / footer / admin bar cannot peek through. */
body.prank-active > *:not(.prank-overlay):not(.prank-exit-bar) {
	display: none !important;
}
html.prank-active-html,
body.prank-active {
	height: 100vh;
}

/* ---------- Exit UI (top-right corner, fades in on mouse move) ---------- */
.prank-exit-bar {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 1000000;
	display: flex;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.prank-exit-bar.is-visible {
	opacity: 1;
	pointer-events: auto;
}
.prank-exit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.prank-exit-btn:hover {
	background: rgba(0, 0, 0, 0.9);
}
.prank-exit-btn svg {
	width: 14px;
	height: 14px;
}

/* ---------- SEO content section ---------- */
.prank-seo-content {
	max-width: 1100px;
	margin: 36px auto;
	padding: 36px 0 0;
	border-top: 1px solid #e5e7eb;
}
.prank-seo-content .entry-content {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--body-fcolor, #374151);
}
.prank-seo-content .entry-content h2 {
	margin-top: 1.6em;
	font-size: 1.4rem;
}
.prank-seo-content .entry-content h2:first-child {
	margin-top: 0;
}

/* ---------- FAQ (mirrors the tool card design system) ---------- */
.prank-page-faq {
	max-width: 1100px;
	margin: 36px auto;
	padding: 36px 0 0;
	border-top: 1px solid #e5e7eb;
}
.prank-page-faq-label {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6d28d9;
	background: #f5f3ff;
	border-radius: 20px;
}
.prank-page-faq-title {
	margin: 0 0 24px;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 800;
	color: #111827;
}
.prank-page-faq-list {
	position: relative;
}
.prank-page-faq-item {
	border-bottom: 1px solid #e5e7eb;
}
.prank-page-faq-item:last-child {
	border-bottom: none;
}
.prank-page-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
	text-align: left;
	color: inherit;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	gap: 20px;
	cursor: pointer;
	font-family: inherit;
}
.prank-page-faq-question:hover,
.prank-page-faq-question:focus {
	color: #6d28d9;
	background: transparent;
	box-shadow: none;
	outline: none;
}
.prank-page-faq-question > span:first-child {
	font-size: clamp(1rem, 2vw, 1.125rem);
	font-weight: 700;
	line-height: 1.45;
}
.prank-page-faq-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	color: #6d28d9;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #f5f3ff;
	transition: all 0.2s ease;
}
.prank-page-faq-toggle svg {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}
.prank-page-faq-item.prank-faq-open .prank-page-faq-toggle svg {
	transform: rotate(180deg);
}
.prank-page-faq-answer {
	display: none;
	padding-bottom: 18px;
}
.prank-page-faq-item.prank-faq-open .prank-page-faq-answer {
	display: block;
}
/* First item open by default until user interacts */
.prank-page-faq-item:first-child .prank-page-faq-answer {
	display: block;
}
.prank-page-faq-item:first-child .prank-page-faq-toggle svg {
	transform: rotate(180deg);
}
.prank-page-faq-item:first-child:not(.prank-faq-open):not(.prank-faq-touched) .prank-page-faq-answer {
	display: block;
}
.prank-page-faq-item:first-child:not(.prank-faq-open).prank-faq-touched .prank-page-faq-answer {
	display: none;
}
.prank-page-faq-item:first-child:not(.prank-faq-open).prank-faq-touched .prank-page-faq-toggle svg {
	transform: rotate(0deg);
}
.prank-page-faq-answer-inner {
	max-width: 840px;
	color: #4b5563;
	line-height: 1.7;
	font-size: 0.95rem;
}
.prank-page-faq-answer-inner p {
	margin: 0 0 10px;
}
.prank-page-faq-answer-inner p:last-child {
	margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.prank-launch-panel {
		padding: 22px;
	}
	.prank-exit-bar {
		top: 10px;
		right: 10px;
	}
}
