/* =====================================================
   AAI Frontend – filter bar + product detail styles
   ===================================================== */

/* --- Filter bar ------------------------------------ */
.aai-filter-bar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
	padding: 16px 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.aai-filter-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.aai-filter-label {
	font-weight: 600;
	font-size: 13px;
	color: #495057;
	min-width: 60px;
	margin-right: 4px;
}

.aai-filter-pill {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 20px;
	text-decoration: none;
	font-size: 13px;
	color: #495057;
	background: #fff;
	border: 1px solid #dee2e6;
	transition: all .15s ease;
	line-height: 1.4;
}

.aai-filter-pill:hover {
	background: #e9ecef;
	color: #212529;
	text-decoration: none;
}

.aai-filter-pill.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.aai-filter-pill.active:hover {
	background: #1a5c8e;
}

/* --- Product meta on single page ------------------- */
.aai-product-meta-albatros {
	margin: 12px 0 16px;
	font-size: 14px;
	line-height: 1.8;
	color: #333;
}

.aai-product-subtitle {
	font-size: 16px;
	color: #666;
	margin: -4px 0 10px;
	font-style: italic;
}

.aai-product-summary {
	font-size: 14px;
	color: #555;
	margin: 0 0 12px;
}

/* --- Detail tab ------------------------------------ */
.aai-product-detail-tab {
	font-size: 14px;
	line-height: 1.7;
}

.aai-specs {
	list-style: disc inside;
	margin: 6px 0 16px 8px;
	padding: 0;
}

.aai-specs li {
	padding: 2px 0;
}

.aai-asset-samples {
	list-style: none;
	margin: 6px 0 16px 0;
	padding: 0;
}

.aai-asset-samples li {
	padding: 3px 0;
}

.aai-asset-samples a {
	text-decoration: underline;
}

/* --- Smart sidebar: genre groups ------------------- */
.aai-smart-sidebar-widget {
	margin-bottom: 24px;
}
.aai-smart-sidebar-widget .widget-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #2271b1;
}

.aai-genre-group {
	margin-bottom: 4px;
	border: 1px solid #eee;
	border-radius: 6px;
	overflow: hidden;
}
.aai-genre-group-title {
	padding: 8px 12px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	background: #f8f9fa;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
}
.aai-genre-group-title:hover {
	background: #e9ecef;
}
.aai-toggle {
	font-size: 14px;
	color: #888;
	transition: transform .2s;
}
.aai-genre-group.open .aai-toggle {
	transform: rotate(45deg);
}
.aai-genre-list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 4px 0;
}
.aai-genre-group.open .aai-genre-list {
	display: block;
}
.aai-genre-list li a,
.aai-author-top-list li a {
	display: flex;
	justify-content: space-between;
	padding: 4px 12px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	transition: background .1s;
}
.aai-genre-list li a:hover,
.aai-author-top-list li a:hover {
	background: #f0f7ff;
	text-decoration: none;
}
.aai-genre-list li.active a,
.aai-author-top-list li.active a {
	background: #2271b1;
	color: #fff;
	border-radius: 3px;
}
.aai-genre-list li a span,
.aai-author-top-list li a span {
	color: #999;
	font-size: 12px;
}
.aai-genre-list li.active a span,
.aai-author-top-list li.active a span {
	color: rgba(255,255,255,0.7);
}

.aai-author-top-list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

/* --- Autocomplete ---------------------------------- */
.aai-autocomplete-wrap {
	position: relative;
	margin-top: 10px;
}
.aai-autocomplete-wrap input {
	width: 100%;
	padding: 7px 10px;
	font-size: 13px;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-sizing: border-box;
}
.aai-autocomplete-wrap input:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(34,113,177,0.15);
}
.aai-suggestions {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 6px 6px;
	max-height: 240px;
	overflow-y: auto;
	z-index: 100;
	list-style: none;
	margin: 0;
	padding: 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.aai-suggestions li a {
	display: block;
	padding: 6px 10px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
}
.aai-suggestions li a:hover {
	background: #f0f7ff;
}

/* --- Sample preview below product image ------------ */
.aai-samples-below-image {
	margin-top: 16px;
	padding: 14px 16px;
	background: #f0f7ff;
	border: 1px solid #d0e3f5;
	border-radius: 8px;
}

.aai-samples-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1a5c8e;
	margin-bottom: 8px;
}

.aai-samples-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aai-samples-list li {
	padding: 4px 0;
}

.aai-samples-list a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #2271b1;
	text-decoration: none;
	font-size: 13px;
	padding: 4px 10px;
	border-radius: 4px;
	transition: background .15s ease;
}

.aai-samples-list a:hover {
	background: #dceaf7;
	text-decoration: none;
}

/* --- Authors Directory ------------------------------ */
.aai-authors-directory {
	max-width: 1200px;
	margin: 0 auto;
}
.aai-authors-search-wrap {
	margin-bottom: 20px;
}
#aai-authors-dir-search {
	width: 100%;
	max-width: 400px;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	outline: none;
}
#aai-authors-dir-search:focus {
	border-color: #4a90d9;
	box-shadow: 0 0 0 2px rgba(74,144,217,.15);
}
.aai-authors-alphabet {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}
.aai-letter-link {
	display: inline-block;
	min-width: 28px;
	text-align: center;
	padding: 4px 6px;
	font-weight: 600;
	font-size: 14px;
	color: #4a90d9;
	background: #f0f4f8;
	border-radius: 4px;
	text-decoration: none;
}
.aai-letter-link:hover {
	background: #4a90d9;
	color: #fff;
}
.aai-letter-heading {
	font-size: 22px;
	font-weight: 700;
	margin: 24px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #4a90d9;
	color: #333;
}
.aai-authors-grid {
	display: grid;
	gap: 6px 16px;
}
.aai-author-item a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 8px;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: background .12s;
}
.aai-author-item a:hover {
	background: #f0f4f8;
	color: #4a90d9;
}
.aai-author-thumb {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.aai-author-name {
	flex: 1;
}
.aai-author-count {
	color: #999;
	font-size: 12px;
	flex-shrink: 0;
}

/* --- Audio sample player ----------------------------- */
.aai-audio-sample .aai-audio-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #555;
}

/* --- Responsive ------------------------------------ */
@media (max-width: 768px) {
	.aai-filter-bar {
		padding: 12px;
	}
	.aai-filter-group {
		gap: 4px;
	}
	.aai-filter-pill {
		padding: 4px 10px;
		font-size: 12px;
	}
	.aai-filter-label {
		min-width: auto;
		width: 100%;
		margin-bottom: 2px;
	}
}
