/**
 * AI Systems and Platforms - Frontend Styles
 * Matches React component design with dark mode support
 *
 * DARK MODE (same as page-header, ai-policy-best-practices):
 * - html.theme-dark (Salient theme toggle - primary)
 * - body.dark-mode (compatibility)
 * - @media (prefers-color-scheme: dark) (system preference fallback)
 *
 * Dark colors: #0f172a (slate-900), #1e293b (slate-800)
 */

.ai-systems-platforms {
	position: relative;

}

@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .ai-systems-platforms { background-color: #0f172a; }
}
html.theme-dark .ai-systems-platforms,
body.dark-mode .ai-systems-platforms { background-color: #0f172a !important; }

/* AI-themed gradient - matches page-header */


/* Grid pattern */
/* .asp-bg-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.4;
	background-image:
		linear-gradient(to right, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-bg-grid { opacity: 0.3; } }
html.theme-dark .asp-bg-grid,
body.dark-mode .asp-bg-grid { opacity: 0.3 !important; } */

/* Sticky Nav */
.asp-sticky-nav {
	position: sticky; top: 67px; z-index: 40;
	background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
	border-bottom: 1px solid #e2e8f0;
	transition: background 0.3s ease, border-color 0.3s ease;
}
body.logged-in.admin-bar .asp-sticky-nav { top: 99px; }
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .asp-sticky-nav { background: rgba(15, 23, 42, 0.9); border-bottom-color: #1e293b; }
}
html.theme-dark .asp-sticky-nav,
body.dark-mode .asp-sticky-nav { background: rgba(15, 23, 42, 0.9) !important; border-bottom-color: #1e293b !important; }

.asp-sticky-nav-inner {
	max-width: 1400px; margin: 0 auto; padding: 16px 0px;
	display: flex;  gap: 12px; overflow-x: auto;
	scrollbar-width: none; -ms-overflow-style: none;
	position: relative; z-index: 10;
}
.asp-sticky-nav-inner::-webkit-scrollbar { display: none; }

.asp-nav-btn {
	white-space: nowrap; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
	border: 1px solid #e2e8f0; background: #fff; color: #475569; cursor: pointer; transition: all 0.2s;
}
.asp-nav-btn:hover { border-color: #cbd5e1; background: #f8fafc; color: #334155; }
.asp-nav-btn.is-active {
	background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
}
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .asp-nav-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }
	html:not(.theme-light) .asp-nav-btn:hover { background: #334155; border-color: #475569; color: #e2e8f0; }
	html:not(.theme-light) .asp-nav-btn.is-active { background: #2563eb; color: #fff; border-color: #2563eb; }
}
html.theme-dark .asp-nav-btn,
body.dark-mode .asp-nav-btn { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; }
html.theme-dark .asp-nav-btn:hover:not(.is-active),
body.dark-mode .asp-nav-btn:hover:not(.is-active) { background: #334155 !important; border-color: #475569 !important; color: #e2e8f0 !important; }
html.theme-dark .asp-nav-btn.is-active,
body.dark-mode .asp-nav-btn.is-active { background: #155dfc !important; border-color: #155dfc !important; color: #fff !important; }
.asp-nav-count { margin-left: 8px; opacity: 0.6; font-size: 12px; }
.asp-nav-btn.is-active .asp-nav-count { color: rgba(255,255,255,0.9); }

/* Tools Section */
.asp-tools-section {
	position: relative; z-index: 10;
	padding-top: 40px;
}
.asp-tools-inner { max-width: 1400px; margin: 0 auto; }

.asp-category-block { display: block; margin-bottom: 64px; scroll-margin-top: 120px; }
.asp-category-block:last-child { margin-bottom: 0px; }
.asp-category-title {
	font-size: 28px; font-weight: 600; color: #0f172a; margin: 0 0 24px;
	letter-spacing: -0.025em; line-height: 1.2; transition: color 0.3s ease;
}
@media (min-width: 768px) { .asp-category-title { font-size: 36px; } }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-category-title { color: #fff; } }
html.theme-dark .asp-category-title,
body.dark-mode .asp-category-title { color: #fff !important; }

/* Content Creation — Gen AI for Marketing (external use) */
.asp-category-notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 10px;
	border: 1px solid rgba(37, 99, 235, 0.25);
	background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
	font-size: 14px;
	line-height: 1.55;
	color: #1e293b;
}
.asp-category-notice > strong {
	display: block;
	margin-bottom: 12px;
}
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .asp-category-notice {
		border-color: rgba(96, 165, 250, 0.35);
		background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
		color: #e2e8f0;
	}
}
html.theme-dark .asp-category-notice,
body.dark-mode .asp-category-notice {
	border-color: rgba(96, 165, 250, 0.35) !important;
	background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
	color: #e2e8f0 !important;
}

.asp-tools-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .asp-tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .asp-tools-grid { grid-template-columns: repeat(3, 1fr); } }

/* Tool Card - matches React: bg-white dark:bg-slate-800, border slate-200/60 */
.asp-tool-card {
	display: flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 24px;
	border: 1px solid rgba(226, 232, 240, 0.6); transition: all 0.2s; height: 100%;
	box-shadow: 0 1px 3px 0 rgba(0,0,0,0.04);
}
.asp-tool-card:hover {
	border-color: #bfdbfe; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(59, 130, 246, 0.1);
}
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .asp-tool-card { background: rgba(30, 41, 59, 0.6); border-color: rgba(51, 65, 85, 0.6); }
	html:not(.theme-light) .asp-tool-card:hover { border-color: #3b82f6; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
}
html.theme-dark .asp-tool-card,
body.dark-mode .asp-tool-card { background: rgba(30, 41, 59, 0.6) !important; border-color: rgba(51, 65, 85, 0.6) !important; }
html.theme-dark .asp-tool-card:hover,
body.dark-mode .asp-tool-card:hover { border-color: #3b82f6 !important; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2) !important; }

.asp-tool-logo-row {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	min-width: 0;
}
.asp-tool-logo-row .asp-tool-logo { margin-bottom: 0; }

.asp-tool-logo {
	width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
	background: #f1f5f9; border: 1px solid #e2e8f0; margin-bottom: 16px;
	flex-shrink: 0;
}
.asp-tool-logo img { width: 100%!important; height: 100%!important; object-fit: cover; }
a.asp-tool-logo.asp-tool-logo--app-link {
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	cursor: pointer;
}
a.asp-tool-logo.asp-tool-logo--app-link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) a.asp-tool-logo.asp-tool-logo--app-link:focus-visible { outline-color: #60a5fa; }
}
html.theme-dark a.asp-tool-logo.asp-tool-logo--app-link:focus-visible,
body.dark-mode a.asp-tool-logo.asp-tool-logo--app-link:focus-visible { outline-color: #60a5fa !important; }
.asp-tool-logo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #64748b; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-logo { background: #1e293b; border-color: #334155; } }
html.theme-dark .asp-tool-logo,
body.dark-mode .asp-tool-logo { background: #1e293b !important; border-color: #334155 !important; }
html.theme-dark .asp-tool-logo-placeholder,
body.dark-mode .asp-tool-logo-placeholder { color: #94a3b8 !important; }

.asp-tool-header { display: flex; align-items: flex-start;     flex-direction: column; margin-bottom: 0px; gap: 16px; }
.asp-tool-meta { flex: 1; min-width: 0; line-height: normal;}
.asp-tool-name { font-size: 18px; font-weight: 600; color: #0f172a; margin: 0 0 4px; transition: color 0.2s; line-height: normal; }
.asp-tool-name .asp-tool-name-app-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}
.asp-tool-name .asp-tool-name-app-link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}
.asp-tool-card:hover .asp-tool-name { color: #1d4ed8; }
.asp-tool-card:hover .asp-tool-name .asp-tool-name-app-link { color: #1d4ed8; }
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .asp-tool-name { color: #fff; }
	html:not(.theme-light) .asp-tool-card:hover .asp-tool-name { color: #60a5fa; }
	html:not(.theme-light) .asp-tool-card:hover .asp-tool-name .asp-tool-name-app-link { color: #60a5fa; }
	html:not(.theme-light) .asp-tool-name .asp-tool-name-app-link:focus-visible { outline-color: #60a5fa; }
}
html.theme-dark .asp-tool-name,
body.dark-mode .asp-tool-name { color: #fff !important; }
html.theme-dark .asp-tool-card:hover .asp-tool-name,
body.dark-mode .asp-tool-card:hover .asp-tool-name { color: #60a5fa !important; }
html.theme-dark .asp-tool-card:hover .asp-tool-name .asp-tool-name-app-link,
body.dark-mode .asp-tool-card:hover .asp-tool-name .asp-tool-name-app-link { color: #60a5fa !important; }
html.theme-dark .asp-tool-name .asp-tool-name-app-link:focus-visible,
body.dark-mode .asp-tool-name .asp-tool-name-app-link:focus-visible { outline-color: #60a5fa !important; }
.asp-tool-vendor { font-size: 14px; color: #64748b; margin: 0; line-height: normal; 	}
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-vendor { color: #94a3b8; } }
html.theme-dark .asp-tool-vendor,
body.dark-mode .asp-tool-vendor { color: #94a3b8 !important; }

.asp-status-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 9999px;
	border: 1px solid; font-size: 12px; font-weight: 500; margin-bottom: 16px; align-self: flex-start;
	flex-shrink: 0; line-height: normal;
}
.asp-status-badge .asp-status-icon,
.asp-status-badge svg,
.asp-status-badge i { width: 14px; height: 14px; flex-shrink: 0; display: inline-block; }
.asp-status-badge .asp-status-icon svg { width: 100%; height: 100%; }
.asp-status-approved { background: rgba(34, 197, 94, 0.1); color: #15803d; border-color: #86efac; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-status-approved { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: #166534; } }
html.theme-dark .asp-status-approved,
body.dark-mode .asp-status-approved { background: rgba(34, 197, 94, 0.15) !important; color: #4ade80 !important; border-color: #166534 !important; }
.asp-status-evaluation { background: rgba(249, 115, 22, 0.1); color: #c2410c; border-color: #fdba74; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-status-evaluation { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: #9a3412; } }
html.theme-dark .asp-status-evaluation,
body.dark-mode .asp-status-evaluation { background: rgba(249, 115, 22, 0.15) !important; color: #fb923c !important; border-color: #9a3412 !important; }
.asp-status-pending { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-status-pending { background: #1e293b; color: #cbd5e1; border-color: #334155; } }
html.theme-dark .asp-status-pending,
body.dark-mode .asp-status-pending { background: #1e293b !important; color: #cbd5e1 !important; border-color: #334155 !important; }

.asp-tool-desc { font-size: 15px; color: #64748b; line-height: 1.6; margin: 0 0 16px; flex-grow: 1; padding-bottom: 0px!important; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-desc { color: #94a3b8; } }
html.theme-dark .asp-tool-desc,
body.dark-mode .asp-tool-desc { color: #94a3b8 !important; }

.asp-tool-app-links {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 10px 20px;
	margin-left: auto;
	width:auto;
	flex-direction: column;
}
.asp-tool-app-inline-link {
    display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: #2563eb;
	text-decoration: none;
	text-align: left;
	transition: color 0.2s;
}
.asp-tool-app-inline-link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}
.asp-tool-app-inline-link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
	border-radius: 4px;
}
.asp-tool-app-inline-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: currentColor;
}
.asp-tool-app-inline-icon svg {
	width: 16px;
	height: 16px;
	display: block;
	stroke: currentColor;
}
.asp-tool-app-inline-label {
	min-width: 0;
	text-align: left;
}
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .asp-tool-app-inline-link { color: #60a5fa; }
	html:not(.theme-light) .asp-tool-app-inline-link:hover { color: #93c5fd; }
	html:not(.theme-light) .asp-tool-app-inline-link:focus-visible { outline-color: #60a5fa; }
}
html.theme-dark .asp-tool-app-inline-link,
body.dark-mode .asp-tool-app-inline-link { color: #60a5fa !important; }
html.theme-dark .asp-tool-app-inline-link:hover,
body.dark-mode .asp-tool-app-inline-link:hover { color: #93c5fd !important; }
html.theme-dark .asp-tool-app-inline-link:focus-visible,
body.dark-mode .asp-tool-app-inline-link:focus-visible { outline-color: #60a5fa !important; }

.asp-tool-footer {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding-top: 16px; border-top: 1px solid #f1f5f9; margin-top: auto; line-height: normal;
}
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-footer { border-top-color: #1e293b; } }
html.theme-dark .asp-tool-footer,
body.dark-mode .asp-tool-footer { border-top-color: #1e293b !important; }
.asp-tool-label { font-size: 12px; font-weight: 500; color: #64748b; margin: 0 0 2px;  display: block;}
html.theme-dark .asp-tool-label,
body.dark-mode .asp-tool-label { color: #94a3b8 !important; }
.asp-tool-license { font-size: 14px; font-weight: 500; color: #334155; margin: 0; }
.asp-license-yes { color: #d97706; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-license { color: #e2e8f0; } html:not(.theme-light) .asp-license-yes { color: #fbbf24; } }
html.theme-dark .asp-tool-license,
body.dark-mode .asp-tool-license { color: #e2e8f0 !important; }
html.theme-dark .asp-license-yes,
body.dark-mode .asp-license-yes { color: #fbbf24 !important; }

.asp-tool-leaderboard {
	display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #2563eb;
	text-decoration: none; text-underline-offset: 2px; background: rgba(59, 130, 246, 0.1);
	padding: 6px 12px; border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.asp-tool-leaderboard .asp-leaderboard-icon {
	width: 14px; height: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
}
.asp-tool-leaderboard .asp-leaderboard-icon svg {
	width: 100%; height: 100%; stroke: currentColor;
}
.asp-tool-leaderboard:hover { color: #1d4ed8; background: rgba(59, 130, 246, 0.15); }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-leaderboard { color: #60a5fa; } html:not(.theme-light) .asp-tool-leaderboard:hover { color: #93c5fd; } }
html.theme-dark .asp-tool-leaderboard,
body.dark-mode .asp-tool-leaderboard { color: #60a5fa !important; }
html.theme-dark .asp-tool-leaderboard:hover,
body.dark-mode .asp-tool-leaderboard:hover { color: #93c5fd !important; }

.asp-tool-integrations { margin-top: 16px; }
.asp-tool-integrations-text { font-size: 14px; font-weight: 500; color: #334155; line-height: 1.4; padding-bottom: 0px!important;}
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-tool-integrations-text { color: #e2e8f0; } }
html.theme-dark .asp-tool-integrations-text,
body.dark-mode .asp-tool-integrations-text { color: #e2e8f0 !important; }
.asp-see-full-list, .asp-more-btn {
	color: #2563eb; font-size: 14px; font-weight: 500; text-decoration: underline;
	background: none; border: none; cursor: pointer; padding: 0; margin-left: 0px; margin-top: 5px;
	transition: color 0.2s;
}
.asp-see-full-list:hover, .asp-more-btn:hover { color: #1d4ed8; }
@media (prefers-color-scheme: dark) { html:not(.theme-light) .asp-see-full-list, .asp-more-btn { color: #60a5fa; } html:not(.theme-light) .asp-see-full-list:hover, .asp-more-btn:hover { color: #93c5fd; } }
html.theme-dark .asp-see-full-list,
html.theme-dark .asp-more-btn,
body.dark-mode .asp-see-full-list,
body.dark-mode .asp-more-btn { color: #60a5fa !important; }
html.theme-dark .asp-see-full-list:hover,
html.theme-dark .asp-more-btn:hover,
body.dark-mode .asp-see-full-list:hover,
body.dark-mode .asp-more-btn:hover { color: #93c5fd !important; }
@media (max-width: 999px) {
	.asp-nav-btn {
		padding: 10px 10px;
		font-size: 12px;
	}
	.asp-sticky-nav-inner {
		gap: 8px;
	}
	.asp-sticky-nav {
		top:42px
	}
	.asp-category-block{
		margin-bottom: 30px;
	}
}
