/**
 * EKRS Universal Footer Stylesheet
 * 
 * Provides responsive structures, dark/light/glassmorphic themes, 
 * CSS custom properties, and sleek micro-animations.
 * 
 * @package EKRS_Universal_Footer
 */

/* ==========================================================================
   1. Core Layout and CSS Variables Definitions
   ========================================================================== */
.ekrs-footer-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	width: 100%;
	box-sizing: border-box;
	transition: all 0.3s ease;
	
	/* Default padding variables */
	--ekrs-padding-top: 24px;
	--ekrs-padding-bottom: 24px;
}

.ekrs-footer-wrap *,
.ekrs-footer-wrap *::before,
.ekrs-footer-wrap *::after {
	box-sizing: inherit;
}

.ekrs-footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

/* Padding Injection */
.ekrs-footer-wrap {
	padding-top: var(--ekrs-padding-top);
	padding-bottom: var(--ekrs-padding-bottom);
}

/* ==========================================================================
   2. Built-in Theme Visual Systems
   ========================================================================== */

/* Theme: Modern Dark (Default) */
.ekrs-theme-dark {
	background-color: #0b0f19;
	color: #9ca3af;
	border-top: 1px solid #1f2937;
}
.ekrs-theme-dark .ekrs-branding-anchor {
	color: #9ca3af;
}
.ekrs-theme-dark .ekrs-branding-anchor svg {
	color: #ffffff;
}
.ekrs-theme-dark .ekrs-branding-anchor:hover {
	color: #ffffff;
}

/* Theme: Elegant Light */
.ekrs-theme-light {
	background-color: #f8fafc;
	color: #64748b;
	border-top: 1px solid #e2e8f0;
}
.ekrs-theme-light .ekrs-branding-anchor {
	color: #64748b;
}
.ekrs-theme-light .ekrs-branding-anchor svg {
	color: #0f172a;
}
.ekrs-theme-light .ekrs-branding-anchor:hover {
	color: #0f172a;
}

/* Theme: Frosted Glassmorphism */
.ekrs-theme-glass {
	background-color: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #94a3b8;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}
.ekrs-theme-glass .ekrs-branding-anchor {
	color: #94a3b8;
}
.ekrs-theme-glass .ekrs-branding-anchor svg {
	color: #ffffff;
}
.ekrs-theme-glass .ekrs-branding-anchor:hover {
	color: #ffffff;
}

/* Theme: Custom (Uses settings variables) */
.ekrs-theme-custom {
	background-color: var(--ekrs-bg, #0b0f19);
	color: var(--ekrs-text, #9ca3af);
	border-top: 1px solid rgba(128, 128, 128, 0.15);
}
.ekrs-theme-custom .ekrs-branding-anchor {
	color: var(--ekrs-text, #9ca3af);
}
.ekrs-theme-custom .ekrs-branding-anchor svg {
	color: var(--ekrs-text, #ffffff);
}
.ekrs-theme-custom .ekrs-branding-anchor:hover {
	color: var(--ekrs-hover, #ffffff);
}
.ekrs-theme-custom .ekrs-branding-anchor:hover svg {
	color: var(--ekrs-hover, #ffffff);
}


/* ==========================================================================
   3. Content Styling and Fine Adjustments
   ========================================================================== */

/* Left block copyright styling */
.ekrs-footer-left {
	display: flex;
	align-items: center;
	font-weight: 400;
}
.ekrs-copyright-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.ekrs-copyright-suffix {
	opacity: 0.85;
}

/* Right block branding styling */
.ekrs-footer-right {
	display: flex;
	align-items: center;
}
.ekrs-branding-block {
	display: flex;
	align-items: center;
}
.ekrs-branding-anchor {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand label styling */
.ekrs-brand-label {
	opacity: 0.8;
	transition: opacity 0.3s ease;
}
.ekrs-branding-anchor:hover .ekrs-brand-label {
	opacity: 1;
}

/* Logo container & animations */
.ekrs-brand-logo-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 35px;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Inlined vector SVG styling */
.ekrs-brand-logo-container svg {
	height: 100%;
	width: auto;
	max-height: 28px;
	transition: all 0.3s ease;
}

/* Custom logo image option styling */
.ekrs-custom-logo-img {
	max-height: 28px;
	width: auto;
	object-fit: contain;
	transition: filter 0.3s ease;
}

/* Micro-animations on Hover */
.ekrs-branding-anchor:hover .ekrs-brand-logo-container {
	transform: scale(1.05) translateY(-1px);
}
.ekrs-branding-anchor:hover .ekrs-custom-logo-img {
	filter: brightness(1.2);
}


/* ==========================================================================
   4. Layout Alignment Modifiers
   ========================================================================== */
.ekrs-align-center .ekrs-footer-container {
	flex-direction: column;
	justify-content: center;
	text-align: center;
}
.ekrs-align-center .ekrs-copyright-text {
	justify-content: center;
}


/* ==========================================================================
   5. Responsive Mobile-First Design Styles
   ========================================================================== */
@media screen and (max-width: 768px) {
	.ekrs-footer-container {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		gap: 16px;
	}
	
	.ekrs-copyright-text {
		justify-content: center;
		font-size: 13px;
	}

	.ekrs-footer-left,
	.ekrs-footer-right {
		justify-content: center;
		width: 100%;
	}

	.ekrs-branding-anchor {
		flex-direction: column;
		gap: 6px;
		font-size: 12px;
	}

	.ekrs-brand-logo-container {
		height: 32px;
	}
}
