/**
 * Footer Styles
 * Professional footer layout with Ocean Gradient design
 *
 * @package Techtronic_Learning
 * @since 1.0.0
 */

/* ==========================================================================
   Main Footer
   ========================================================================== */

.site-footer {
	background: var(--surface-1);
	border-top: 1px solid var(--gray-700);
	position: relative;
}

/* ==========================================================================
   Footer Main Content
   ========================================================================== */

.footer-main {
	padding: var(--spacing-5xl) 0 var(--spacing-4xl);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;  /* About column wider */
	gap: var(--spacing-4xl);
	position: relative;
	z-index: 1;
}

/* Footer Column */
.footer-col {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-lg);
}

/* About Column (Wider) */
.footer-col--about {
	max-width: 400px;
}

/* Footer Heading */
.footer-heading {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	color: var(--gray-50);
	margin: 0;
	line-height: var(--leading-tight);
}

.footer-col--about .footer-heading {
	font-size: var(--text-xl);
	font-weight: var(--weight-bold);
	background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Footer Text */
.footer-text {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	color: var(--gray-300);
	margin: 0;
}

/* Footer Social Links */
.footer-social {
	display: flex;
	gap: var(--spacing-3);
	margin-top: var(--spacing-md);
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-md);
	background: var(--surface-2);
	color: var(--gray-300);
	transition: all var(--duration-fast) var(--ease-out);
}

.social-link:hover {
	background: var(--primary-600);
	color: var(--white);
	transform: translateY(-2px);
}

.social-link svg {
	width: 18px;
	height: 18px;
}

/* Footer Contact Info (Bottom Bar) */
.footer-contact-info {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--gray-400);
	margin: 0;
	display: flex;
	align-items: center;
	gap: var(--spacing-3);
}

.footer-contact-info a {
	color: var(--gray-300);
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease-out);
}

.footer-contact-info a:hover {
	color: var(--primary-400);
}

.footer-separator {
	color: var(--gray-600);
}

/* Footer Links */
.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-3);
}

.footer-links li {
	margin: 0;
	padding: 0;
}

.footer-links a {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-normal);
	color: var(--gray-300);
	text-decoration: none;
	transition: all var(--duration-fast) var(--ease-out);
	display: inline-block;
}

.footer-links a:hover {
	color: var(--primary-400);
	padding-left: var(--spacing-1);
}

/* ==========================================================================
   Footer Bottom
   ========================================================================== */

.footer-bottom {
	background: var(--surface-0);
	border-top: 1px solid var(--gray-700);
	padding: var(--spacing-lg) 0;
}

.footer-bottom__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-lg);
	flex-wrap: wrap;
}

.footer-copyright,
.footer-credits {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	line-height: var(--leading-normal);
	color: var(--gray-400);
	margin: 0;
}

.footer-copyright {
	font-weight: var(--weight-medium);
}

.footer-credits {
	font-style: italic;
}

/* ==========================================================================
   Responsive Footer
   ========================================================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--spacing-3xl);
	}

	.footer-col--about {
		grid-column: 1 / -1;  /* Full width */
		max-width: 100%;
	}
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
	.footer-main {
		padding: var(--spacing-4xl) 0 var(--spacing-3xl);
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-2xl);
	}

	.footer-col--about {
		max-width: 100%;
		padding-bottom: var(--spacing-lg);
		border-bottom: 1px solid var(--gray-700);
	}

	.footer-col {
		gap: var(--spacing-md);
	}

	.footer-bottom {
		padding: var(--spacing-md) 0;
	}

	.footer-bottom__inner {
		flex-direction: column;
		text-align: center;
		gap: var(--spacing-sm);
	}

	.footer-copyright,
	.footer-credits {
		font-size: var(--text-xs);
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.site-footer {
		background: #fff !important;
		color: #000;
		border-top: 1px solid #000;
		padding: 32px 0;
	}

	.footer-main {
		padding: 24px 0;
	}

	.footer-bottom {
		padding: 16px 0;
		border-top: 1px solid #000;
	}

	.footer-links a {
		color: #000;
	}

	.footer-copyright,
	.footer-credits {
		color: #000;
	}
}
