/* ============================================================================
   Modern Footer Styles - Piximfix Design
   Sleek and modern footer design with smooth animations
   ============================================================================ */

/* ----------------------------------------------------------------------------
   Footer Widgets Area - Main Content Section
   ---------------------------------------------------------------------------- */
#footer-widgets {
	background: #ffffff;
	color: #1a1a2e;
	padding: 35px 0 30px;
	margin-top: 0;
	position: relative;
	overflow: hidden;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modern animated gradient border with glow effect */
#footer-widgets::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%);
	background-size: 200% 100%;
	animation: gradientShift 3s ease infinite;
	z-index: 1;
	opacity: 0.8;
}

/* Subtle background pattern overlay */
#footer-widgets::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.015) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.015) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

@keyframes gradientShift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

.footer-widgets-container {
	max-width: -webkit-fill-available;
	margin: 0 auto;
	padding: 0 40px;
}

.inside-footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px;
	margin: 0;
	align-items: start;
	position: relative;
	z-index: 1;
}

.site-footer .footer-widgets-container .inside-footer-widgets {
	margin-left: 0px;
}

/* Modern widget titles styling - Show only for menu widgets */
.footer-widgets .widget-title {
	display: inline-block !important;
	color: #1a1a2e;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 20px;
	padding: 8px 16px 8px 0;
	border-bottom: none;
	position: relative;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.2;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Hide widget title for first widget (logo/description area) */
.footer-widget-1 .widget-title {
	display: none !important;
}

/* Modern badge-style background with shadow */
.footer-widgets .widget-title::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 20px;
	background: linear-gradient(180deg, #ec4899 0%, #8b5cf6 100%);
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0.8;
}

/* Gradient underline effect */
.footer-widgets .widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
	border-radius: 2px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4);
}

/* Hover state with enhanced effects */
.footer-widgets .widget-title:hover {
	color: #000000;
	transform: translateX(4px);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-widgets .widget-title:hover::before {
	height: 24px;
	opacity: 1;
	box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
	transform: translateY(-50%) scaleY(1.1);
}

.footer-widgets .widget-title:hover::after {
	width: 100%;
	box-shadow: 0 2px 10px rgba(236, 72, 153, 0.6);
}

/* Footer Widget Styling */
.footer-widgets .widget {
	margin-bottom: 0;
	padding: 0;
	position: relative;
}

/* Widget Lists - Modern vertical links */
.footer-widgets .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widgets .widget ul li {
	margin-bottom: 10px;
	padding-left: 0;
	line-height: 1.6;
	position: relative;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-widgets .widget ul li:hover {
	transform: translateX(4px);
}

.footer-widgets .widget ul li::before {
	display: none;
}

.footer-widgets .widget ul li:last-child {
	margin-bottom: 0;
}

/* Modern link styling with smooth transitions */
.footer-widgets .widget a {
	color: #5a5a6a;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-block;
	font-size: 14px;
	line-height: 1.6;
	background: none !important;
	font-weight: 400;
	letter-spacing: 0.1px;
	position: relative;
	padding: 4px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-widgets .widget a::before {
	content: '';
	position: absolute;
	left: -12px;
	top: 50%;
	transform: translateY(-50%) scale(0);
	width: 6px;
	height: 6px;
	background: linear-gradient(135deg, #ec4899, #8b5cf6);
	border-radius: 50%;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

.footer-widgets .widget a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, #ec4899, #8b5cf6);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

.footer-widgets .widget a:hover {
	color: #000000;
	background: none !important;
	transform: translateX(6px);
	padding-left: 2px;
	font-weight: 500;
	letter-spacing: 0.2px;
}

.footer-widgets .widget a:hover::before {
	transform: translateY(-50%) scale(1);
}

.footer-widgets .widget a:hover::after {
	width: 100%;
}

/* Widget Text/Paragraphs - Modern typography */
.footer-widgets .widget p {
	color: #5a5a6a;
	line-height: 1.7;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.1px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-widgets .widget p:last-child {
	margin-bottom: 0;
}

/* Footer Widget Text Widget */
.footer-widgets .textwidget {
	color: #5a5a6a;
	line-height: 1.85;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.15px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Logo styling in footer */
.footer-widgets .widget img,
.footer-widgets .widget .footer-logo {
	margin-bottom: 18px;
	display: block;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
	max-width: 70px;
	height: auto;
	width: auto;
}

.footer-widgets .widget img:hover,
.footer-widgets .widget .footer-logo:hover {
	transform: translateY(-3px) scale(1.02);
	opacity: 1;
	filter: brightness(1.1) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
}

/* ----------------------------------------------------------------------------
   Social Media Icons - Modern circular with brand colors
   ---------------------------------------------------------------------------- */
.footer-widgets .widget_social_icons ul,
.footer-widgets .social-icons,
.footer-widgets .social-media-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
}

.footer-widgets .widget_social_icons a,
.footer-widgets .social-icons a,
.footer-widgets .social-media-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50% !important;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 17px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
	border: none !important;
}

.footer-widgets .widget_social_icons a::before,
.footer-widgets .social-icons a::before,
.footer-widgets .social-media-icons a::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.4s ease, height 0.4s ease;
}

.footer-widgets .widget_social_icons a:hover::before,
.footer-widgets .social-icons a:hover::before,
.footer-widgets .social-media-icons a:hover::before {
	width: 100%;
	height: 100%;
}

.footer-widgets .widget_social_icons a i,
.footer-widgets .social-icons a i,
.footer-widgets .social-media-icons a i,
.footer-widgets .widget_social_icons a svg,
.footer-widgets .social-icons a svg,
.footer-widgets .social-media-icons a svg {
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
	border-radius: 50% !important;
}

/* Ensure all social icon containers are perfectly round */
.footer-widgets .widget_social_icons a,
.footer-widgets .social-icons a,
.footer-widgets .social-media-icons a,
.footer-widgets .widget_social_icons a *,
.footer-widgets .social-icons a *,
.footer-widgets .social-media-icons a * {
	border-radius: 50% !important;
}

/* Behance - Modern Blue */
.footer-widgets a[href*="behance"],
.footer-widgets a[href*="be.net"] {
	background: linear-gradient(135deg, #1769ff 0%, #0d4fc7 100%);
}

/* Instagram - Modern Pink/Magenta gradient */
.footer-widgets a[href*="instagram"] {
	background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* LinkedIn - Modern Blue */
.footer-widgets a[href*="linkedin"] {
	background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

/* Telegram - Modern Light Blue */
.footer-widgets a[href*="telegram"] {
	background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

/* YouTube - Modern Red */
.footer-widgets a[href*="youtube"] {
	background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* Twitter/X - Modern Black */
.footer-widgets a[href*="twitter"],
.footer-widgets a[href*="x.com"] {
	background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

.footer-widgets .widget_social_icons a:hover,
.footer-widgets .social-icons a:hover,
.footer-widgets .social-media-icons a:hover {
	transform: translateY(-3px) scale(1.08);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
	z-index: 10;
}

.footer-widgets .widget_social_icons a:hover i,
.footer-widgets .social-icons a:hover i,
.footer-widgets .social-media-icons a:hover i,
.footer-widgets .widget_social_icons a:hover svg,
.footer-widgets .social-icons a:hover svg,
.footer-widgets .social-media-icons a:hover svg {
	transform: scale(1.1);
}

/* ----------------------------------------------------------------------------
   Footer Bar - Not used in this design, but keep for compatibility
   ---------------------------------------------------------------------------- */
.footer-bar {
	display: none;
}

/* ----------------------------------------------------------------------------
   Site Info / Copyright Bar - Modern dark bottom section
   ---------------------------------------------------------------------------- */
.site-info {
	background: #f8f9fa;
	padding: 12px 0px;
	text-align: center;
	color: #6a6a7a;
	font-size: 12px;
	line-height: 1.5;
	position: relative;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.03);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	letter-spacing: 0.1px;
}

.inside-site-info {
	max-width: 1200px;
	margin: 0 auto;
}

.copyright-bar {
	padding: 0;
	margin: 0;
}

.copyright-bar .copyright {
	color: #6a6a7a;
	font-weight: 400;
	letter-spacing: 0.2px;
	font-size: 13px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.site-info a {
	color: #5a5a6a;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
	position: relative;
	letter-spacing: 0.15px;
}

.site-info a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 1px;
	bottom: -2px;
	left: 50%;
	background: linear-gradient(90deg, #ec4899, #8b5cf6);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.site-info a:hover {
	color: #000000;
	opacity: 1;
	font-weight: 600;
}

.site-info a:hover::after {
	width: 100%;
}

.site-info .copyright-bar {
	display: block;
	text-align: center;
}

/* Remove GeneratePress credit styling */
.site-info .copyright-bar a {
	color: #4a4a5a;
	opacity: 1;
}

/* ----------------------------------------------------------------------------
   Back to Top Button - Modern floating style
   ---------------------------------------------------------------------------- */
.generate-back-to-top {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
	border-radius: 50% !important;
	width: 52px !important;
	height: 52px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	opacity: 0.95 !important;
	backdrop-filter: blur(10px) !important;
	position: relative;
	overflow: hidden;
}

.generate-back-to-top::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.4s ease, height 0.4s ease;
}

.generate-back-to-top:hover::before {
	width: 100%;
	height: 100%;
}

.generate-back-to-top:hover {
	transform: translateY(-6px) scale(1.05) !important;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6) !important;
	opacity: 1 !important;
}

.generate-back-to-top svg {
	fill: #ffffff !important;
	width: 22px !important;
	height: 22px !important;
	transition: transform 0.3s ease !important;
	position: relative;
	z-index: 1;
}

.generate-back-to-top:hover svg {
	transform: translateY(-2px) !important;
}

/* ----------------------------------------------------------------------------
   Responsive Design
   ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.inside-footer-widgets {
		gap: 40px;
	}

	.footer-widgets-container {
		padding: 0 35px;
	}
}

@media (max-width: 768px) {
	#footer-widgets {
		padding: 45px 0 35px;
	}

	.footer-widgets-container {
		padding: 0 30px;
	}

	.inside-footer-widgets {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.footer-widgets .widget p {
		font-size: 14px;
	}

	.footer-widgets .widget a {
		font-size: 14px;
	}

	.site-info {
		padding: 18px 20px;
		font-size: 13px;
		line-height: 1.5;
	}

	.generate-back-to-top {
		width: 48px !important;
		height: 48px !important;
	}

	.generate-back-to-top svg {
		width: 20px !important;
		height: 20px !important;
	}
}

@media (max-width: 480px) {
	#footer-widgets {
		padding: 25px 0 20px;
	}

	.footer-widgets-container {
		padding: 0 20px;
	}

	.inside-footer-widgets {
		gap: 25px;
	}

	.footer-widgets .widget p {
		font-size: 13px;
		margin-bottom: 18px;
	}

	.footer-widgets .widget a {
		font-size: 13px;
	}

	.footer-widgets .widget_social_icons a,
	.footer-widgets .social-icons a,
	.footer-widgets .social-media-icons a {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}

	.site-info {
		padding: 16px 15px;
		font-size: 12px;
		line-height: 1.5;
	}

	.generate-back-to-top {
		width: 46px !important;
		height: 46px !important;
	}
}

/* ----------------------------------------------------------------------------
   Additional Widget Styling
   ---------------------------------------------------------------------------- */

/* Navigation Menu Widget - Modern list */
.footer-widgets .widget_nav_menu ul li {
	margin-bottom: 12px;
	background: none !important;
}

.footer-widgets .widget_nav_menu ul li a {
	color: #5a5a6a;
	background: none !important;
	font-weight: 400;
	letter-spacing: 0.1px;
}

.footer-widgets .widget_nav_menu ul li a:hover {
	color: #000000;
	background: none !important;
	font-weight: 500;
}

/* Text Widget - Description text */
.footer-widgets .textwidget {
	color: #5a5a6a;
	line-height: 1.85;
	letter-spacing: 0.15px;
}

/* Custom Logo Widget */
.footer-widgets .widget_custom_logo img {
	max-width: 120px;
	height: auto;
	transition: all 0.3s ease;
	width: auto;
}

.footer-widgets .widget_custom_logo img:hover {
	transform: translateY(-2px);
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Remove any borders or decorative elements from widgets */
.footer-widgets .widget {
	border: none;
	background: transparent;
}

/* Ensure proper spacing for first widget (logo area) */
.footer-widget-1 {
	display: flex;
	flex-direction: column;
}

/* Ensure links in all widgets are consistent */
.footer-widgets .widget a {
	word-break: break-word;
}

/* WordPress Media Text Block Styling */
.wp-block-media-text.is-stacked-on-mobile {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-left: 0%;
	margin-right: 0%;
	border-radius: 8px;
	padding: 1%;
	transition: transform 0.3s ease;
	gap: 20px;
}

.wp-block-media-text.is-stacked-on-mobile:hover {
	transform: translateY(-2px);
}

/* Home Page Media Text Block Styling */
.home .wp-block-media-text:first-of-type {
	display: grid;
	gap: 0rem;
}
