/* Foxy Tools — front-end styles */

:root {
	--fht-accent: #ea580c;
	--fht-accent-dark: #111;
	--fht-icon-bg: #101a33;
	--fht-icon-bg-2: #1c2b52;
	--fht-radius: 18px;
	--fht-ink: #14141a;
	--fht-muted: #6b6b76;
	--fht-embed-max-width: 1200px; /* overridden by Foxy Tools → Settings → Layout */
}

/* Directory hero */
.fht-directory-hero {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 40px;
}
.fht-eyebrow {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fht-accent);
	margin-bottom: 14px;
}
.fht-directory-heading {
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--fht-ink);
	margin: 0 0 16px;
	line-height: 1.2;
}
.fht-directory-subtext {
	font-size: 16px;
	color: var(--fht-muted);
	margin: 0;
	line-height: 1.65;
}

/* Big centered search bar */
.fht-search-row {
	position: relative;
	max-width: 620px;
	margin: 0 auto 20px;
}
.fht-search-icon {
	position: absolute;
	left: 24px;
	top: 50%;
	transform: translateY(-50%);
	color: #9a9aa5;
	display: flex;
	pointer-events: none;
}
.fht-search-icon svg { width: 18px; height: 18px; }
.fht-search-input {
	width: 100%;
	padding: 17px 22px 17px 52px;
	border: 1px solid #eee;
	border-radius: 999px;
	font-size: 15px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16,26,51,.07);
	box-sizing: border-box;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.fht-search-input:focus {
	outline: none;
	border-color: rgba(234,88,12,.35);
	box-shadow: 0 8px 28px rgba(234,88,12,.16);
}

/* Secondary filter row */
.fht-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
	justify-content: center;
}
.fht-toolbar select {
	padding: 10px 36px 10px 18px;
	border: 1px solid #e8e8ec;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 500;
	background: #fff;
	color: #555;
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px;
	cursor: pointer;
}
.fht-toolbar select:focus {
	outline: none;
	border-color: var(--fht-accent);
	box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}

.fht-results-meta {
	font-size: 13px;
	color: #999;
	margin-bottom: 16px;
	text-align: center;
}

/* Grid */
.fht-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
	gap: 26px;
	justify-content: center;
}

.fht-card {
	position: relative;
	border: 1px solid #f0f0f3;
	border-radius: var(--fht-radius);
	background: #fff;
	padding: 34px 30px 30px;
	box-shadow: 0 2px 10px rgba(16,26,51,.04);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
	display: flex;
	flex-direction: column;
}
.fht-card:hover {
	box-shadow: 0 20px 44px rgba(16,26,51,.12);
	transform: translateY(-5px);
	border-color: transparent;
}

.fht-card-icon {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: linear-gradient(155deg, var(--fht-icon-bg-2), var(--fht-icon-bg));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 25px;
	margin-bottom: 22px;
	box-shadow: 0 8px 18px rgba(16,26,51,.22);
}

.fht-card-title {
	margin: 0 0 11px;
	font-size: 19.5px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
	color: var(--fht-ink);
}
.fht-card-excerpt { margin: 0 0 20px; font-size: 14.5px; color: var(--fht-muted); line-height: 1.62; flex-grow: 1; }

.fht-card-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.fht-chip {
	font-size: 10.5px;
	background: #f4f4f7;
	color: #666;
	padding: 5px 11px;
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.fht-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 800;
	font-size: 15px;
	color: var(--fht-accent);
	text-decoration: none;
}
.fht-card-cta .fht-arrow { transition: transform .15s ease; }
.fht-card-cta:hover .fht-arrow { transform: translateX(5px); }
.fht-card-cta:hover { color: var(--fht-accent-dark); }

.fht-badge {
	position: absolute;
	top: 22px;
	right: 22px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	padding: 5px 12px;
	border-radius: 999px;
	color: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.fht-badge-free { background: #16a34a; }
.fht-badge-paid { background: #d97706; }
.fht-badge-inline { position: static; display: inline-block; margin-top: 14px; }

.fht-no-results { grid-column: 1/-1; color: #999; text-align: center; padding: 40px 0; }
.fht-loading { text-align: center; padding: 24px; color: #999; }

/* Single tool page */
.fht-single-wrap { max-width: 780px; margin: 0 auto; padding: 0 4px; }
.fht-single-wrap-wide { max-width: 980px; }

.fht-single-header { text-align: center; margin-bottom: 12px; }
.fht-single-icon {
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	border-radius: 20px;
	background: linear-gradient(155deg, var(--fht-icon-bg-2), var(--fht-icon-bg));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	box-shadow: 0 10px 24px rgba(16,26,51,.22);
}
.fht-single-cats { justify-content: center; margin-bottom: 16px; }
.fht-single-title {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--fht-ink);
	margin: 0 0 12px;
	line-height: 1.25;
}
.fht-single-subtitle { font-size: 16.5px; color: var(--fht-muted); max-width: 640px; margin: 0 auto; line-height: 1.65; }

.fht-single-thumb img { width: 100%; border-radius: var(--fht-radius); margin: 28px 0; }
.fht-single-content { margin: 28px 0; line-height: 1.75; color: #333; }

.fht-access-panel {
	margin-top: 32px;
	padding: 24px;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: var(--fht-radius);
	text-align: center;
}
/* Embedded tools get their own unboxed, full-bleed treatment below */
.fht-panel-has-embed {
	background: transparent;
	border: none;
	padding: 0;
	text-align: left;
}

/* Breaks the embed out of the theme's narrow article/content column
   (which was cramping it), but caps it back to a compact, contained
   width that matches a typical header/nav container — so it always has
   visible left/right breathing room instead of touching the browser
   edges. Adjust --fht-embed-max-width below if your header's own
   container is a different width. */
.fht-full-bleed {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 0 24px;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
}
.fht-full-bleed-inner {
	width: 100%;
	max-width: var(--fht-embed-max-width);
	margin: 0 auto;
}

.fht-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	margin: 4px 8px 20px 0;
	background: var(--fht-accent-dark);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,.12);
	transition: background .15s ease, transform .15s ease;
}
.fht-btn:hover { background: var(--fht-accent); color: #fff; transform: translateY(-1px); }

.fht-embed-wrap { margin-top: 4px; text-align: left; }
.fht-embed {
	width: 100%;
	height: 800px; /* overridden inline per-tool via the "Embed height" field */
	border: 1px solid #eee;
	border-radius: var(--fht-radius);
	display: block;
	box-shadow: 0 8px 30px rgba(16,26,51,.06);
}

.fht-purchase-box .fht-price {
	font-size: 26px;
	font-weight: 800;
	color: var(--fht-ink);
	margin: 0 0 14px;
}
.fht-purchase-status { margin-top: 10px; font-size: 13px; color: #555; }
.fht-purchase-status.fht-error { color: #c0392b; }

/* Admin metabox */
.fht-access-fields { border-top: 1px solid #eee; margin-top: 14px; padding-top: 14px; }

/* Ad / banner slots */
.fht-page-with-ads {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}
.fht-page-main {
	flex: 1 1 auto;
	min-width: 0;
}
.fht-ad-slot {
	flex: 0 0 auto;
}
.fht-ad-left,
.fht-ad-right {
	width: 160px;
	position: sticky;
	top: 20px;
}
.fht-ad-top,
.fht-ad-bottom {
	text-align: center;
	margin: 0 0 30px;
}
.fht-ad-bottom { margin: 30px 0 0; }

@media (max-width: 1100px) {
	.fht-ad-left,
	.fht-ad-right {
		display: none;
	}
	.fht-page-with-ads {
		padding: 0 12px;
	}
}

@media (max-width: 640px) {
	.fht-directory-heading { font-size: 28px; }
	.fht-single-title { font-size: 27px; }
	.fht-embed { height: 640px !important; }
	.fht-search-row { padding: 0 8px; }
}
