/* ==========================================================================
   AlPromptHub Reusable Dynamic Tool Category Archive Styles
   Matches Homepage SaaS Visual Reference & Brand Tokens
   ========================================================================== */

.aph-cats-wrap {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #0f172a;
	background: #f8f9fc;
	min-height: 100vh;
}

.aph-cats-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* 1. Breadcrumbs */
.aph-cats-breadcrumbs {
	max-width: 1240px;
	margin: 0 auto;
	padding: 16px 24px 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.85rem;
	color: #64748b;
}

.aph-cats-breadcrumbs a {
	color: #4f46e5;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}

.aph-cats-breadcrumbs a:hover {
	color: #4338ca;
	text-decoration: underline;
}

.aph-cats-breadcrumbs .sep {
	color: #cbd5e1;
}

.aph-cats-breadcrumbs .current {
	color: #0f172a;
	font-weight: 600;
}

/* 2. Hero Section */
.aph-cats-hero {
	position: relative;
	background: linear-gradient(135deg, #f7f5ff 0%, #ede9fe 46%, #e0e7ff 100%);
	padding: 56px 0 52px;
	overflow: hidden;
	border-bottom: 1px solid rgba(99, 102, 241, 0.14);
	text-align: center;
}

.aph-cats-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(rgba(91, 70, 246, 0.16) 1.3px, transparent 1.3px),
		linear-gradient(to right, rgba(99, 102, 241, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
	background-size: 24px 24px, 48px 48px, 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, #000 40%, transparent 100%);
	mask-image: radial-gradient(ellipse 85% 85% at 50% 45%, #000 40%, transparent 100%);
	pointer-events: none;
}

.aph-cats-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 820px;
	margin: 0 auto;
	padding: 0 24px;
}

.aph-cats-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #ffffff;
	color: #4f46e5;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1px solid rgba(99, 102, 241, 0.18);
	box-shadow: 0 2px 10px rgba(79, 70, 229, 0.08);
	margin-bottom: 18px;
}

.aph-cats-h1 {
	font-size: clamp(2.1rem, 3.5vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: #0f172a;
	margin: 0 0 14px;
}

.aph-cats-h1 span {
	background: linear-gradient(135deg, #5b46f6 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.aph-cats-subtitle {
	font-size: 1.15rem;
	font-weight: 600;
	color: #334155;
	line-height: 1.5;
	margin: 0 0 12px;
}

.aph-cats-intro {
	font-size: 0.98rem;
	line-height: 1.65;
	color: #475569;
	margin: 0 auto 18px;
	max-width: 720px;
}

.aph-cats-stat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #4f46e5;
}

/* 3. Section Wrappers */
.aph-cats-section {
	padding: 56px 0;
}

.aph-cats-section--white {
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.aph-cats-section__header {
	margin-bottom: 32px;
	text-align: left;
}

.aph-cats-section__title {
	font-size: 1.6rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px;
	letter-spacing: -0.015em;
}

.aph-cats-section__desc {
	font-size: 0.95rem;
	color: #64748b;
	margin: 0;
}

/* 4. Tool Grid */
.aph-cats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.aph-cat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px 20px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.aph-cat-card:hover {
	transform: translateY(-3px);
	border-color: #a5b4fc;
	box-shadow: 0 12px 26px rgba(79, 70, 229, 0.1);
}

.aph-cat-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	flex-shrink: 0;
}

.aph-cat-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
	margin: 0 0 8px;
}

.aph-cat-card:hover .aph-cat-card__title {
	color: #4f46e5;
}

.aph-cat-card__desc {
	font-size: 0.86rem;
	line-height: 1.55;
	color: #64748b;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aph-cat-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid #f1f5f9;
	font-size: 0.82rem;
}

.aph-cat-card__count {
	color: #64748b;
	font-weight: 600;
}

.aph-cat-card__cta {
	color: #4f46e5;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.aph-cat-card:hover .aph-cat-card__cta {
	color: #4338ca;
}

/* 5. Editorial Content Area */
.aph-cats-editorial {
	max-width: 980px;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 42px 48px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.aph-cats-editorial h2 {
	font-size: 1.55rem;
	font-weight: 800;
	color: #0f172a;
	margin: 32px 0 14px;
	letter-spacing: -0.015em;
	line-height: 1.25;
}

.aph-cats-editorial h2:first-child {
	margin-top: 0;
}

.aph-cats-editorial h3 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e293b;
	margin: 22px 0 10px;
	line-height: 1.35;
}

.aph-cats-editorial p {
	font-size: 0.96rem;
	line-height: 1.75;
	color: #475569;
	margin: 0 0 16px;
}

.aph-cats-editorial ul,
.aph-cats-editorial ol {
	margin: 10px 0 18px;
	padding-left: 24px;
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.7;
}

.aph-cats-editorial li {
	margin-bottom: 6px;
}

.aph-cats-editorial a {
	color: #4f46e5;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.aph-cats-editorial a:hover {
	color: #3730a3;
}

.aph-cats-editorial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 20px 0 26px;
}

.aph-cats-editorial-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px 22px;
}

.aph-cats-editorial-box h3 {
	margin-top: 0;
	color: #0f172a;
}

.aph-cats-editorial-box p:last-child {
	margin-bottom: 0;
}

/* 6. Contextual Category Navigation */
.aph-cats-nav {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid #f1f5f9;
}

.aph-cats-nav__title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #334155;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 14px;
}

.aph-cats-nav__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aph-cats-nav__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #334155;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	transition: all 0.15s ease;
}

.aph-cats-nav__pill:hover {
	background: #eef2ff;
	color: #4f46e5;
	border-color: #c7d2fe;
}

/* 7. Compact Promotional Banner */
.aph-cats-banner {
	margin: 44px auto 0;
	max-width: 980px;
	border-radius: 18px;
	background: linear-gradient(115deg, #5b46f6 0%, #7c3aed 100%);
	padding: 30px 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	color: #ffffff;
	box-shadow: 0 16px 32px rgba(91, 70, 246, 0.2);
	box-sizing: border-box;
}

.aph-cats-banner__left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.aph-cats-banner__icon {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.aph-cats-banner h2 {
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}

.aph-cats-banner p {
	font-size: 0.92rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	max-width: 560px;
}

.aph-cats-banner__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	background: #ffffff;
	color: #4f46e5;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.aph-cats-banner__btn:hover {
	background: #f8fafc;
	color: #4338ca;
	transform: translateY(-2px);
}

/* 8. FAQ Section */
.aph-cats-faq {
	max-width: 980px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 0.36fr 0.64fr;
	gap: 32px;
	align-items: start;
}

.aph-cats-faq__intro {
	background: #f5f3ff;
	border: 1px solid #e9d5ff;
	border-radius: 16px;
	padding: 28px 24px;
}

.aph-cats-faq__intro h2 {
	font-size: 1.4rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
	letter-spacing: -0.015em;
}

.aph-cats-faq__intro p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #64748b;
	margin: 0;
}

.aph-cats-faq__list {
	display: grid;
	gap: 12px;
}

.aph-cats-faq__item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.aph-cats-faq__item[open] {
	border-color: #a5b4fc;
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.07);
}

.aph-cats-faq__q {
	list-style: none;
	cursor: pointer;
	padding: 16px 20px;
	font-size: 0.98rem;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.aph-cats-faq__q::-webkit-details-marker {
	display: none;
}

.aph-cats-faq__plus {
	color: #4f46e5;
	font-size: 1.3rem;
	font-weight: 500;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.aph-cats-faq__item[open] .aph-cats-faq__plus {
	transform: rotate(45deg);
}

.aph-cats-faq__a {
	padding: 0 20px 18px;
	font-size: 0.91rem;
	line-height: 1.65;
	color: #475569;
}

/* 9. Responsive Breakpoints */
@media (max-width: 1080px) {
	.aph-cats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.aph-cats-faq {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.aph-cats-editorial {
		padding: 28px 22px;
	}
	.aph-cats-editorial-grid {
		grid-template-columns: 1fr;
	}
	.aph-cats-banner {
		flex-direction: column;
		align-items: flex-start;
		padding: 26px 24px;
	}
	.aph-cats-banner__btn {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.aph-cats-grid {
		grid-template-columns: 1fr;
	}
	.aph-cats-hero {
		padding: 44px 0 40px;
	}
}
