/**
 * Ruger Security - Animated Logo Stylesheet
 * High-tech metallic golden gleam, security pulse, and responsive branding
 */

:root {
	--ruger-gold-1: #d4af37;
	--ruger-gold-2: #f3e5ab;
	--ruger-gold-3: #aa771c;
	--ruger-gold-glow: rgba(212, 175, 55, 0.45);
	--ruger-navy-dark: #080e1a;
	--ruger-navy-accent: #0f223d;
}

/* Logo Container */
.ruger-brand-wrapper {
	display: inline-flex;
	align-items: center;
	position: relative;
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ruger-brand-link {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	outline: none;
}

.ruger-brand-link:focus-visible {
	outline: 2px solid var(--ruger-gold-1);
	outline-offset: 4px;
	border-radius: 8px;
}

/* Custom Upload Logo Style */
.ruger-logo-img.custom-logo-upload {
	max-height: 60px;
	width: auto;
	object-fit: contain;
	transition: filter 0.3s ease, transform 0.3s ease;
}

.has-anim .ruger-logo-img.custom-logo-upload:hover {
	filter: drop-shadow(0 0 12px var(--ruger-gold-glow));
	transform: scale(1.02);
}

/* Crafted Animated Logo Box */
.ruger-animated-logo-box {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
}

/* Lion Shield / Emblem Area */
.ruger-lion-shield {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 48px;
	overflow: hidden;
	border-radius: 6px;
}

.ruger-lion-emblem {
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* 1. ANIMATION: Golden Metallic Light Gleam / Shimmer */
.ruger-light-gleam {
	position: absolute;
	top: -50%;
	left: -120%;
	width: 80%;
	height: 200%;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.15) 30%,
		rgba(255, 235, 170, 0.85) 50%,
		rgba(255, 255, 255, 0.15) 70%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: rotate(25deg);
	z-index: 3;
	pointer-events: none;
	opacity: 0;
}

.has-anim.anim-shimmer .ruger-light-gleam {
	animation: rugerGleamSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rugerGleamSweep {
	0% {
		left: -120%;
		opacity: 0;
	}
	15% {
		opacity: 0.95;
	}
	35% {
		left: 150%;
		opacity: 0;
	}
	100% {
		left: 150%;
		opacity: 0;
	}
}

/* 2. ANIMATION: Security Pulse Aura */
.ruger-security-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0) 70%);
	z-index: 1;
	opacity: 0;
	pointer-events: none;
}

.has-anim.anim-pulse .ruger-security-pulse {
	animation: rugerSecurityPulse 3s ease-in-out infinite;
}

@keyframes rugerSecurityPulse {
	0% {
		transform: scale(0.7);
		opacity: 0;
	}
	50% {
		transform: scale(1.3);
		opacity: 0.7;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* 3. ANIMATION: High-tech Radar Surveillance Sweep */
.has-anim.anim-radar .ruger-lion-shield::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(from 0deg, transparent 0deg, rgba(212, 175, 55, 0.3) 60deg, transparent 90deg);
	border-radius: 50%;
	animation: rugerRadarSweep 4s linear infinite;
	z-index: 1;
	pointer-events: none;
}

@keyframes rugerRadarSweep {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Typography Wordmark */
.ruger-wordmark {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1;
}

.ruger-brand-title {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 1.65rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	color: #ffffff;
	text-transform: uppercase;
	display: inline-block;
	background: linear-gradient(180deg, #ffffff 40%, #d4dfed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: filter 0.3s ease;
}

.ruger-gold-divider {
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--ruger-gold-1) 0%, #fff0a6 50%, var(--ruger-gold-3) 100%);
	margin: 3px 0 4px 0;
	box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ruger-brand-sub {
	font-family: 'Inter', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.46em;
	color: var(--ruger-gold-1);
	text-transform: uppercase;
	margin-left: 1px;
}

/* Interactive Hover States */
.ruger-brand-wrapper:hover .ruger-lion-emblem {
	transform: scale(1.05) translateY(-1px);
	filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.75));
}

.ruger-brand-wrapper:hover .ruger-gold-divider {
	box-shadow: 0 0 14px rgba(212, 175, 55, 0.95);
	transform: scaleX(1.04);
}

.ruger-brand-wrapper:hover .ruger-light-gleam {
	animation: rugerGleamSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Mobile & Footer Adjustments */
@media (max-width: 768px) {
	.ruger-lion-shield {
		width: 64px;
		height: 38px;
	}
	.ruger-brand-title {
		font-size: 1.35rem;
		letter-spacing: 0.06em;
	}
	.ruger-brand-sub {
		font-size: 0.62rem;
		letter-spacing: 0.35em;
	}
}

.context-footer .ruger-lion-shield {
	width: 72px;
	height: 42px;
}
