/* Homepage + AI/SEO/Web hub pages — scope with body.toolxox-home or body.toolxox-hub */
body.toolxox-home .content-header h1,
body.toolxox-hub .content-header h1 {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #1a1f36;
	font-size: 24px;
}

/* Hero */
.toolxox-hero {
	position: relative;
	margin: 0 0 28px;
	padding: 36px 32px 32px;
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(135deg, #4f5fb8 0%, #6b4fd4 45%, #8b5cf6 100%);
	box-shadow: 0 20px 50px rgba(79, 95, 184, 0.35);
	color: #fff;
}

.toolxox-hero::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
	pointer-events: none;
}

.toolxox-hero::after {
	content: "";
	position: absolute;
	bottom: -30%;
	left: 5%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(255, 122, 24, 0.25) 0%, transparent 70%);
	pointer-events: none;
}

.toolxox-hero-inner {
	position: relative;
	z-index: 1;
}

.toolxox-hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.toolxox-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.toolxox-hero-badge--hot {
	background: linear-gradient(90deg, #ff7a18, #ff4d6d);
	border-color: transparent;
}

.toolxox-hero h2 {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.toolxox-hero-lead {
	margin: 0 0 24px;
	max-width: 640px;
	font-size: 16px;
	line-height: 1.65;
	opacity: 0.95;
}

.toolxox-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
	margin-bottom: 24px;
}

.toolxox-hero-stat strong {
	display: block;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
}

.toolxox-hero-stat span {
	font-size: 13px;
	opacity: 0.88;
}

.toolxox-hero-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.toolxox-hero-nav a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
	color: #4a52a8;
	text-decoration: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toolxox-hero-nav a:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
	color: #4a52a8;
}

.toolxox-hero-nav a i {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 16px;
	color: #fff;
}

.toolxox-hero-nav a.hub-nav-ai i { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.toolxox-hero-nav a.hub-nav-web i { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.toolxox-hero-nav a.hub-nav-seo i { background: linear-gradient(135deg, #059669, #10b981); }

/* Intro strip */
.toolxox-intro-strip {
	margin-bottom: 28px;
	padding: 22px 24px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e8ebf5;
	box-shadow: 0 4px 20px rgba(30, 40, 90, 0.06);
}

.toolxox-intro-strip h3 {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #1a1f36;
}

.toolxox-intro-strip p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #5c6478;
}

.toolxox-feature-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.toolxox-feature-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #4a52a8;
	background: #f3f0ff;
	border-radius: 10px;
}

.toolxox-feature-pill i {
	color: #7c3aed;
}

/* Section panels (index + ai.php / seo.php / web-tools.php) */
body.toolxox-home .hub-section-panel,
body.toolxox-hub .hub-section-panel {
	margin-bottom: 28px;
	border: none;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(30, 40, 90, 0.08);
	background: #fff;
}

body.toolxox-home .hub-section-panel .box-header,
body.toolxox-hub .hub-section-panel .box-header {
	border: none;
	padding: 0;
}

body.toolxox-home .hub-section-panel .hub-section-head,
body.toolxox-hub .hub-section-panel .hub-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 26px;
	color: #fff;
}

body.toolxox-home .hub-section-panel .hub-section-head h2,
body.toolxox-hub .hub-section-panel .hub-section-head h2 {
	margin: 0;
	font-size: clamp(1.45rem, 2.5vw, 1.75rem);
	font-weight: 800;
	line-height: 1.25;
	border: none;
}

body.toolxox-home .hub-section-panel .hub-section-head h2 .fa,
body.toolxox-hub .hub-section-panel .hub-section-head h2 .fa {
	margin-right: 12px;
	font-size: 1.15em;
	opacity: 0.95;
}

body.toolxox-home .hub-section-panel .hub-view-all,
body.toolxox-hub .hub-section-panel .hub-view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 10px;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease, transform 0.2s ease;
}

body.toolxox-home .hub-section-panel .hub-view-all:hover,
body.toolxox-hub .hub-section-panel .hub-view-all:hover {
	background: rgba(255, 255, 255, 0.35);
	color: #fff;
	transform: translateX(4px);
}

body.toolxox-hub .hub-section-panel .hub-section-count {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 10px;
	backdrop-filter: blur(6px);
}

body.toolxox-home .hub-section--ai .hub-section-head,
body.toolxox-hub--ai .hub-section-head {
	background: linear-gradient(135deg, #5b4fc7 0%, #8b5cf6 100%);
}

body.toolxox-home .hub-section--web .hub-section-head,
body.toolxox-hub--web .hub-section-head {
	background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

body.toolxox-home .hub-section--seo .hub-section-head,
body.toolxox-hub--seo .hub-section-head {
	background: linear-gradient(135deg, #047857 0%, #10b981 100%);
}

body.toolxox-home .hub-section-panel .box-body,
body.toolxox-hub .hub-section-panel .box-body {
	padding: 8px 12px 20px;
}

body.toolxox-home .hub-section-panel h4,
body.toolxox-home .hub-category-label,
body.toolxox-hub .hub-section-panel h4,
body.toolxox-hub .hub-category-label {
	margin: 20px 16px 10px !important;
	padding: 8px 14px;
	font-size: 14px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6b7280 !important;
	background: #f8f9fc;
	border-radius: 8px;
	border-left: 4px solid #5d6dc3;
}

body.toolxox-home .hub-section--ai h4,
body.toolxox-hub--ai .hub-section-panel h4 { border-left-color: #8b5cf6; }
body.toolxox-home .hub-section--web h4,
body.toolxox-hub--web .hub-section-panel h4 { border-left-color: #2563eb; }
body.toolxox-home .hub-section--seo h4,
body.toolxox-hub--seo .hub-section-panel h4 { border-left-color: #10b981; }

/* Tool cards grid */
body.toolxox-home .downloader-sections,
body.toolxox-hub .downloader-sections {
	column-count: unset;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	padding: 12px 16px 16px;
}

body.toolxox-home .downloader-item,
body.toolxox-hub .downloader-item {
	margin: 0;
	padding: 0;
	border: 1px solid #e8ebf5;
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.toolxox-home .downloader-item:hover,
body.toolxox-hub .downloader-item:hover {
	border-color: #c4b5fd;
	box-shadow: 0 10px 28px rgba(93, 109, 195, 0.15);
	transform: translateY(-2px);
}

body.toolxox-home .downloader-item a,
body.toolxox-hub .downloader-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	color: #2a3142;
}

body.toolxox-home .downloader-item a::after,
body.toolxox-hub .downloader-item a::after {
	content: "\f054";
	font-family: FontAwesome;
	font-size: 11px;
	margin-left: auto;
	opacity: 0;
	color: #7c3aed;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

body.toolxox-home .downloader-item:hover a,
body.toolxox-hub .downloader-item:hover a {
	color: #5d6dc3;
}

body.toolxox-home .downloader-item:hover a::after,
body.toolxox-hub .downloader-item:hover a::after {
	opacity: 1;
	transform: translateX(3px);
}

body.toolxox-home .hub-block-title,
body.toolxox-hub .hub-block-title {
	display: none;
}

@media (max-width: 768px) {
	.toolxox-hero {
		padding: 28px 20px 24px;
	}

	.toolxox-hero-nav a {
		flex: 1 1 calc(50% - 6px);
		justify-content: center;
		min-width: 140px;
	}

	body.toolxox-home .downloader-sections,
	body.toolxox-hub .downloader-sections {
		grid-template-columns: 1fr;
	}
}

/* Hub page intro copy (ai / seo / web-tools) */
body.toolxox-hub .toolxox-hub-intro {
	margin-bottom: 24px;
	padding: 22px 24px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #e8ebf5;
	box-shadow: 0 4px 20px rgba(30, 40, 90, 0.06);
}

body.toolxox-hub .toolxox-hub-intro h3 {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 800;
	color: #1a1f36;
}

body.toolxox-hub .toolxox-hub-intro p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #5c6478;
}
