﻿.asem-ai {
	position: relative;
	overflow: hidden;
	padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 3rem);
	color: var(--asem-text);
	background: var(--asem-bg-deep);
	isolation: isolate;
}
.asem-ai__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.4; pointer-events: none; }
.asem-ai__net { width: 100%; height: 100%; }

.asem-ai__head { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.asem-ai__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(184,134,46,0.12);
	color: var(--asem-primary);
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-size: 0.85rem;
	margin: 0 0 1rem;
	border: 1px solid rgba(184,134,46,0.3);
}
.asem-ai__title {
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	margin: 0 0 0.5rem;
	background: linear-gradient(120deg, var(--asem-primary), var(--asem-gold-bright));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.asem-ai__sub { color: var(--asem-muted); margin: 0; }

.asem-ai__shell {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 240px 1fr;
}
@media (max-width: 800px) { .asem-ai__shell { grid-template-columns: 1fr; } }

/* Radios are visually hidden, drive the tabs via :checked. */
.asem-ai__radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.asem-ai__tabs {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
@media (max-width: 800px) {
	.asem-ai__tabs { flex-direction: row; flex-wrap: wrap; }
}

.asem-ai__tab {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	background: var(--asem-bg-elevated);
	border: 1px solid var(--asem-border);
	color: var(--asem-text);
	padding: 0.85rem 1rem;
	border-radius: 12px;
	cursor: pointer;
	text-align: start;
	font-size: 0.95rem;
	transition: border-color .25s, background .25s, color .25s, transform .15s;
	user-select: none;
}
.asem-ai__tab:hover {
	border-color: rgba(184,134,46,0.5);
	color: var(--asem-primary);
	transform: translateX(2px);
}
[dir="rtl"] .asem-ai__tab:hover { transform: translateX(-2px); }

.asem-ai__tab:focus-within,
.asem-ai__radio:focus-visible + .asem-ai__tab {
	outline: 2px solid var(--asem-primary);
	outline-offset: 2px;
}

.asem-ai__panes {
	position: relative;
	min-height: 360px;
}

.asem-ai__pane {
	display: none;
	background: var(--asem-bg-elevated);
	border: 1px solid rgba(184,134,46,0.18);
	border-radius: 16px;
	padding: 1.6rem;
	gap: 1.4rem;
	box-shadow: 0 20px 50px -30px rgba(140,99,17,0.25);
}

/* No-JS tab switching: radio :checked drives which pane is shown,
 * and which tab label is highlighted. Pairs are matched by data-tab. */
.asem-ai__radio:checked ~ .asem-ai__panes .asem-ai__pane[data-tab="ml-pipeline"],
.asem-ai__radio[data-tab="ml-pipeline"]:checked ~ .asem-ai__panes .asem-ai__pane[data-tab="ml-pipeline"] { display: none; }

.asem-ai__radio[data-tab="ml-pipeline"]:checked ~ .asem-ai__panes .asem-ai__pane[data-tab="ml-pipeline"],
.asem-ai__radio[data-tab="powerbi"]:checked    ~ .asem-ai__panes .asem-ai__pane[data-tab="powerbi"],
.asem-ai__radio[data-tab="sap"]:checked        ~ .asem-ai__panes .asem-ai__pane[data-tab="sap"],
.asem-ai__radio[data-tab="industry40"]:checked ~ .asem-ai__panes .asem-ai__pane[data-tab="industry40"] {
	display: grid;
	grid-template-columns: 280px 1fr;
}
@media (max-width: 900px) {
	.asem-ai__radio:checked ~ .asem-ai__panes .asem-ai__pane { grid-template-columns: 1fr !important; }
}

/* Tab active highlight */
.asem-ai__radio[data-tab="ml-pipeline"]:checked ~ .asem-ai__tabs .asem-ai__tab[data-tab="ml-pipeline"],
.asem-ai__radio[data-tab="powerbi"]:checked    ~ .asem-ai__tabs .asem-ai__tab[data-tab="powerbi"],
.asem-ai__radio[data-tab="sap"]:checked        ~ .asem-ai__tabs .asem-ai__tab[data-tab="sap"],
.asem-ai__radio[data-tab="industry40"]:checked ~ .asem-ai__tabs .asem-ai__tab[data-tab="industry40"] {
	background: linear-gradient(110deg, rgba(184,134,46,0.22), rgba(212,175,55,0.22));
	border-color: var(--asem-primary);
	color: var(--asem-primary);
	font-weight: 600;
	box-shadow: 0 0 30px -10px rgba(184,134,46,0.5);
	transform: none;
}

.asem-ai__tab-icon { display: inline-flex; align-items: center; }
.asem-ai__pane-icon { display: inline-flex; align-items: center; margin-inline-end: 0.4rem; vertical-align: middle; }

.asem-ai__pane-title {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
	color: var(--asem-text);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.asem-ai__pane-desc {
	color: var(--asem-text);
	line-height: 1.7;
	margin: 0;
	font-size: 0.95rem;
}

.asem-ai__pane-code {
	background: var(--asem-bg);
	border: 1px solid rgba(184,134,46,0.18);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.asem-ai__code-bar {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	padding: 0.6rem 0.9rem;
	background: var(--asem-border);
	border-bottom: 1px solid var(--asem-border);
}
.asem-ai__code-bar span {
	width: 10px; height: 10px; border-radius: 50%;
	background: #475569;
}
.asem-ai__code-bar span:nth-child(1) { background: #ff5f57; }
.asem-ai__code-bar span:nth-child(2) { background: #ffbd2e; }
.asem-ai__code-bar span:nth-child(3) { background: #28c93f; }
.asem-ai__code-bar em {
	margin-inline-start: 0.6rem;
	color: var(--asem-muted);
	font-style: normal;
	font-size: 0.78rem;
	font-family: var(--wp--preset--font-family--mono, 'JetBrains Mono', monospace);
}

.asem-ai__code {
	margin: 0;
	padding: 1rem 1.2rem;
	font-family: var(--wp--preset--font-family--mono, 'JetBrains Mono', ui-monospace, monospace);
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--asem-text);
	overflow-x: auto;
	min-height: 240px;
	white-space: pre;
	tab-size: 4;
}
.asem-ai__code code { color: inherit; background: none; }

