/* PromptPlay — dezente Motion & Atmosphäre */

@keyframes ppAurora {
	0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0) scale(1); }
	50% { opacity: 0.9; transform: translate3d(2%, -1%, 0) scale(1.04); }
}
@keyframes ppFloatSoft {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}
@keyframes ppFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes ppShineSweep {
	0% { transform: translateX(-130%) skewX(-12deg); }
	100% { transform: translateX(220%) skewX(-12deg); }
}
@keyframes ppPulseGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(46, 230, 255, 0); }
	50% { box-shadow: 0 0 22px 2px rgba(46, 230, 255, 0.18); }
}
@keyframes ppBadgePulse {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.18); }
}
@keyframes ppNavDot {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

/* Ambient aurora on overlay */
body.pp-theme .forum-bg-overlay::before,
body.pp-theme .forum-bg-overlay::after {
	content: "";
	position: fixed;
	pointer-events: none;
	z-index: 0;
	border-radius: 50%;
	filter: blur(60px);
	animation: ppAurora 14s ease-in-out infinite;
}
body.pp-theme .forum-bg-overlay::before {
	width: min(52vw, 520px);
	height: min(52vw, 520px);
	top: -8%;
	left: -6%;
	background: radial-gradient(circle, rgba(46, 230, 255, 0.22), transparent 68%);
}
body.pp-theme .forum-bg-overlay::after {
	width: min(48vw, 480px);
	height: min(48vw, 480px);
	top: 8%;
	right: -8%;
	background: radial-gradient(circle, rgba(155, 92, 255, 0.2), transparent 68%);
	animation-delay: -7s;
}

/* Page content soft entrance */
body.pp-theme .forum-main > .pp-home-intro,
body.pp-theme .forum-main > .pp-featured,
body.pp-theme .forum-main > .pp-spotlight,
body.pp-theme .forum-main > .forum-page-head,
body.pp-theme .forum-main > .forum-cat,
body.pp-theme .forum-main > .forum-online-rank-legend {
	animation: ppFadeUp 0.55s ease both;
}
body.pp-theme .forum-main > .pp-featured { animation-delay: 0.06s; }
body.pp-theme .forum-main > .pp-spotlight { animation-delay: 0.12s; }
body.pp-theme .forum-cat { animation: ppFadeUp 0.5s ease both; }
body.pp-theme .forum-cat:nth-of-type(2) { animation-delay: 0.05s; }
body.pp-theme .forum-cat:nth-of-type(3) { animation-delay: 0.1s; }
body.pp-theme .forum-cat:nth-of-type(4) { animation-delay: 0.15s; }
body.pp-theme .forum-cat:nth-of-type(5) { animation-delay: 0.2s; }
body.pp-theme .forum-cat:nth-of-type(6) { animation-delay: 0.25s; }

/* Header glass + brand float */
body.pp-theme .forum-header {
	backdrop-filter: blur(14px) saturate(1.15);
	-webkit-backdrop-filter: blur(14px) saturate(1.15);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(46, 230, 255, 0.08);
}
body.pp-theme .forum-brand img {
	animation: ppFloatSoft 5.5s ease-in-out infinite;
	filter: drop-shadow(0 0 12px rgba(46, 230, 255, 0.25));
}

/* Nav hover lift */
body.pp-theme .forum-topnav a {
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
body.pp-theme .forum-topnav a:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(46, 230, 255, 0.12);
}
body.pp-theme .forum-topnav a.forum-nav-icon.has-unread .forum-nav-badge,
body.pp-theme .forum-nav-overview.has-unread .forum-nav-badge {
	animation: ppNavDot 1.8s ease-in-out infinite;
}

/* Primary buttons — shine on hover */
body.pp-theme .forum-btn-primary,
body.pp-theme button.forum-btn-primary {
	position: relative;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
body.pp-theme .forum-btn-primary::after,
body.pp-theme button.forum-btn-primary::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: translateX(-130%) skewX(-12deg);
	pointer-events: none;
}
body.pp-theme .forum-btn-primary:hover,
body.pp-theme button.forum-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(46, 230, 255, 0.28);
}
body.pp-theme .forum-btn-primary:hover::after,
body.pp-theme button.forum-btn-primary:hover::after {
	animation: ppShineSweep 0.7s ease;
}

/* Boards / categories */
body.pp-theme .forum-board-row {
	transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
body.pp-theme .forum-board-row:hover {
	transform: translateX(3px);
	box-shadow: inset 3px 0 0 rgba(46, 230, 255, 0.65), 0 8px 24px rgba(0, 0, 0, 0.2);
	border-color: rgba(46, 230, 255, 0.22);
}
body.pp-theme .forum-cat-icon,
body.pp-theme .forum-board-icon,
body.pp-theme .forum-category-icon {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.pp-theme .forum-board-row:hover .forum-board-icon,
body.pp-theme .forum-cat:hover .forum-cat-icon {
	transform: scale(1.06) rotate(-3deg);
	box-shadow: 0 0 18px rgba(46, 230, 255, 0.28);
}

/* Featured cards */
body.pp-theme .pp-featured-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.pp-theme .pp-featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(46, 230, 255, 0.2);
}
body.pp-theme .pp-featured-icon {
	transition: transform 0.3s ease;
}
body.pp-theme .pp-featured-card:hover .pp-featured-icon {
	transform: scale(1.08);
}

/* Spotlight / intro */
body.pp-theme .pp-spotlight {
	/* Highlight comes from forum-standalone gold treatment */
}
body.pp-theme .pp-home-intro-badge {
	animation: ppBadgePulse 3.5s ease-in-out infinite;
}

/* Threads */
body.pp-theme .forum-thread-row {
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
body.pp-theme .forum-thread-row:hover {
	transform: translateX(2px);
	box-shadow: inset 2px 0 0 rgba(155, 92, 255, 0.55);
}
body.pp-theme .forum-thread-row.is-sticky {
	position: relative;
	overflow: hidden;
}
body.pp-theme .forum-thread-row.is-sticky::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 35%, rgba(46, 230, 255, 0.07) 50%, transparent 65%);
	transform: translateX(-120%);
	animation: ppShineSweep 4.5s ease-in-out infinite;
	pointer-events: none;
}

/* Posts */
body.pp-theme .forum-post {
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
body.pp-theme .forum-post:hover {
	border-color: rgba(46, 230, 255, 0.18);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(46, 230, 255, 0.08);
}

/* Rank badges soft life */
body.pp-theme .forum-rank-pl,
body.pp-theme .forum-rank-mod,
body.pp-theme .forum-rank-expert {
	transition: filter 0.2s ease, transform 0.2s ease;
}
body.pp-theme .forum-users-online-row.is-pl .forum-rank-pl,
body.pp-theme .forum-panel-online-chip.is-pl .forum-rank-pl {
	animation: ppBadgePulse 3.2s ease-in-out infinite;
}
body.pp-theme .forum-users-online-row.is-mod .forum-rank-mod,
body.pp-theme .forum-panel-online-chip.is-mod .forum-rank-mod {
	animation: ppBadgePulse 3.6s ease-in-out infinite;
	animation-delay: 0.4s;
}

/* Online chips hover */
body.pp-theme .forum-panel-online-chip {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.pp-theme .forum-panel-online-chip:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Welcome search focus glow */
body.pp-theme .pp-welcome-search-row {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.pp-theme .pp-welcome-search-row:focus-within {
	border-color: rgba(46, 230, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(46, 230, 255, 0.12), 0 10px 28px rgba(0, 0, 0, 0.25);
}

/* Bottom panels */
body.pp-theme .forum-panel-block {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
body.pp-theme .forum-panel-block:hover {
	transform: translateY(-2px);
	border-color: rgba(46, 230, 255, 0.16);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* Scrollbar (webkit) */
body.pp-theme ::-webkit-scrollbar { width: 10px; height: 10px; }
body.pp-theme ::-webkit-scrollbar-track { background: rgba(7, 8, 15, 0.8); }
body.pp-theme ::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(46, 230, 255, 0.35), rgba(155, 92, 255, 0.4));
	border-radius: 999px;
	border: 2px solid rgba(7, 8, 15, 0.8);
}
body.pp-theme ::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(46, 230, 255, 0.55), rgba(155, 92, 255, 0.55));
}

/* Selection */
body.pp-theme ::selection {
	background: rgba(46, 230, 255, 0.35);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	body.pp-theme *,
	body.pp-theme *::before,
	body.pp-theme *::after {
		animation: none !important;
		transition: none !important;
	}
	body.pp-theme .forum-bg-overlay::before,
	body.pp-theme .forum-bg-overlay::after {
		display: none;
	}
}

/* Projektleitung — rot + Effekt */
@keyframes ppPlGlow {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 12px rgba(239, 68, 68, 0.25);
		filter: brightness(1);
	}
	50% {
		box-shadow: 0 0 18px 2px rgba(239, 68, 68, 0.45), 0 0 28px rgba(220, 38, 38, 0.25);
		filter: brightness(1.12);
	}
}
@keyframes ppPlShine {
	0% { transform: translateX(-140%) skewX(-14deg); }
	100% { transform: translateX(240%) skewX(-14deg); }
}

body.pp-theme .forum-rank-pl,
body.pp-theme .forum-legend-key.forum-rank-pl {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, rgba(220, 38, 38, 0.42), rgba(239, 68, 68, 0.28) 45%, rgba(127, 29, 29, 0.45)) !important;
	color: #fecaca !important;
	border: 1px solid rgba(248, 113, 113, 0.75) !important;
	text-shadow: 0 0 12px rgba(248, 113, 113, 0.45);
	animation: ppPlGlow 2.8s ease-in-out infinite;
}
body.pp-theme .forum-rank-pl::after,
body.pp-theme .forum-legend-key.forum-rank-pl::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
	transform: translateX(-140%) skewX(-14deg);
	animation: ppPlShine 3.2s ease-in-out infinite;
	pointer-events: none;
}

body.pp-theme .forum-name-pl,
body.pp-theme .forum-name-pl a,
body.pp-theme a.forum-name-pl {
	color: #f87171 !important;
	text-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
	font-weight: 700;
}

body.pp-theme .forum-avatar-pl {
	background: linear-gradient(145deg, #ef4444, #7f1d1d) !important;
	color: #fff !important;
	box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.65), 0 0 22px rgba(239, 68, 68, 0.45) !important;
	animation: ppPlGlow 2.8s ease-in-out infinite;
}

body.pp-theme .forum-users-online-list .forum-users-online-row.is-pl,
body.pp-theme .forum-memberlist .forum-users-online-row.is-pl {
	border-color: rgba(248, 113, 113, 0.55) !important;
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(0, 0, 0, 0.12)) !important;
	box-shadow: inset 3px 0 0 #ef4444, 0 0 18px rgba(239, 68, 68, 0.12) !important;
}

body.pp-theme .forum-panel-online-chip.is-pl,
body.pp-theme .forum-online-chip.is-pl,
body.pp-theme .forum-online-chip-mini.is-pl {
	border-color: rgba(248, 113, 113, 0.55) !important;
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(0, 0, 0, 0.18)) !important;
	box-shadow: inset 2px 0 0 #ef4444, 0 0 14px rgba(239, 68, 68, 0.2) !important;
}

@media (prefers-reduced-motion: reduce) {
	body.pp-theme .forum-rank-pl,
	body.pp-theme .forum-legend-key.forum-rank-pl,
	body.pp-theme .forum-avatar-pl {
		animation: none !important;
	}
	body.pp-theme .forum-rank-pl::after,
	body.pp-theme .forum-legend-key.forum-rank-pl::after {
		display: none !important;
	}
}
/* /Projektleitung */

/* Welcome clock — schön */
@keyframes ppClockPulse {
	0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(46, 230, 255, 0.45); }
	50% { opacity: 0.35; text-shadow: 0 0 2px rgba(46, 230, 255, 0.15); }
}
@keyframes ppClockRing {
	0%, 100% { box-shadow: 0 0 0 0 rgba(46, 230, 255, 0.15), 0 0 18px rgba(46, 230, 255, 0.2); }
	50% { box-shadow: 0 0 0 6px rgba(46, 230, 255, 0.05), 0 0 28px rgba(155, 92, 255, 0.28); }
}

body.pp-theme .forum-welcome-clock {
	gap: 0.75rem;
	padding: 0.55rem 0.8rem 0.55rem 0.6rem;
	min-width: 175px;
	border-right: none;
	border-radius: 14px;
	background:
		linear-gradient(155deg, rgba(28, 36, 62, 0.92), rgba(10, 12, 24, 0.88));
	border: 1px solid rgba(46, 230, 255, 0.22);
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.pp-theme .forum-welcome-clock-ring {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 35% 30%, rgba(46, 230, 255, 0.28), rgba(155, 92, 255, 0.12) 55%, rgba(0, 0, 0, 0.25));
	border: 1px solid rgba(46, 230, 255, 0.35);
	animation: ppClockRing 3.6s ease-in-out infinite;
	flex-shrink: 0;
}

body.pp-theme .forum-welcome-clock-icon {
	width: auto;
	height: auto;
	border: 0;
	background: transparent;
	color: #67e8f9;
	font-size: 1.1rem;
	text-shadow: 0 0 14px rgba(46, 230, 255, 0.55);
}

body.pp-theme .forum-welcome-time {
	display: inline-flex;
	align-items: baseline;
	gap: 0.12rem;
	font-family: "Sora", "Outfit", ui-monospace, monospace;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #e8fbff;
	line-height: 1;
}

body.pp-theme .forum-welcome-digit {
	display: inline-block;
	min-width: 1.4ch;
	text-align: center;
	padding: 0.08rem 0.12rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(46, 230, 255, 0.14);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	font-variant-numeric: tabular-nums;
}

body.pp-theme .forum-welcome-colon {
	color: #67e8f9;
	font-weight: 700;
	animation: ppClockPulse 1s steps(1, end) infinite;
	padding: 0 0.05rem;
}

body.pp-theme .forum-welcome-date {
	margin-top: 0.3rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	font-weight: 500;
	color: rgba(200, 220, 255, 0.72);
	text-transform: none;
	letter-spacing: 0.01em;
}
body.pp-theme .forum-welcome-date .fa {
	color: rgba(103, 232, 249, 0.75);
}

@media (max-width: 860px) {
	body.pp-theme .forum-welcome-clock {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.pp-theme .forum-welcome-clock-ring,
	body.pp-theme .forum-welcome-colon {
		animation: none !important;
	}
}
/* /Welcome clock */


/* Moderator — Effekt */
@keyframes ppModGlow {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(59, 130, 246, 0), 0 0 8px rgba(59, 130, 246, 0.2);
		filter: brightness(1);
	}
	50% {
		box-shadow: 0 0 12px 1px rgba(56, 189, 248, 0.35), 0 0 18px rgba(37, 99, 235, 0.18);
		filter: brightness(1.08);
	}
}
@keyframes ppModShine {
	0% { transform: translateX(-140%) skewX(-12deg); }
	100% { transform: translateX(240%) skewX(-12deg); }
}

body.pp-theme .forum-rank-mod,
body.pp-theme .forum-legend-key.forum-rank-mod {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, rgba(37, 99, 235, 0.38), rgba(56, 189, 248, 0.22) 50%, rgba(29, 78, 216, 0.32)) !important;
	color: #dbeafe !important;
	border: 1px solid rgba(96, 165, 250, 0.65) !important;
	text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
	animation: ppModGlow 3.4s ease-in-out infinite;
}
body.pp-theme .forum-rank-mod::after,
body.pp-theme .forum-legend-key.forum-rank-mod::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
	transform: translateX(-140%) skewX(-12deg);
	animation: ppModShine 4s ease-in-out infinite;
	pointer-events: none;
}

body.pp-theme .forum-name-mod,
body.pp-theme .forum-name-mod a,
body.pp-theme a.forum-name-mod {
	color: #7dd3fc !important;
	text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
	font-weight: 700;
}

body.pp-theme .forum-users-online-list .forum-users-online-row.is-mod {
	border-color: rgba(59, 130, 246, 0.5) !important;
	background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(0, 0, 0, 0.12)) !important;
	box-shadow: inset 3px 0 0 #3b82f6, 0 0 14px rgba(59, 130, 246, 0.12) !important;
}

body.pp-theme .forum-users-online-row.is-mod .forum-rank-mod,
body.pp-theme .forum-panel-online-chip.is-mod .forum-rank-mod {
	animation: ppModGlow 3.4s ease-in-out infinite;
}

body.pp-theme .forum-panel-online-chip.is-mod,
body.pp-theme .forum-online-chip.is-mod,
body.pp-theme .forum-online-chip-mini.is-mod {
	border-color: rgba(59, 130, 246, 0.5) !important;
	background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(0, 0, 0, 0.18)) !important;
	box-shadow: inset 2px 0 0 #3b82f6, 0 0 10px rgba(56, 189, 248, 0.15) !important;
}

@media (prefers-reduced-motion: reduce) {
	body.pp-theme .forum-rank-mod,
	body.pp-theme .forum-legend-key.forum-rank-mod {
		animation: none !important;
	}
	body.pp-theme .forum-rank-mod::after,
	body.pp-theme .forum-legend-key.forum-rank-mod::after {
		display: none !important;
	}
}
/* /Moderator */

/* Welcome XP + Zeitansage */
body.pp-theme .forum-welcome-zeitansage {
	margin: 0 0 0.25rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #67e8f9;
	text-shadow: 0 0 14px rgba(46, 230, 255, 0.35);
}
body.pp-theme .forum-welcome-zeitansage .fa {
	color: #fde68a;
}

body.pp-theme .forum-welcome-xp {
	margin: 0.55rem 0 0.35rem;
	max-width: 280px;
}
body.pp-theme .forum-welcome-xp-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.35rem;
	text-decoration: none;
	color: #e2e8f0;
	font-size: 0.88rem;
	font-weight: 700;
}
body.pp-theme .forum-welcome-xp-label:hover { color: #fff; }
body.pp-theme .forum-welcome-xp-lvl {
	color: #fde68a;
}
body.pp-theme .forum-welcome-xp-lvl .fa { margin-right: 0.2rem; }
body.pp-theme .forum-welcome-xp-sep { color: rgba(255,255,255,0.35); }
body.pp-theme .forum-welcome-xp-amount { color: #7dd3fc; }
body.pp-theme .forum-welcome-xp-bar {
	height: 7px;
	border-radius: 999px;
	background: rgba(0,0,0,0.35);
	border: 1px solid rgba(46, 230, 255, 0.18);
	overflow: hidden;
}
body.pp-theme .forum-welcome-xp-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #2563eb, #22d3ee 55%, #a78bfa);
	box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
	transition: width 0.4s ease;
}
/* /Welcome XP */
