/**
 * Footer Styles
 *
 * Dark-theme footer: quick search row, 6-column links grid, copyright bar.
 * Background is handled by the Astra theme — no background rules here.
 *
 * @package Collabable_Core
 * @since 4.1.0
 */

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
	--footer-text:          #ffffff;
	--footer-text-muted:    #aaaaaa;
	--footer-text-dim:      #777777;
	--footer-border:        rgba(255, 255, 255, 0.10);
	--footer-input-bg:      rgba(255, 255, 255, 0.08);
	--footer-input-border:  rgba(255, 255, 255, 0.18);
	--footer-btn-bg:        rgba(255, 255, 255, 0.14);
	--footer-btn-bg-hover:  rgba(255, 255, 255, 0.22);
	--footer-accent:        #9b72cf;   /* purple ".ai" accent */
	--footer-radius-pill:   999px;
	--footer-radius-sm:     6px;
	--footer-padding-x:     48px;
	--footer-padding-y:     48px;
}

/* ==========================================================================
   ASTRA FOOTER OVERRIDES — kill the white block and padding
   ========================================================================== */

/* Remove ALL gaps between main content and footer */
.site-content,
#content,
.ast-container,
.site-main,
.entry-content,
.entry-content .elementor,
.elementor.elementor-default,
.elementor-widget-container:last-child {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Astra theme article/page containers */
.ast-article-single,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .entry-content,
#primary,
#primary > .ast-container,
.ast-plain-container,
.ast-page-builder-template .entry-content {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Collabable layout containers */
.collabable-layout__main {
	padding-bottom: 0 !important;
}

.collabable-layout__body {
	margin-bottom: 0 !important;
}

.collabable-layout {
	margin-bottom: 0 !important;
}

.site-footer,
.site-footer .site-footer-above-section-1,
.site-footer .site-footer-primary-section-1,
.site-footer .site-footer-below-section-1,
.site-footer .ast-builder-footer-grid-row,
.site-footer .site-footer-section,
.site-footer .ast-builder-grid-row,
.site-footer .ast-footer-row-inline {
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
}

/* Astra footer widget area */
.site-footer {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* ==========================================================================
   WRAPPER
   ========================================================================== */

.collabable-footer {
	width: calc(100vw - 160px) !important;
	max-width: 1400px !important;
	margin-left: 50% !important;
	transform: translateX(-50%) !important;
	box-sizing: border-box !important;
	padding: var(--footer-padding-y) 0 !important;
	color: var(--footer-text) !important;
	font-family: inherit !important;
	border-top: 1px solid var(--footer-border) !important;
}

/* ==========================================================================
   SECTION 1 — QUICK SEARCH ROW
   ========================================================================== */

.collabable-footer__search {
	display: flex !important;
	flex-direction: column !important;
	gap: 16px !important;
	margin-bottom: 40px !important;
}

/* "Find a host / Find a guest / Find a studio" links */
.collabable-footer__search-links {
	display: flex !important;
	align-items: center !important;
	gap: 28px !important;
	padding-left: 54px !important;
}

.collabable-footer__search-links a {
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--footer-text) !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: color 0.2s !important;
}

.collabable-footer__search-links a:hover {
	color: var(--footer-text-muted) !important;
	text-decoration: none !important;
}

/* Search input + Go button */
.collabable-footer__search-form {
	display: flex !important;
	align-items: center !important;
	gap: 18px !important;
	padding-left: 54px !important;
	/* No max-width or flex:1 — sits naturally below the links row */
}

.collabable-footer__search-input {
	flex: 1 !important;
	height: 35px !important;
	max-width: 400px !important;
	padding: 0 20px !important;
	background: #ffffff !important;
	border: 1px solid #A2A2A2 !important;
	border-radius: 20px !important;
	color: #000000 !important;
	font-size: 14px !important;
	font-family: 'Inter', inherit !important;
	outline: none !important;
	transition: border-color 0.2s, background 0.2s !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

.collabable-footer__search-input::placeholder {
	color: #000000 !important;
	font-weight: 400 !important;
}

.collabable-footer__search-input:focus {
	border-color: #666666 !important;
	background: #ffffff !important;
}

.collabable-footer__search-btn {
	width: 149px !important;
	height: 35px !important;
	padding: 0 !important;
	background: #4E4E4E !important;
	border: none !important;
	border-radius: 20px !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	font-family: 'Inter', inherit !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: background 0.2s !important;
	flex-shrink: 0 !important;
}

.collabable-footer__search-btn:hover {
	background: #5a5a5a !important;
}

/* ==========================================================================
   SECTION 2 — 6-COLUMN LINKS GRID
   ========================================================================== */

.collabable-footer__grid {
	display: grid !important;
	grid-template-columns: repeat(6, 1fr) !important;
	gap: 24px !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 54px !important;
	border-bottom: none !important;
}

/* Column */
.collabable-footer__col {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}

/* Column header — white + bold */
.collabable-footer__col-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	margin: 0 0 14px 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* Links list — 15px paragraph spacing */
.collabable-footer__col-links {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}

.collabable-footer__col-links li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Links — Light 300, 20px, exact client specs, no hover animation */
.collabable-footer__col-links a {
	font-size: 14px !important;
	font-weight: 300 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	transition: none !important;
	display: inline-block !important;
}

.collabable-footer__col-links a:hover {
	color: #ffffff !important;
	text-decoration: none !important;
}

/* ==========================================================================
   SECTION 3 — COPYRIGHT BAR
   ========================================================================== */

.collabable-footer__copyright {
	display: flex !important;
	flex-direction: row !important;
	align-items: baseline !important;
	gap: 20px !important;
	flex-wrap: nowrap !important;
	padding-left: 54px !important;
	margin-top: 40px !important;
}

/* "collabable.ai" logo text */
.collabable-footer__logo {
	font-size: 31px !important;
	font-weight: 500 !important;
	color: var(--footer-text) !important;
	text-decoration: none !important;
	letter-spacing: -0.01em !important;
	flex-shrink: 0 !important;
	display: inline !important;
}

.collabable-footer__logo:hover {
	color: var(--footer-text) !important;
	text-decoration: none !important;
}

.collabable-footer__logo-base {
	color: var(--footer-text) !important;
	font-weight: 400 !important;
}

.collabable-footer__logo-ai {
	color: #ffffff !important;
	font-weight: 600 !important;
}

/* Copyright notice */
.collabable-footer__copy {
	font-size: 12px !important;
	color: var(--footer-text-dim) !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.5 !important;
	flex-shrink: 0 !important;
	white-space: nowrap !important;
}

/* ==========================================================================
   RESPONSIVE — TABLET (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.collabable-footer {
		width: calc(100vw - 64px) !important;
		padding: 40px 0 !important;
	}

	.collabable-footer__grid {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 32px 24px !important;
		padding-left: 0 !important;
	}
}

/* ==========================================================================
   RESPONSIVE — TABLET (768px)
   ========================================================================== */

@media (max-width: 768px) {
	.collabable-footer {
		padding: 36px 24px !important;
	}

	.collabable-footer__search {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 16px !important;
	}

	.collabable-footer__search-links {
		padding-left: 0 !important;
	}

	.collabable-footer__search-form {
		padding-left: 0 !important;
		width: 100% !important;
	}

	.collabable-footer__search-input {
		max-width: 100% !important;
	}

	.collabable-footer__grid {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 28px 20px !important;
		padding-left: 0 !important;
	}

	.collabable-footer__col-links a {
		font-size: 14px !important;
		font-weight: 300 !important;
		color: #ffffff !important;
	}
}

/* ==========================================================================
   RESPONSIVE — MOBILE (480px)
   ========================================================================== */

@media (max-width: 480px) {
	.collabable-footer {
		width: calc(100vw - 40px) !important;
		margin-left: 20px !important;
		transform: none !important;
		padding: 28px 0 !important;
	}

	.collabable-footer__search {
		gap: 12px !important;
		margin-bottom: 28px !important;
	}

	.collabable-footer__search-links {
		gap: 16px !important;
		flex-wrap: wrap !important;
		padding-left: 0 !important;
	}

	.collabable-footer__search-links a {
		font-size: 13px !important;
	}

	.collabable-footer__search-form {
		padding-left: 0 !important;
		width: 100% !important;
	}

	.collabable-footer__search-btn {
		width: 100px !important;
	}

	.collabable-footer__grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 28px 16px !important;
		margin-bottom: 28px !important;
		padding-bottom: 28px !important;
		padding-left: 0 !important;
	}

	.collabable-footer__col-links a {
		font-size: 13px !important;
		font-weight: 300 !important;
		color: #ffffff !important;
		line-height: 20px !important;
		letter-spacing: 0.29px !important;
	}

	.collabable-footer__logo {
		font-size: 13px !important;
	}

	.collabable-footer__copy {
		font-size: 11px !important;
	}
}

@media (max-width: 360px) {
	.collabable-footer__grid {
		grid-template-columns: 1fr !important;
		padding-left: 0 !important;
	}

	.collabable-footer__search-links {
		flex-direction: column !important;
		gap: 10px !important;
	}
}
