/**
 * Modern Dark Footer Styles for Astra Child Theme
 * Compatible with LearnPress
 */

:root {
	--footer-bg: #1a1a1a;
	--footer-bg-dark: #0f0f0f;
	--footer-text: #e0e0e0;
	--footer-text-light: #ffffff;
	--footer-link: #ffffff;
	--footer-link-hover: #4f46e5;
	--footer-accent: #4f46e5;
	--footer-accent-hover: #6366f1;
	--footer-border: rgba(255, 255, 255, 0.1);
	--footer-border-light: rgba(255, 255, 255, 0.2);
	--footer-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	--footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Footer Container */
.astra-child-modern-footer {
	background: linear-gradient(180deg, var(--footer-bg-dark) 0%, var(--footer-bg) 100%);
	color: var(--footer-text);
	margin-top: 60px;
	position: relative;
	overflow: hidden;
}

.astra-child-modern-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, 
		transparent 0%, 
		var(--footer-accent) 50%, 
		transparent 100%);
	opacity: 0.5;
}

.astra-child-footer-overlay {
	position: relative;
	padding: 60px 0 0;
}

/* Footer Main Content */
.astra-child-footer-main {
	padding-bottom: 40px;
}

.astra-child-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}

/* Footer Columns */
.astra-child-footer-col {
	position: relative;
}

.astra-child-footer-widget {
	padding: 0 15px;
}

.astra-child-footer-widget-title {
	color: var(--footer-text-light);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	padding-bottom: 12px;
	position: relative;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 14px;
}

.astra-child-footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--footer-accent), transparent);
	border-radius: 2px;
}

/* Column 1: Logo & Description */
.astra-child-footer-col-1 .astra-child-footer-logo {
	margin-bottom: 20px;
}

.astra-child-footer-logo img {
	max-width: 180px;
	height: auto;
	filter: brightness(1.1);
	transition: var(--footer-transition);
}

.astra-child-footer-logo:hover img {
	filter: brightness(1.2);
	transform: scale(1.02);
}

.astra-child-footer-site-title {
	color: var(--footer-text-light);
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
	letter-spacing: -0.5px;
}

.astra-child-footer-site-title a {
	color: inherit;
	text-decoration: none;
	transition: var(--footer-transition);
}

.astra-child-footer-site-title a:hover {
	color: var(--footer-accent);
}

.astra-child-footer-description {
	color: var(--footer-text);
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 20px;
	opacity: 0.9;
}

.astra-child-footer-learnpress-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: rgba(79, 70, 229, 0.1);
	border: 1px solid rgba(79, 70, 229, 0.3);
	border-radius: 6px;
	color: var(--footer-accent);
	font-size: 13px;
	font-weight: 500;
	margin-top: 15px;
}

.astra-child-footer-learnpress-badge .learnpress-icon {
	font-size: 16px;
}

.astra-child-footer-courses-link {
	margin-top: 15px;
}

.footer-courses-btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--footer-accent);
	color: var(--footer-text-light);
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	transition: var(--footer-transition);
	border: 1px solid var(--footer-accent);
}

.footer-courses-btn:hover {
	background: var(--footer-accent-hover);
	border-color: var(--footer-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Column 2: Quick Links */
.astra-child-footer-nav ul,
.astra-child-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.astra-child-footer-nav li,
.astra-child-footer-links li {
	margin-bottom: 12px;
}

.astra-child-footer-nav a,
.astra-child-footer-links a {
	color: var(--footer-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.6;
	display: inline-block;
	position: relative;
	padding-left: 0;
	transition: var(--footer-transition);
	opacity: 0.85;
}

.astra-child-footer-nav a::before,
.astra-child-footer-links a::before {
	content: '→';
	position: absolute;
	left: -20px;
	opacity: 0;
	transform: translateX(-5px);
	transition: var(--footer-transition);
	color: var(--footer-accent);
}

.astra-child-footer-nav a:hover,
.astra-child-footer-links a:hover {
	color: var(--footer-text-light);
	padding-left: 20px;
	opacity: 1;
}

.astra-child-footer-nav a:hover::before,
.astra-child-footer-links a:hover::before {
	opacity: 1;
	transform: translateX(0);
}

/* Column 3: Contact Info */
.astra-child-footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.astra-child-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	color: var(--footer-text);
	font-size: 14px;
	line-height: 1.6;
}

.astra-child-footer-contact .contact-icon {
	font-size: 18px;
	opacity: 0.7;
	flex-shrink: 0;
	margin-top: 2px;
}

.astra-child-footer-contact a {
	color: var(--footer-text);
	text-decoration: none;
	transition: var(--footer-transition);
	opacity: 0.85;
}

.astra-child-footer-contact a:hover {
	color: var(--footer-accent);
	opacity: 1;
}

.astra-child-footer-contact span:not(.contact-icon) {
	opacity: 0.85;
}

/* Column 4: Social Media & Newsletter */
.astra-child-footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.astra-child-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--footer-border);
	border-radius: 8px;
	color: var(--footer-text);
	text-decoration: none;
	transition: var(--footer-transition);
	position: relative;
	overflow: hidden;
}

.astra-child-social-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: var(--footer-transition);
}

.astra-child-social-link:hover {
	background: var(--footer-accent);
	border-color: var(--footer-accent);
	color: var(--footer-text-light);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.astra-child-social-link:hover::before {
	left: 100%;
}

.astra-child-social-link .social-icon {
	font-size: 16px;
	font-weight: 600;
	position: relative;
	z-index: 1;
}

/* Newsletter */
.astra-child-footer-newsletter {
	margin-top: 25px;
}

.newsletter-title {
	font-size: 13px;
	color: var(--footer-text);
	margin-bottom: 12px;
	opacity: 0.9;
	font-weight: 500;
}

.newsletter-form {
	margin-top: 15px;
}

.newsletter-input-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.newsletter-email {
	flex: 1;
	min-width: 200px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--footer-border);
	border-radius: 6px;
	color: var(--footer-text-light);
	font-size: 14px;
	transition: var(--footer-transition);
}

.newsletter-email::placeholder {
	color: var(--footer-text);
	opacity: 0.5;
}

.newsletter-email:focus {
	outline: none;
	border-color: var(--footer-accent);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.newsletter-submit {
	padding: 12px 24px;
	background: var(--footer-accent);
	border: none;
	border-radius: 6px;
	color: var(--footer-text-light);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--footer-transition);
	white-space: nowrap;
}

.newsletter-submit:hover {
	background: var(--footer-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.newsletter-submit:active {
	transform: translateY(0);
}

/* Footer Bottom */
.astra-child-footer-bottom {
	border-top: 1px solid var(--footer-border);
	padding: 25px 0;
	margin-top: 20px;
}

.astra-child-footer-bottom-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.astra-child-footer-copyright {
	font-size: 13px;
	color: var(--footer-text);
	opacity: 0.8;
}

.astra-child-footer-copyright a {
	color: var(--footer-text-light);
	text-decoration: none;
	transition: var(--footer-transition);
}

.astra-child-footer-copyright a:hover {
	color: var(--footer-accent);
}

.astra-child-footer-legal {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.astra-child-footer-legal a {
	color: var(--footer-text);
	text-decoration: none;
	opacity: 0.8;
	transition: var(--footer-transition);
}

.astra-child-footer-legal a:hover {
	color: var(--footer-accent);
	opacity: 1;
}

.astra-child-footer-legal .separator {
	color: var(--footer-border-light);
	opacity: 0.5;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
	.astra-child-footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 35px;
	}
	
	.astra-child-footer-overlay {
		padding: 50px 0 0;
	}
	
	.astra-child-footer-main {
		padding-bottom: 35px;
	}
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
	.astra-child-footer-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.astra-child-footer-overlay {
		padding: 40px 0 0;
	}
	
	.astra-child-footer-main {
		padding-bottom: 30px;
	}
	
	.astra-child-footer-widget {
		padding: 0 10px;
	}
	
	.astra-child-footer-widget-title {
		font-size: 13px;
		margin-bottom: 15px;
	}
	
	.astra-child-footer-bottom-content {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}
	
	.astra-child-footer-legal {
		flex-direction: column;
		gap: 8px;
	}
	
	.astra-child-footer-legal .separator {
		display: none;
	}
	
	.newsletter-input-group {
		flex-direction: column;
	}
	
	.newsletter-email,
	.newsletter-submit {
		width: 100%;
	}
	
	.astra-child-footer-logo img {
		max-width: 150px;
	}
	
	.astra-child-footer-site-title {
		font-size: 20px;
	}
}

/* LearnPress Compatibility */
.learnpress-page .astra-child-modern-footer,
.single-lp_course .astra-child-modern-footer,
.archive-lp_course .astra-child-modern-footer,
.tax-course_category .astra-child-modern-footer,
.tax-course_tag .astra-child-modern-footer {
	margin-top: 80px;
}

/* LearnPress Course Archive Pages */
.archive-lp_course .astra-child-modern-footer {
	background: linear-gradient(180deg, var(--footer-bg-dark) 0%, var(--footer-bg) 100%);
}

/* LearnPress Single Course Pages */
.single-lp_course .astra-child-modern-footer {
	border-top: 1px solid var(--footer-border);
}

/* LearnPress Profile Pages */
.learnpress-profile .astra-child-modern-footer {
	margin-top: 60px;
}

/* Ensure footer stays at bottom on LearnPress pages */
body.learnpress-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.learnpress-page #page {
	flex: 1;
	display: flex;
	flex-direction: column;
}

body.learnpress-page #content {
	flex: 1;
}

/* Smooth Scroll Enhancement */
html {
	scroll-behavior: smooth;
}

/* Accessibility Improvements */
.astra-child-social-link:focus,
.newsletter-submit:focus,
.astra-child-footer-nav a:focus,
.astra-child-footer-links a:focus {
	outline: 2px solid var(--footer-accent);
	outline-offset: 2px;
}

/* Newsletter Message Styles */
.newsletter-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-top: 12px;
	font-size: 13px;
	animation: slideDown 0.3s ease-out;
}

.newsletter-message-success {
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
	color: #22c55e;
}

.newsletter-message-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #ef4444;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Footer Navigation Toggle (Mobile) */
.footer-nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--footer-border);
	border-radius: 4px;
	padding: 8px;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 15px;
}

.footer-nav-toggle span {
	width: 20px;
	height: 2px;
	background: var(--footer-text);
	transition: var(--footer-transition);
}

.footer-nav-toggle.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.footer-nav-toggle.active span:nth-child(2) {
	opacity: 0;
}

.footer-nav-toggle.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
	.footer-nav-toggle {
		display: flex;
	}
}

/* Footer Visibility Animation */
.astra-child-modern-footer {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.astra-child-modern-footer.footer-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Print Styles */
@media print {
	.astra-child-modern-footer {
		display: none;
	}
}

