/* Atlas Customizer — public storefront styles (design gallery, CTAs) */

.atlas-gallery {
	--ag-ink: #16181D;
	--ag-accent: #4F46E5;
	--ag-line: #E5E7EB;
	--ag-muted: #6B7280;
	margin: 28px 0 8px;
}

.atlas-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 22px;
}
.atlas-gallery__filter {
	border: 1px solid var(--ag-line);
	background: #fff;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13px;
	cursor: pointer;
	color: var(--ag-muted);
	transition: all .18s ease;
}
.atlas-gallery__filter:hover { border-color: var(--ag-ink); color: var(--ag-ink); }
.atlas-gallery__filter.is-active {
	background: var(--ag-ink);
	border-color: var(--ag-ink);
	color: #fff;
}

.atlas-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.atlas-gallery__item {
	margin: 0;
	background: #fff;
	border: 1px solid var(--ag-line);
	border-radius: 8px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.atlas-gallery__item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(22, 24, 29, .10);
}
.atlas-gallery__item img {
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
	display: block;
}
.atlas-gallery__item figcaption {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.atlas-gallery__name {
	font-weight: 700;
	font-size: 14.5px;
	color: var(--ag-ink);
}
.atlas-gallery__cat {
	font-family: "IBM Plex Mono", monospace;
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ag-muted);
}
.atlas-gallery__use {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ag-accent);
	text-decoration: none;
}
.atlas-gallery__use:hover { text-decoration: underline; }
.atlas-gallery__empty { text-align: center; color: var(--ag-muted); }

/* Big CTA */
.atlas-cz-cta-wrap { text-align: center; margin: 26px 0; }
.atlas-cz-cta,
a.atlas-cz-cta {
	display: inline-block;
	background: var(--ag-accent, #4F46E5);
	color: #fff !important;
	padding: 15px 34px;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border-radius: 0;
	transition: transform .18s ease, background .18s ease;
}
.atlas-cz-cta:hover,
a.atlas-cz-cta:hover {
	background: #4338CA;
	transform: translateY(-2px);
	color: #fff !important;
}

/* How it works steps */
.atlas-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
	margin: 26px 0;
}
.atlas-step {
	text-align: center;
	padding: 22px 16px;
	border: 1px solid var(--ag-line, #E5E7EB);
	border-radius: 8px;
	background: #fff;
}
.atlas-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #16181D;
	color: #fff;
	font-family: "IBM Plex Mono", monospace;
	font-size: 13px;
	margin-bottom: 12px;
}
.atlas-step h3 {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 16px;
	margin: 0 0 8px;
}
.atlas-step p { margin: 0; font-size: 13.5px; color: var(--ag-muted); }

/* FAQ */
.atlas-faq { max-width: 780px; margin: 24px auto; }
.atlas-faq details {
	border-bottom: 1px solid var(--ag-line, #E5E7EB);
	padding: 14px 0;
}
.atlas-faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.atlas-faq summary::-webkit-details-marker { display: none; }
.atlas-faq summary::after {
	content: "+";
	font-family: "IBM Plex Mono", monospace;
	color: var(--ag-muted);
}
.atlas-faq details[open] summary::after { content: "–"; }
.atlas-faq details p { margin: 10px 0 0; font-size: 14px; color: #374151; line-height: 1.65; }

@media (max-width: 600px) {
	.atlas-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.atlas-gallery__item figcaption { padding: 10px; }
	.atlas-gallery__name { font-size: 13px; }
}

/* ---------- Category / inspiration card grid (homepage) ---------- */
.atlas-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 28px 0 0;
}
.atlas-cat-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 20px;
	background: #fff;
	border: 1px solid var(--ag-line, #E5E7EB);
	border-radius: 8px;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.atlas-cat-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: #4F46E5;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.atlas-cat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(22, 24, 29, .10);
	border-color: #4F46E5;
}
.atlas-cat-card:hover::before { transform: scaleX(1); }
.atlas-cat-card__label {
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: #16181D;
}
.atlas-cat-card__desc { font-size: 13.5px; color: #6B7280; line-height: 1.5; }
.atlas-cat-card__link {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #4F46E5;
}
.atlas-cat-card:hover .atlas-cat-card__link { text-decoration: underline; }

/* ---------- Outline CTA (hero secondary button) ---------- */
.atlas-cta-outline .wp-block-button__link,
a.atlas-cta-outline,
a.atlas-cta-outline .wp-block-button__link {
	background: transparent !important;
	border: 1.5px solid rgba(255, 255, 255, .55) !important;
	color: #fff !important;
	padding: 15px 30px;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 600;
	border-radius: 0;
}
.atlas-cta-outline .wp-block-button__link:hover,
a.atlas-cta-outline:hover {
	border-color: #fff !important;
	background: rgba(255, 255, 255, .08) !important;
}

@media (max-width: 600px) {
	.atlas-cat-grid { grid-template-columns: 1fr; gap: 12px; }
	.atlas-cat-card { padding: 18px 16px; }
}
