/**
 * Footer Styles
 * Desktop and Mobile layouts with Dark Mode support
 */

/* ============================================
   Footer Container
   ============================================ */
.bfi-footer {
	width: 100%;
	border-top: 1px solid #e2e8f0;
	background: linear-gradient(to bottom, #ffffff, #f8fafc);
	padding-top: 4rem;
	padding-bottom: 4rem;
}

@media (min-width: 1024px) {
	.bfi-footer {
		padding-top: 5rem;
		padding-bottom: 2rem;
	}
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
	.bfi-footer {
		border-top-color: #1e293b;
		background: linear-gradient(to bottom, #0f172a, #020617);
	}
}

/* ============================================
   Footer Inner Container
   ============================================ */
.bfi-footer-inner {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.bfi-footer-inner {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.bfi-footer-inner {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

/* ============================================
   Main Footer Content
   ============================================ */
.bfi-footer-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
	margin-bottom: 3rem;
}

/* ============================================
   Brand Section
   ============================================ */
.bfi-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.bfi-footer-logo-container {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bfi-footer-logo-container:hover .bfi-footer-logo {
	transform: scale(1.05);
}

.bfi-footer-logo {
	height: 6rem;
	width: auto;
	transition: transform 0.3s;
}

/* ============================================
   Newsletter Section
   ============================================ */
.bfi-footer-newsletter {
	width: 100%;
	max-width: 28rem;
}

.bfi-footer-newsletter-title {
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: center;
}

.bfi-footer-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bfi-footer-newsletter-input-wrapper {
	position: relative;
}

/* Input - matches: w-full text-sm font-medium p-4 pr-14 rounded-xl border-2 border-slate-200 bg-white text-slate-900 placeholder:text-slate-400 focus:ring-2 focus:ring-[#00b8f5]/30 focus:border-[#00b8f5] outline-none transition-all duration-200 shadow-sm hover:shadow-md focus:shadow-lg */
/* Increased specificity to override Tailwind forms plugin */
.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input,
.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input {
	box-sizing: border-box !important;
	width: 100% !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	padding: 1rem !important;
	padding-right: 3.5rem !important;
	border-radius: 0.75rem !important;
	border: 2px solid #e2e8f0 !important;
	border-width: 2px !important;
	background-color: #ffffff !important;
	color: #0f172a !important;
	outline: none !important;
	transition: all 0.2s !important;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	line-height: normal !important;
}

.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input::placeholder,
.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input::placeholder {
	color: #94a3b8 !important;
}

.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input:hover,
.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input:hover {
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06) !important;
}

.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input:focus,
.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input:focus {
	border-color: #00b8f5 !important;
	box-shadow: 0 0 0 2px rgb(0 184 245 / 0.3), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05) !important;
	outline: none !important;
}

/* Button - matches: absolute right-2 top-2 size-9 rounded-lg bg-gradient-to-r from-[#002970] to-[#004080] text-white flex items-center justify-center hover:from-[#00b8f5] hover:to-[#0099cc] transition-all duration-200 shadow-md hover:shadow-lg hover:scale-105 active:scale-95 */
.bfi-footer-newsletter-button {
	box-sizing: border-box;
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: linear-gradient(to right, #002970, #004080);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
}

.bfi-footer-newsletter-button:hover {
	background: linear-gradient(to right, #00b8f5, #0099cc);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
	transform: scale(1.05);
}

.bfi-footer-newsletter-button:active {
	transform: scale(0.95);
}

/* Icon - matches: text-[20px] */
.bfi-footer-newsletter-icon {
	font-size: 20px;
}

.bfi-footer-newsletter-description {
	font-size: 0.75rem;
	color: #64748b;
	line-height: 1.625;
	text-align: center;
}

/* ============================================
   Bottom Bar
   ============================================ */
.bfi-footer-bottom {
	border-top: 1px solid #e2e8f0;
	padding-top: 2rem;
	margin-top: 2rem;
}

.bfi-footer-bottom-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.bfi-footer-bottom-content {
		flex-direction: row;
	}
}

.bfi-footer-copyright {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 500;
}

.bfi-footer-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.bfi-footer-link {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.bfi-footer-link:hover {
	color: #002970;
}

.bfi-footer-link-separator {
	color: #cbd5e1;
}

/* ============================================
   Dark Mode
   ============================================ */
@media (prefers-color-scheme: dark) {
	.bfi-footer-newsletter-title {
		color: #ffffff;
	}

	/* Dark mode: dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100 dark:placeholder:text-slate-500 */
	.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input,
	.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input {
		border-color: #334155 !important;
		background-color: #1e293b !important;
		color: #f1f5f9 !important;
	}

	.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input::placeholder,
	.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input::placeholder {
		color: #64748b !important;
	}
	
	.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input:hover,
	.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input:hover {
		box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06) !important;
	}
	
	.bfi-footer-newsletter-input-wrapper .bfi-footer-newsletter-input:focus,
	.bfi-footer-newsletter-input-wrapper input[type="email"].bfi-footer-newsletter-input:focus {
		border-color: #00b8f5 !important;
		box-shadow: 0 0 0 2px rgb(0 184 245 / 0.3), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05) !important;
	}

	.bfi-footer-newsletter-description {
		color: #94a3b8;
	}

	.bfi-footer-bottom {
		border-top-color: #1e293b;
	}

	.bfi-footer-copyright {
		color: #94a3b8;
	}

	.bfi-footer-link {
		color: #94a3b8;
	}

	.bfi-footer-link:hover {
		color: #00b8f5;
	}

	.bfi-footer-link-separator {
		color: #334155;
	}
}

