/* EMPIRE X Tech — animated footer (empirex.tech style) */

.pdn-brand-footer--animated {
	position: relative;
	overflow: hidden;
	margin-top: clamp(24px, 4vw, 40px);
	padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px);
	background: #070706;
	border-radius: 16px;
	border: 1px solid rgba(193, 154, 107, 0.22);
	isolation: isolate;
}

.pdn-brand-footer--animated::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		120deg,
		transparent 0%,
		rgba(193, 154, 107, 0.15) 25%,
		rgba(214, 178, 122, 0.85) 50%,
		rgba(80, 140, 220, 0.5) 65%,
		rgba(193, 154, 107, 0.15) 80%,
		transparent 100%
	);
	background-size: 220% 100%;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: pdn-border-flow 5s linear infinite;
	pointer-events: none;
	z-index: 2;
}

.pdn-brand-footer__aurora {
	position: absolute;
	inset: -40% -20%;
	background:
		radial-gradient(ellipse 50% 40% at 20% 50%, rgba(193, 154, 107, 0.14), transparent 70%),
		radial-gradient(ellipse 45% 35% at 80% 30%, rgba(70, 120, 200, 0.12), transparent 65%),
		radial-gradient(ellipse 40% 30% at 50% 100%, rgba(193, 154, 107, 0.08), transparent 60%);
	animation: pdn-aurora-drift 14s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 0;
}

.pdn-brand-footer__grid {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(193, 154, 107, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(193, 154, 107, 0.06) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
	animation: pdn-grid-pan 20s linear infinite;
	pointer-events: none;
	z-index: 0;
}

.pdn-brand-footer__shine {
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(246, 237, 220, 0.03) 45%,
		rgba(246, 237, 220, 0.1) 50%,
		rgba(246, 237, 220, 0.03) 55%,
		transparent 100%
	);
	animation: pdn-shine-sweep 7s ease-in-out infinite;
	pointer-events: none;
	z-index: 1;
}

.pdn-brand-footer__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
}

.pdn-brand-footer__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(193, 154, 107, 0.35);
	background: rgba(10, 10, 9, 0.75);
	backdrop-filter: blur(8px);
}

.pdn-brand-footer__pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 12px rgba(74, 222, 128, 0.8);
	animation: pdn-pulse-dot 2s ease-in-out infinite;
}

.pdn-brand-footer__status-text {
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(246, 237, 220, 0.75);
}

.pdn-brand-footer__logo-link {
	position: relative;
	display: inline-block;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pdn-brand-footer__logo-link:hover {
	transform: translateY(-3px) scale(1.02);
}

.pdn-brand-footer__logo-glow {
	position: absolute;
	inset: -20% -10%;
	background: radial-gradient(ellipse at center, rgba(193, 154, 107, 0.35), transparent 70%);
	animation: pdn-logo-glow 3s ease-in-out infinite alternate;
	pointer-events: none;
}

.pdn-brand-footer__logo {
	position: relative;
	display: block;
	max-width: min(180px, 72vw);
	height: auto;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.pdn-brand-footer__line {
	margin: 0;
	font-size: clamp(12px, 2.5vw, 14px);
	color: rgba(246, 237, 220, 0.88);
	line-height: 1.55;
}

.pdn-brand-footer__brand-link {
	color: #d6b27a;
	text-decoration: none;
	background: linear-gradient(90deg, #d6b27a, #f6eddc, #d6b27a);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: pdn-text-shimmer 4s linear infinite;
}

.pdn-brand-footer__brand-link strong {
	font-weight: 600;
}

.pdn-brand-footer__meta {
	margin: 0;
	font-size: 12px;
	color: rgba(246, 237, 220, 0.5);
}

.pdn-brand-footer__meta a {
	color: #c19a6b;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.pdn-brand-footer__meta a:hover {
	color: #d6b27a;
	text-shadow: 0 0 20px rgba(193, 154, 107, 0.45);
}

.pdn-brand-footer__sep {
	margin: 0 6px;
	opacity: 0.45;
}

@keyframes pdn-border-flow {
	0% { background-position: 0% 50%; }
	100% { background-position: 220% 50%; }
}

@keyframes pdn-aurora-drift {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(3%, -2%) scale(1.05); }
}

@keyframes pdn-grid-pan {
	0% { background-position: 0 0; }
	100% { background-position: 28px 28px; }
}

@keyframes pdn-shine-sweep {
	0%, 70% { left: -100%; opacity: 0; }
	85% { opacity: 1; }
	100% { left: 150%; opacity: 0; }
}

@keyframes pdn-pulse-dot {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.25); opacity: 0.75; }
}

@keyframes pdn-logo-glow {
	0% { opacity: 0.5; transform: scale(0.95); }
	100% { opacity: 1; transform: scale(1.05); }
}

@keyframes pdn-text-shimmer {
	0% { background-position: 0% center; }
	100% { background-position: 200% center; }
}

/* Frontend — subtil: centrat, text + logo aproape */
.pdn-brand-footer--frontend-subtle {
	margin-top: 16px;
	padding: 12px 4px 4px;
	border-top: 1px solid rgba(193, 154, 107, 0.12);
	background: transparent;
}

.pdn-brand-footer--frontend-subtle .pdn-brand-footer__inner--subtle {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
}

.pdn-brand-footer--frontend-subtle .pdn-brand-footer__whisper {
	margin: 0;
	flex: 0 0 auto;
	max-width: 100%;
	font-size: 11px;
	font-weight: 450;
	letter-spacing: 0.05em;
	color: rgba(246, 237, 220, 0.4);
	line-height: 1.35;
	text-align: center;
}

.pdn-brand-footer--frontend-subtle .pdn-brand-footer__logo-link--subtle {
	flex-shrink: 0;
	display: inline-flex;
	opacity: 0.65;
	transition: opacity 0.2s ease;
}

.pdn-brand-footer--frontend-subtle .pdn-brand-footer__logo-link--subtle:hover {
	opacity: 1;
}

.pdn-brand-footer--frontend-subtle .pdn-brand-footer__logo--subtle {
	display: block;
	width: auto;
	max-width: 88px;
	max-height: 24px;
	height: auto;
	object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
	.pdn-brand-footer--animated::before,
	.pdn-brand-footer__aurora,
	.pdn-brand-footer__grid,
	.pdn-brand-footer__shine,
	.pdn-brand-footer__pulse,
	.pdn-brand-footer__logo-glow,
	.pdn-brand-footer__brand-link {
		animation: none !important;
	}
}
