/**
 * Styles for [aha_products_list] shortcode (documentation page).
 *
 * @package AHA_Theme
 */

.aha-products-docs-list {
	max-width: 100%;
	margin: 1.5rem 0;
}

.aha-products-docs-list-search-wrap {
	margin-bottom: 1rem;
}

.aha-products-docs-list-search {
	width: 100%;
	max-width: 320px;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	border: 1px solid var(--color-gray-300, #cbd5e1);
	border-radius: 6px;
	background: var(--color-white, #fff);
}

.aha-products-docs-list-search:focus {
	outline: 2px solid var(--color-primary, #2563eb);
	outline-offset: 2px;
	border-color: var(--color-primary, #2563eb);
}

.aha-products-docs-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--color-gray-200, #e2e8f0);
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-white, #fff);
}

.aha-products-docs-list-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	border-bottom: 1px solid var(--color-gray-100, #f1f5f9);
}

.aha-products-docs-list-item:last-child {
	border-bottom: none;
}

.aha-products-docs-list-item-title a {
	font-size: 1.4em;
	font-weight: 500;
	color: var(--color-primary, #2563eb);
	text-decoration: none;
}

.aha-products-docs-list-item-title a:hover {
	text-decoration: underline;
}

.aha-products-docs-list-item-links {
	flex-shrink: 0;
}

.aha-products-docs-list-item-doc {
	white-space: nowrap;
    padding: 10px 20px;
    background: #0063ef;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.aha-products-docs-list-item-doc:hover {
	color: #fff;
	background: #005a87;
}

.aha-products-docs-list-no-results {
	margin: 1rem 0 0;
	color: var(--color-gray-500, #64748b);
	font-size: 0.9375rem;
}

.aha-products-docs-list-empty {
	color: var(--color-gray-600, #475569);
	margin: 1rem 0;
}

.aha-products-docs-list-item-description {
	font-size: 14px;
	color: var(--color-gray-500, #64748b);
	margin: 0;
	text-align: left;
}

@media (max-width: 768px) {
	.aha-products-docs-list-item {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 24px;
		border-bottom: 1px solid var(--color-gray-100, #f1f5f9);
		flex-direction: column;
		align-items: center;
		flex-wrap: wrap;
		height: auto;
	}
	.aha-products-docs-list-item-description {		
		text-align: center;
	}
}
