/* Full-Width Footer styling for Aletyx Documentation */

/* Main footer container - full width */
.md-footer-meta {
	padding: 0;
	background-color: #f8f9fa;
	color: #16293F;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	width: 100%;
}

[data-md-color-scheme="slate"] .md-footer-meta {
	background-color: #0D1B2A;
	color: #e0e0e0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main footer content structure */
.aletyx-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	width: 100%;
	margin: 0 auto;
	padding: 3rem 2rem;
	box-sizing: border-box;
}

/* Footer column styling */
.footer-column {
	flex: 1 1 200px;
	margin-bottom: 2rem;
	min-width: 200px;
}

/* First column with logo and tagline is wider */
.footer-column.brand-column {
	flex: 1 1 300px;
	max-width: 550px;
}

/* Footer heading styles */
.footer-heading {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	color: #16293F;
}

[data-md-color-scheme="slate"] .footer-heading {
	color: #ffffff;
}

/* Footer links list */
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	color: #ffffff;
}

.footer-links li {
	margin-bottom: 0.75rem;
}

/* Standardize all footer links to match legal links */
.footer-links a,
.legal-links a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	font-size: 0.6rem;
}

.footer-links a:hover,
.legal-links a:hover {
	color: #FC764C;
	text-decoration: none;
}

[data-md-color-scheme="slate"] .footer-links a,
[data-md-color-scheme="slate"] .legal-links a {
	color: #999;
}

[data-md-color-scheme="slate"] .footer-links a:hover,
[data-md-color-scheme="slate"] .legal-links a:hover {
	color: #FC764C;
}

/* External link icon */
.external-link-icon {
	margin-left: 0.25rem;
	opacity: 0.7;
}

/* Footer logo */
.footer-logo {
	display: block;
	margin-bottom: 1rem;
}

.footer-logo-img {
	height: 40px;
	width: auto;
	display: none;
}

.logo-light {
	display: block;
}

[data-md-color-scheme="slate"] .logo-light {
	display: none;
}

[data-md-color-scheme="slate"] .logo-dark {
	display: block;
}

/* Remove default image styling */
.footer-logo-img {
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

/* Footer tagline */
.footer-tagline {
	font-size: 0.875rem;
	line-height: 1.25;
	margin-top: 1rem;
	color: #ffffff;
	max-width: 550px;
}

[data-md-color-scheme="slate"] .footer-tagline {
	color: #999;
}

/* Social links section */
.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.social-links a {
	color: #ffffff;
	transition: color 0.2s ease;
}

.social-links a:hover {
	color: #FC764C;
}

[data-md-color-scheme="slate"] .social-links a {
	color: #b0b0b0;
}

[data-md-color-scheme="slate"] .social-links a:hover {
	color: #FC764C;
}

/* Footer bottom section with copyright and legal links */
.footer-bottom {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	width: 100%;
	padding: 1.5rem 2rem;
}

[data-md-color-scheme="slate"] .footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	font-size: 0.6rem;
	color: #666;
	width: 100%;
}

[data-md-color-scheme="slate"] .footer-legal {
	color: #999;
}

.footer-legal p {
	margin: 0;
}

.legal-links {
	display: flex;
	gap: 1.5rem;
}

/* Top banner exceptions for dark mode */
[data-md-color-scheme="slate"] .top-banner,
[data-md-color-scheme="slate"] .top-banner a {
	color: #ffffff !important;
	/* White text to ensure visibility */
}

[data-md-color-scheme="slate"] .top-banner a:hover {
	color: #ffffff !important;
	text-decoration: underline;
}

/* Prevent the general dark mode link styling from affecting the banner */
[data-md-color-scheme="slate"] a:not(.md-button):not(.top-banner a) {
	color: #FFFFFF !important;
}

@media (max-width: 768px) {
	.footer-legal {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.legal-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.footer-column.brand-column {
		flex: 1 1 100%;
		max-width: 100%;
	}
}


/* Compact Footer Styling */
.aletyx-footer {
	padding: 1.5rem 2rem;
	/* Reduced from 3rem 2rem */
	column-gap: 1.5rem;
	/* Add some space between columns */
}

/* Reduce vertical spacing in columns */
.footer-column {
	margin-bottom: 0.5rem;
	/* Reduced from 2rem */
}

/* Reduce spacing under headings */
.footer-heading {
	color: #ffffff;
	margin-bottom: 0.5rem;
	/* Reduced from 1.25rem */
	font-size: 0.7rem;
	/* Slightly smaller font */
}

/* Make list items more compact */
.footer-links li {
	margin-bottom: 0.3rem;
}

/* Make tagline more compact */
.footer-tagline {
	margin-top: 0.4rem;
	margin-right: 3rem;
	/* Reduced from 1rem */
	font-size: 0.7rem;
	/* Smaller text */
	line-height: 1;
	/* Tighter line height */
}

/* Smaller logo */
.footer-logo-img {
	height: 32px;
	/* Reduced from 40px */
}

/* Compact social links section */
.social-links {
	color: #ffffff;
	margin-top: 0.75rem;
	/* Reduced from 1.5rem */
	gap: 0.75rem;
	/* Reduced from 1rem */
}

/* Reduce bottom section padding */
.footer-bottom {
	padding: 0.5rem 1rem;
	/* Reduced from 1.5rem 2rem */
}

/* Social media icons size reduction */
.social-links svg {
	width: 20px;
	height: 20px;
}
