/* Homepage — Omni / Calculator.net directory pattern */

.tc-home {
	font-family: var(--tc-font);
	color: var(--tc-ink);
	background: #f7fafb;
}

.tc-home a {
	color: inherit;
	text-decoration: none;
}

/* ---- Hero (one composition) ---- */
.tc-home-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: min(78vh, 640px);
	display: flex;
	align-items: center;
	background:
		radial-gradient(1200px 480px at 12% -10%, rgba(20, 184, 166, 0.28), transparent 55%),
		radial-gradient(900px 420px at 88% 10%, rgba(15, 118, 110, 0.18), transparent 50%),
		linear-gradient(165deg, #0b1724 0%, #123044 48%, #0f766e 120%);
	color: #f4fbfa;
}

.tc-home-hero__glow {
	position: absolute;
	inset: auto -10% -30% 30%;
	height: 55%;
	background: radial-gradient(circle at 50% 0%, rgba(94, 234, 212, 0.35), transparent 65%);
	pointer-events: none;
	animation: tc-home-glow 8s ease-in-out infinite alternate;
}

.tc-home-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
	pointer-events: none;
}

.tc-home-hero__inner {
	position: relative;
	z-index: 1;
	width: min(760px, calc(100% - 2.5rem));
	margin: 0 auto;
	padding: 4.5rem 0 4rem;
	text-align: center;
	animation: tc-home-rise 0.7s ease both;
}

.tc-home-hero__brand {
	margin: 0 0 1rem;
	font-family: var(--tc-display);
	font-size: clamp(2.6rem, 7vw, 4.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.tc-home-hero__brand span {
	color: #5eead4;
}

.tc-home-hero__title {
	margin: 0 0 0.85rem;
	font-family: var(--tc-font);
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(244, 251, 250, 0.92);
}

.tc-home-hero__lede {
	margin: 0 auto 1.75rem;
	max-width: 36rem;
	font-size: 1.02rem;
	line-height: 1.55;
	color: rgba(226, 242, 240, 0.78);
}

.tc-home-hero__search {
	position: relative;
	max-width: 560px;
	margin: 0 auto 1.35rem;
}

.tc-home-search__input {
	width: 100%;
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	padding: 1rem 1.2rem;
	border-radius: 14px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tc-home-search__input::placeholder {
	color: rgba(226, 242, 240, 0.55);
	font-weight: 500;
}

.tc-home-search__input:focus {
	border-color: rgba(94, 234, 212, 0.65);
	background: rgba(255, 255, 255, 0.14);
	box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

.tc-home-search__results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 0.45rem);
	z-index: 5;
	text-align: left;
	background: #fff;
	color: var(--tc-ink);
	border-radius: 14px;
	border: 1px solid var(--tc-line);
	box-shadow: 0 18px 40px rgba(11, 23, 36, 0.22);
	max-height: 320px;
	overflow: auto;
	padding: 0.4rem;
}

.tc-home-search__results a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	font-weight: 600;
}

.tc-home-search__results a:hover,
.tc-home-search__results a.is-active {
	background: var(--tc-accent-soft);
	color: var(--tc-accent-dark);
}

.tc-home-search__results small {
	font-weight: 500;
	color: var(--tc-muted);
	white-space: nowrap;
}

.tc-home-search__empty {
	padding: 0.9rem 1rem;
	color: var(--tc-muted);
	font-size: 0.92rem;
}

.tc-home-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
}

.tc-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.15rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.92rem;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tc-home-btn:hover {
	transform: translateY(-1px);
}

.tc-home-btn--primary {
	background: #5eead4;
	color: #0b1724;
}

.tc-home-btn--primary:hover {
	background: #99f6e4;
}

.tc-home-btn--ghost {
	background: transparent;
	color: #e2f2f0;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.tc-home-btn--ghost:hover {
	border-color: rgba(94, 234, 212, 0.7);
	color: #fff;
}

/* ---- Sections ---- */
.tc-home-section {
	padding: 3.5rem 0;
}

.tc-home-section__inner {
	width: min(1100px, calc(100% - 2.5rem));
	margin: 0 auto;
}

.tc-home-section__head {
	margin-bottom: 1.75rem;
	max-width: 36rem;
}

.tc-home-section__head h2 {
	margin: 0 0 0.4rem;
	font-family: var(--tc-display);
	font-size: clamp(1.6rem, 3vw, 2rem);
	letter-spacing: -0.02em;
}

.tc-home-section__head p {
	margin: 0;
	color: var(--tc-muted);
	line-height: 1.5;
}

/* Popular — interactive list, not card grid */
.tc-home-popular {
	background: #fff;
	border-bottom: 1px solid var(--tc-line);
}

.tc-home-popular__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--tc-line);
}

.tc-home-popular__list li {
	border-bottom: 1px solid var(--tc-line);
	border-right: 1px solid var(--tc-line);
	opacity: 0;
	animation: tc-home-rise 0.55s ease forwards;
}

.tc-home-popular__list li:nth-child(2n) {
	border-right: none;
}

.tc-home-popular__list li:nth-child(1) { animation-delay: 0.05s; }
.tc-home-popular__list li:nth-child(2) { animation-delay: 0.09s; }
.tc-home-popular__list li:nth-child(3) { animation-delay: 0.13s; }
.tc-home-popular__list li:nth-child(4) { animation-delay: 0.17s; }
.tc-home-popular__list li:nth-child(5) { animation-delay: 0.21s; }
.tc-home-popular__list li:nth-child(6) { animation-delay: 0.25s; }
.tc-home-popular__list li:nth-child(7) { animation-delay: 0.29s; }
.tc-home-popular__list li:nth-child(8) { animation-delay: 0.33s; }
.tc-home-popular__list li:nth-child(9) { animation-delay: 0.37s; }
.tc-home-popular__list li:nth-child(10) { animation-delay: 0.41s; }
.tc-home-popular__list li:nth-child(11) { animation-delay: 0.45s; }
.tc-home-popular__list li:nth-child(12) { animation-delay: 0.49s; }

.tc-home-popular__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.15rem;
	font-weight: 700;
	transition: background 0.2s ease, color 0.2s ease;
}

.tc-home-popular__list a:hover {
	background: var(--tc-accent-soft);
	color: var(--tc-accent-dark);
}

.tc-home-popular__go {
	color: var(--tc-accent);
	font-weight: 600;
	opacity: 0.7;
}

/* Categories */
.tc-home-cats {
	background: #f7fafb;
}

.tc-home-cats__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 2.5rem;
}

.tc-home-cat__title {
	margin: 0 0 0.35rem;
	font-family: var(--tc-display);
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.tc-home-cat__title a:hover {
	color: var(--tc-accent-dark);
}

.tc-home-cat__meta {
	margin: 0 0 0.85rem;
	color: var(--tc-muted);
	font-size: 0.92rem;
}

.tc-home-cat__tools {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tc-home-cat__tools a {
	font-weight: 600;
	color: var(--tc-ink);
	border-bottom: 1px solid transparent;
	align-self: start;
}

.tc-home-cat__tools a:hover {
	color: var(--tc-accent-dark);
	border-bottom-color: rgba(13, 148, 136, 0.35);
}

.tc-home-cat__more {
	display: inline-block;
	margin-top: 0.85rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--tc-accent-dark);
}

.tc-home-cat__more:hover {
	text-decoration: underline;
}

/* Trust */
.tc-home-trust {
	background: #0f1f2e;
	color: #e8f4f2;
	padding: 3.25rem 0 4rem;
}

.tc-home-trust__inner {
	max-width: 640px;
}

.tc-home-trust h2 {
	margin: 0 0 1rem;
	font-family: var(--tc-display);
	font-size: clamp(1.45rem, 3vw, 1.85rem);
	letter-spacing: -0.02em;
}

.tc-home-trust__list {
	margin: 0;
	padding-left: 1.15rem;
	line-height: 1.55;
	color: rgba(232, 244, 242, 0.85);
}

.tc-home-trust__list li + li {
	margin-top: 0.45rem;
}

.tc-home-trust__by {
	margin: 1.35rem 0 0;
	font-size: 0.88rem;
	color: #5eead4;
	font-weight: 600;
}

/* Hide leftover Kadence chrome on front */
body.home .entry-hero,
body.home .content-title-style-hide .entry-header,
body.front-page .content-area > .content-wrap > .entry-content:empty {
	display: none;
}

body.home #inner-wrap > .content-area,
body.home .content-container {
	max-width: none;
	padding: 0;
	margin: 0;
}

body.home .content-style-boxed .entry-content-wrap,
body.home .content-vertical-padding-show .entry.content-bg {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

@keyframes tc-home-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tc-home-glow {
	from { opacity: 0.55; transform: translateY(0); }
	to { opacity: 1; transform: translateY(-12px); }
}

@media (max-width: 800px) {
	.tc-home-popular__list,
	.tc-home-cats__grid {
		grid-template-columns: 1fr;
	}

	.tc-home-popular__list li {
		border-right: none;
	}

	.tc-home-hero__inner {
		padding: 3.25rem 0 3rem;
	}
}
