/*
Theme Name: AI Site Canvas
Theme URI: https://example.com/ai-site-canvas
Author: OpenAI Codex
Author URI: https://openai.com
Description: Block theme shell for AI-generated websites with schema-driven page rendering.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-site-canvas
*/

.aisb-page-canvas {
	width: 100%;
}

.wp-site-blocks > main.alignfull,
.wp-block-group.alignfull:has(.aisb-page-canvas) {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.aisb-section {
	padding: clamp(56px, 8vw, 112px) 24px;
}

.aisb-section-inner {
	width: min(1120px, 100%);
	margin: 0 auto;
}

.aisb-section-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 18px;
	padding: 6px 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: 0.02em;
}

.aisb-section h2 {
	max-width: 880px;
	margin: 0 0 18px;
	font-size: clamp(34px, 6vw, 76px);
	line-height: 0.98;
	letter-spacing: -0.06em;
}

.aisb-section p {
	max-width: 760px;
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.72;
}

.aisb-section-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 32px;
}

.aisb-card {
	border: 1px solid rgba(152, 162, 179, 0.24);
	border-radius: 22px;
	padding: 24px;
	box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
}

.aisb-card h3 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.18;
	letter-spacing: -0.03em;
}

.aisb-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.62;
}

.aisb-product-gallery-carousel {
	display: grid;
	grid-auto-columns: minmax(260px, 38%);
	grid-auto-flow: column;
	gap: 18px;
	margin-top: 32px;
	overflow-x: auto;
	padding-bottom: 10px;
	scroll-snap-type: x mandatory;
}

.aisb-product-gallery-slide,
.aisb-product-gallery-empty {
	min-height: 280px;
	margin: 0;
	border: 1px solid rgba(152, 162, 179, 0.24);
	border-radius: 26px;
	box-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
	overflow: hidden;
	scroll-snap-align: start;
}

.aisb-product-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
}

.aisb-product-gallery-slide figcaption,
.aisb-product-gallery-empty {
	padding: 18px;
	font-weight: 700;
}

.aisb-product-gallery-placeholder {
	min-height: 220px;
	background:
		linear-gradient(135deg, rgba(0, 91, 211, 0.18), rgba(15, 118, 110, 0.12)),
		#f8fafc;
}

.aisb-empty-state,
.aisb-fallback-content {
	width: min(960px, calc(100% - 48px));
	margin: 64px auto;
}

@media (max-width: 720px) {
	.aisb-section {
		padding: 48px 18px;
	}

	.aisb-section-grid {
		grid-template-columns: 1fr;
	}

	.aisb-product-gallery-carousel {
		grid-auto-columns: minmax(240px, 86%);
	}
}
