/**
 * AIActionBar styles.
 * Low specificity via :where() to play nicely with theme CSS.
 * All classes are .aiab-* prefixed.
 */

:where(.aiab-bar) {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 1.75em;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
}

.aiab-btn.aiab-btn-green{
	background: #00C896;
	border-color:#00C896;
	color:#fff;
	transition:all 150ms cubic-bezier(.2,.7,.2,1);
}

.aiab-btn.aiab-btn-green:hover{background-color: #00B387;}


.aiab-btn.aiab-btn-blue{
	background: #1E88E5;
	border-color:#1E88E5;
	color:#fff;
	transition:all 150ms cubic-bezier(.2,.7,.2,1);
}

.aiab-btn.aiab-btn-blue:hover{background-color: #1E73D6;}

:where(.aiab-item) {
	position: relative;
}

:where(.aiab-btn) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	color: #363553;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

:where(.aiab-dropdown .aiab-btn){gap:18px}


:where(.aiab-btn--primary) {
	background: #111418;
	border-color: #111418;
	color: #fff;
}

:where(.aiab-single-button){
	transition:all 150ms cubic-bezier(.2,.7,.2,1);
}
:where(.aiab-single-button):hover, :where(.aiab-single-button):focus{
	transform:translateY(-1px);
	box-shadow: 0 4px 10px rgba(11,18,32,.08);
	background-color: #f6f7f9;
}

:where(.aiab-single-button):focus{
	outline: none;
}

:where(.aiab-caret) {
	font-size: 10px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	transition: transform 180ms ease;
}

:where(.aiab-dropdown [data-aiab-toggle][aria-expanded="true"] .aiab-caret) {
	transform: rotate(180deg);
}

:where(.aiab-btn .aiab-label){
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

/*
:where(.aiab-mono) {
	font-family: ui-monospace, monospace, sans-serif;
	background-color: #f6f7f9;
	line-height: 1;
	padding: 2px 6px;
	font-size: 12px;
}
*/

:where(.aiab-menu) {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 9999;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid #e1e3e8;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

:where(.aiab-menu[hidden]) {
	display: none;
}

:where(.aiab-menu li) {
	list-style: none;
	margin: 0;
}

:where(.aiab-menu a) {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: #2a2945;
	text-decoration: none;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: .3px;
}

:where(.aiab-menu a):hover,
:where(.aiab-menu a):focus-visible {
	background: #F1F5F9;
	color: #0b0d10;
	outline: none;
}

:where(.aiab-menu a):focus{
	outline: none;
}

:where(.aiab-menu-item-icon){
	width: 28px;
	height: 28px;
	border-radius: 6px;
	align-items: center;
	justify-content: center;
	display: flex;
	background-color: #f5f5f5;
	flex-shrink: 0
}

:where(.aiab-menu a):hover .aiab-menu-item-icon{box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);}

:where(.aiab-menu-item-icon.claude){
	background-color: #f4e9d7;
}

:where(.aiab-menu-item-icon.gemini){
	background-color: #EAF1FE;
}

:where(.aiab-menu-item-icon.perplexity){
	background-color: #f2f0ed;
}

:where(.aiab-menu-item-icon.chart){
	background-color: #E8F0FB;
}

:where(.aiab-menu-item-icon.chart) svg{color:#1E88E5;width: 14px;}

:where(.aiab-platforms li):nth-child(even) .aiab-menu-item-icon{background-color: #E8F0FB;}
:where(.aiab-platforms li):nth-child(even) .aiab-menu-item-icon.chart svg { color:#00c896 }

:where(.aiab-menu-item){
	display: flex;
	align-items: center;
	gap: 12px;
}

:where(.aiab-dropdown .aiab-btn){
	padding: 10px 14px;
}

