/*
Theme Name: ToolGarage
Template: generatepress
Author: ToolGarage
Description: A GeneratePress child theme for a compact web tools portal.
Version: 1.0.0
Text Domain: toolgarage
*/

/* Minimal front page */
body.home,
body.front-page {
	background: #fff;
	color: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

body.home .site-header,
body.front-page .site-header {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}

body.home .inside-header,
body.front-page .inside-header {
	min-height: 64px;
	padding-bottom: 14px;
	padding-top: 14px;
}

body.home .toolgarage-logo-title a,
body.front-page .toolgarage-logo-title a {
	align-items: center;
	color: #111;
	display: inline-flex;
	text-decoration: none;
}

body.home .toolgarage-header-logo,
body.front-page .toolgarage-header-logo {
	display: block;
	height: 28px;
	max-width: min(190px, 68vw);
	width: auto;
}

body.home .toolgarage-logo-title a::before,
body.front-page .toolgarage-logo-title a::before {
	display: none;
}

body.home .toolgarage-logo-title a::after,
body.front-page .toolgarage-logo-title a::after {
	display: none;
}

body.home .main-navigation,
body.home .mobile-menu-control-wrapper,
body.front-page .main-navigation,
body.front-page .mobile-menu-control-wrapper {
	display: none !important;
}

body.home .site,
body.home .site-content,
body.front-page .site,
body.front-page .site-content {
	background: #fff;
}

.tg-minimal-front {
	background: #fff;
	color: #111;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
	margin: 0 auto;
	max-width: 860px;
	padding: 0 24px 80px;
	width: 100%;
}

.tg-minimal-front .tg-section-label {
	color: #888;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .07em;
	margin: 0 0 14px;
}

.tg-minimal-front .tg-hero {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	padding: 56px 0 44px;
}

.tg-minimal-front .tg-hero::before,
.tg-minimal-front .tg-hero::after {
	display: none;
}

.tg-minimal-front .tg-hero__inner {
	max-width: 560px;
}

.tg-minimal-front .tg-hero__kicker {
	color: #888;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	margin: 0 0 16px;
}

.tg-minimal-front .tg-hero__title {
	color: #111;
	font-size: 36px;
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.25;
	margin: 0 0 14px;
	white-space: normal;
}

.tg-minimal-front .tg-hero__desc {
	color: #666;
	font-size: 14px;
	line-height: 1.8;
	margin: 0 0 32px;
	max-width: 560px;
}

.tg-minimal-front .tg-search {
	align-items: center;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	box-shadow: none;
	display: flex;
	gap: 0;
	margin: 0;
	max-width: 440px;
	padding: 0 14px;
	transition: background-color .15s ease, border-color .15s ease;
}

.tg-minimal-front .tg-search:focus-within {
	background: #fff;
	border-color: #999;
}

.tg-minimal-front .tg-search__icon {
	color: #aaa;
	flex-shrink: 0;
}

.tg-minimal-front .tg-search__input {
	background: transparent;
	border: 0;
	color: #111;
	flex: 1;
	font-size: 14px;
	min-height: 0;
	outline: 0;
	padding: 11px 10px;
	width: 100%;
}

.tg-minimal-front .tg-search__input::placeholder {
	color: #aaa;
}

.tg-minimal-front .tg-search__clear {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	color: #999;
	cursor: pointer;
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 500;
	min-height: 0;
	padding: 3px 10px;
	transition: color .1s ease, border-color .1s ease;
}

.tg-minimal-front .tg-search__clear:hover,
.tg-minimal-front .tg-search__clear:focus-visible {
	border-color: #ccc;
	color: #111;
}

.tg-minimal-front .tg-cats {
	border-bottom: 1px solid #f0f0f0;
	padding: 18px 0;
}

.tg-minimal-front .tg-cats__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tg-minimal-front .tg-cat {
	background: transparent;
	border: 1px solid #e8e8e8;
	border-radius: 20px;
	color: #888;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	min-height: 0;
	padding: 5px 14px;
	transition: background-color .1s ease, border-color .1s ease, color .1s ease;
}

.tg-minimal-front .tg-cat:hover,
.tg-minimal-front .tg-cat:focus-visible {
	border-color: #ccc;
	color: #111;
}

.tg-minimal-front .tg-cat.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}

.tg-minimal-front .tg-front-section {
	border-top: 1px solid #f0f0f0;
	padding: 34px 0;
}

.tg-minimal-front .tg-front-section:first-of-type {
	border-top: 0;
}

.tg-minimal-front .tg-front-section h2 {
	color: #111;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.4;
	margin: 0 0 16px;
}

.tg-minimal-front .tg-empty-note {
	background: #f8f8f8;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	color: #888;
	font-size: 14px;
	line-height: 1.7;
	margin: 0;
	padding: 18px 20px;
}

.tg-minimal-front .tg-popular {
	padding-top: 34px;
}

.tg-minimal-front .tg-tool-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tg-minimal-front .tg-tool-item[hidden] {
	display: none;
}

.tg-minimal-front .tg-tool-item__link {
	align-items: center;
	border-radius: 8px;
	color: #111;
	display: flex;
	gap: 12px;
	padding: 10px;
	text-decoration: none;
	transition: background-color .1s ease;
}

.tg-minimal-front .tg-tool-item__link:hover,
.tg-minimal-front .tg-tool-item__link:focus-visible {
	background: #f5f5f5;
	color: #111;
}

.tg-minimal-front .tg-tool-item__icon {
	align-items: center;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	border-radius: 7px;
	color: #111;
	display: flex;
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 500;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.tg-minimal-front .tg-tool-item[data-cat="web"] .tg-tool-item__icon {
	background: #fff7ed;
	border-color: #fed7aa;
	color: #f97316;
}

.tg-minimal-front .tg-tool-item[data-cat="text"] .tg-tool-item__icon {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #16a34a;
}

.tg-minimal-front .tg-tool-item[data-cat="image"] .tg-tool-item__icon {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0891b2;
}

.tg-minimal-front .tg-tool-item[data-cat="convert"] .tg-tool-item__icon {
	background: #f5f3ff;
	border-color: #ddd6fe;
	color: #7c3aed;
}

.tg-minimal-front .tg-tool-item__body {
	align-items: baseline;
	display: flex;
	gap: 10px;
	min-width: 0;
}

.tg-minimal-front .tg-tool-item__name {
	color: #111;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.tg-minimal-front .tg-tool-item__cat {
	color: #aaa;
	font-size: 12px;
	line-height: 1.4;
}

.tg-minimal-front .tg-tool-item__arr {
	color: #ccc;
	flex-shrink: 0;
	margin-left: auto;
	transition: color .1s ease, transform .1s ease;
}

.tg-minimal-front .tg-tool-item__link:hover .tg-tool-item__arr,
.tg-minimal-front .tg-tool-item__link:focus-visible .tg-tool-item__arr {
	color: #888;
	transform: translateX(2px);
}

.tg-minimal-front .tg-no-results {
	color: #aaa;
	font-size: 14px;
	margin: 0;
	padding: 24px 10px;
}

@media (max-width: 600px) {
	.tg-minimal-front {
		padding: 0 16px 60px;
	}

	.tg-minimal-front .tg-hero {
		padding: 44px 0 36px;
	}

	.tg-minimal-front .tg-hero__title {
		font-size: 28px;
	}

	.tg-minimal-front .tg-search {
		max-width: 100%;
	}

	.tg-minimal-front .tg-tool-item__body {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
}
