/**
 * Site Auditor & Executive SEO Directory Styles — 2026 Edition
 * Blending Seositecheckup (0-100 gauge, color-coded audit cards, How-to-fix guides, PDF export) +
 * Seobility (SERP snippet preview desktop/mobile, Heading H1-H6 tree, word count, server headers) +
 * SmallSEOTools (searchable categorized directory cards).
 *
 * @package ArabSeoToolsTheme
 */

/* ==========================================================================
   1. AUDITOR HERO INPUT BAR
   ========================================================================== */
.astt-auditor-form-wrapper {
	max-width: 860px;
	margin: 2rem auto 1.5rem;
	position: relative;
	z-index: 10;
}

.astt-auditor-form {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid #e2e8f0;
	border-radius: 9999px;
	padding: 0.4rem 0.5rem 0.4rem 1.25rem;
	box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

[data-theme="dark"] .astt-auditor-form {
	background: rgba(26, 32, 44, 0.95);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.5);
}

.astt-auditor-form:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 16px 40px -8px rgba(37, 99, 235, 0.2);
	transform: translateY(-2px);
}

.astt-auditor-input-group {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 0.85rem;
}

.astt-auditor-input-icon {
	color: #64748b;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.astt-auditor-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 1.1rem;
	font-weight: 500;
	color: #0f172a;
	outline: none;
	padding: 0.75rem 0;
	direction: ltr;
	text-align: left;
}

[data-theme="dark"] .astt-auditor-input {
	color: #f8fafc;
}

.astt-auditor-input::placeholder {
	color: #94a3b8;
	font-size: 0.98rem;
}

.astt-auditor-btn {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	padding: 0.85rem 1.85rem;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
	transition: all 0.25s ease;
	white-space: nowrap;
}

.astt-auditor-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
	transform: scale(1.02);
}

.astt-auditor-btn:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.astt-auditor-quick-chips {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.88rem;
	color: #64748b;
}

[data-theme="dark"] .astt-auditor-quick-chips {
	color: #94a3b8;
}

.astt-chip-btn {
	background: rgba(241, 245, 249, 0.85);
	border: 1px solid #e2e8f0;
	color: #334155;
	border-radius: 9999px;
	padding: 0.25rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	direction: ltr;
	display: inline-block;
}

[data-theme="dark"] .astt-chip-btn {
	background: rgba(30, 41, 59, 0.8);
	border-color: rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
}

.astt-chip-btn:hover {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
	transform: translateY(-1px);
}

/* ==========================================================================
   2. AUDIT LOADING PROGRESS BAR
   ========================================================================== */
.astt-auditor-loading {
	max-width: 780px;
	margin: 2.5rem auto;
	padding: 2.25rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 1.25rem;
	border: 1px solid #e2e8f0;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
	text-align: center;
}

[data-theme="dark"] .astt-auditor-loading {
	background: rgba(26, 32, 44, 0.95);
	border-color: rgba(255, 255, 255, 0.1);
}

.astt-loading-pulse-ring {
	width: 58px;
	height: 58px;
	border: 4px solid rgba(37, 99, 235, 0.2);
	border-top-color: #2563eb;
	border-radius: 50%;
	margin: 0 auto 1.25rem;
	animation: astt-spin 0.9s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes astt-spin {
	to { transform: rotate(360deg); }
}

.astt-loading-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 0.5rem;
}

[data-theme="dark"] .astt-loading-title {
	color: #f8fafc;
}

.astt-loading-status {
	font-size: 0.95rem;
	color: #64748b;
	margin-bottom: 1.25rem;
	min-height: 1.5rem;
}

.astt-progress-track {
	height: 8px;
	background: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
	position: relative;
}

[data-theme="dark"] .astt-progress-track {
	background: #334155;
}

.astt-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
	border-radius: 9999px;
	transition: width 0.3s ease;
}

/* ==========================================================================
   3. AUDIT RESULTS DASHBOARD (Seositecheckup / Seobility style)
   ========================================================================== */
.astt-auditor-dashboard {
	margin-top: 2.5rem;
	animation: asttFadeUp 0.5s ease-out forwards;
}

@keyframes asttFadeUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Executive Header & Score Card */
.astt-audit-hero-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	padding: 2.25rem;
	box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
}

[data-theme="dark"] .astt-audit-hero-card {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.astt-audit-hero-grid {
	display: grid;
	grid-template-columns: 240px 1fr auto;
	gap: 2.5rem;
	align-items: center;
}

@media (max-width: 900px) {
	.astt-audit-hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1.5rem;
	}
}

/* 0-100 Circular Radial Gauge */
.astt-gauge-wrapper {
	position: relative;
	width: 190px;
	height: 190px;
	margin: 0 auto;
}

.astt-gauge-svg {
	transform: rotate(-90deg);
	width: 100%;
	height: 100%;
}

.astt-gauge-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 14;
}

[data-theme="dark"] .astt-gauge-bg {
	stroke: #334155;
}

.astt-gauge-meter {
	fill: none;
	stroke-width: 14;
	stroke-linecap: round;
	transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.astt-gauge-meter--good { stroke: #10b981; }
.astt-gauge-meter--warn { stroke: #f59e0b; }
.astt-gauge-meter--fail { stroke: #ef4444; }

.astt-gauge-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.astt-gauge-score {
	font-size: 3.5rem;
	font-weight: 900;
	line-height: 1;
	color: #0f172a;
	font-family: inherit;
}

[data-theme="dark"] .astt-gauge-score {
	color: #f8fafc;
}

.astt-gauge-label {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-top: 0.35rem;
}

.astt-gauge-grade {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 0.4rem;
}

.astt-gauge-grade--good { background: rgba(16, 185, 129, 0.15); color: #059669; }
.astt-gauge-grade--warn { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.astt-gauge-grade--fail { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

/* Target URL & Meta summary */
.astt-audit-target-box {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.astt-audit-url-title {
	font-size: 1.6rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	direction: ltr;
	word-break: break-all;
}

[data-theme="dark"] .astt-audit-url-title {
	color: #f8fafc;
}

.astt-audit-timestamp {
	font-size: 0.88rem;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

/* Counters row */
.astt-audit-counters-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.75rem;
}

@media (max-width: 900px) {
	.astt-audit-counters-row {
		justify-content: center;
	}
}

.astt-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 1rem;
	border-radius: 0.75rem;
	font-weight: 700;
	font-size: 0.92rem;
}

.astt-count-badge--passed {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
	border: 1px solid rgba(16, 185, 129, 0.3);
}

.astt-count-badge--warn {
	background: rgba(245, 158, 11, 0.12);
	color: #d97706;
	border: 1px solid rgba(245, 158, 11, 0.3);
}

.astt-count-badge--fail {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
	border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Actions in hero */
.astt-audit-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.astt-btn-export-pdf {
	background: #0f172a;
	color: #ffffff;
	border: none;
	border-radius: 0.75rem;
	padding: 0.75rem 1.4rem;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}

.astt-btn-export-pdf:hover {
	background: #1e293b;
	transform: translateY(-2px);
}

[data-theme="dark"] .astt-btn-export-pdf {
	background: #2563eb;
}

.astt-btn-reaudit {
	background: transparent;
	color: #64748b;
	border: 1px solid #cbd5e1;
	border-radius: 0.75rem;
	padding: 0.65rem 1.25rem;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	transition: all 0.2s ease;
}

.astt-btn-reaudit:hover {
	background: #f1f5f9;
	color: #0f172a;
}

[data-theme="dark"] .astt-btn-reaudit {
	border-color: #475569;
	color: #94a3b8;
}

/* Quick Metrics Row */
.astt-audit-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .astt-audit-kpi-grid {
	border-top-color: rgba(255, 255, 255, 0.08);
}

.astt-kpi-tile {
	background: #f8fafc;
	border-radius: 0.85rem;
	padding: 0.9rem 1rem;
	text-align: center;
}

[data-theme="dark"] .astt-kpi-tile {
	background: rgba(15, 23, 42, 0.6);
}

.astt-kpi-val {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 0.2rem;
}

[data-theme="dark"] .astt-kpi-val {
	color: #f8fafc;
}

.astt-kpi-label {
	font-size: 0.78rem;
	color: #64748b;
	font-weight: 600;
}

/* ==========================================================================
   4. AUDITOR TAB NAVIGATION
   ========================================================================== */
.astt-audit-tabs {
	display: flex;
	gap: 0.5rem;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 2rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	scrollbar-width: none;
}

[data-theme="dark"] .astt-audit-tabs {
	border-bottom-color: rgba(255, 255, 255, 0.1);
}

.astt-audit-tab-btn {
	background: transparent;
	border: none;
	padding: 0.85rem 1.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: #64748b;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	white-space: nowrap;
	transition: all 0.2s ease;
}

[data-theme="dark"] .astt-audit-tab-btn {
	color: #94a3b8;
}

.astt-audit-tab-btn:hover {
	color: #2563eb;
}

.astt-audit-tab-btn.is-active {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

.astt-tab-badge-score {
	background: #f1f5f9;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 800;
	padding: 0.15rem 0.55rem;
	border-radius: 9999px;
}

[data-theme="dark"] .astt-tab-badge-score {
	background: #334155;
	color: #cbd5e1;
}

.astt-audit-tab-btn.is-active .astt-tab-badge-score {
	background: rgba(37, 99, 235, 0.15);
	color: #2563eb;
}

/* Tab Content Panels */
.astt-audit-panel {
	display: none;
}

.astt-audit-panel.is-active {
	display: block;
	animation: asttTabIn 0.3s ease-out;
}

@keyframes asttTabIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. GOOGLE SERP PREVIEW BOX (Seobility style)
   ========================================================================== */
.astt-serp-preview-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 1.75rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .astt-serp-preview-wrapper {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
}

.astt-serp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.astt-serp-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

[data-theme="dark"] .astt-serp-title {
	color: #f8fafc;
}

.astt-serp-device-toggle {
	display: inline-flex;
	background: #f1f5f9;
	border-radius: 9999px;
	padding: 0.25rem;
}

[data-theme="dark"] .astt-serp-device-toggle {
	background: #0f172a;
}

.astt-device-btn {
	background: transparent;
	border: none;
	padding: 0.35rem 0.85rem;
	font-size: 0.82rem;
	font-weight: 700;
	border-radius: 9999px;
	cursor: pointer;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.2s ease;
}

.astt-device-btn.is-active {
	background: #ffffff;
	color: #2563eb;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .astt-device-btn.is-active {
	background: #1e293b;
	color: #38bdf8;
}

/* Simulated Google SERP Snippet Box */
.astt-google-snippet {
	background: #ffffff;
	border: 1px solid #dfe1e5;
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
	max-width: 650px;
	font-family: Arial, sans-serif;
	direction: ltr;
	text-align: left;
	box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.astt-google-snippet--mobile {
	max-width: 380px;
	margin: 0 auto;
	border-radius: 1.25rem;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.astt-google-url-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
}

.astt-google-favicon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #f1f3f4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #5f6368;
}

.astt-google-domain {
	font-size: 14px;
	line-height: 20px;
	color: #202124;
	font-weight: 500;
}

.astt-google-breadcrumb {
	font-size: 12px;
	line-height: 16px;
	color: #4d5156;
}

.astt-google-title {
	font-size: 20px;
	line-height: 26px;
	color: #1a0dab;
	cursor: pointer;
	margin: 0 0 0.35rem;
	font-weight: 400;
}

.astt-google-title:hover {
	text-decoration: underline;
}

.astt-google-desc {
	font-size: 14px;
	line-height: 20px;
	color: #4d5156;
	margin: 0;
	word-break: break-word;
}

/* ==========================================================================
   6. HEADING HIERARCHY TREE (Seobility style)
   ========================================================================== */
.astt-headings-tree-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 1.75rem;
	margin-bottom: 2rem;
}

[data-theme="dark"] .astt-headings-tree-wrapper {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
}

.astt-headings-counts-bar {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.astt-heading-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	border-radius: 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
}

.astt-heading-tag-pill--h1 { background: #fee2e2; color: #991b1b; }
.astt-heading-tag-pill--h2 { background: #dbeafe; color: #1e40af; }
.astt-heading-tag-pill--h3 { background: #fef3c7; color: #92400e; }
.astt-heading-tag-pill--h4 { background: #f3f4f6; color: #374151; }

.astt-headings-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px dashed #cbd5e1;
	margin-left: 1rem;
}

[dir="rtl"] .astt-headings-list {
	border-left: none;
	border-right: 2px dashed #cbd5e1;
	margin-left: 0;
	margin-right: 1rem;
}

[data-theme="dark"] .astt-headings-list {
	border-color: #475569;
}

.astt-heading-item {
	position: relative;
	padding: 0.45rem 1.25rem;
	margin-bottom: 0.25rem;
	font-size: 0.95rem;
	color: #1e293b;
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
}

[data-theme="dark"] .astt-heading-item {
	color: #e2e8f0;
}

.astt-heading-item::before {
	content: "";
	position: absolute;
	top: 1rem;
	left: -2px;
	width: 14px;
	height: 2px;
	background: #cbd5e1;
}

[dir="rtl"] .astt-heading-item::before {
	left: auto;
	right: -2px;
}

.astt-heading-item--l1 { margin-left: 0rem; font-weight: 800; font-size: 1.05rem; }
.astt-heading-item--l2 { margin-left: 1.25rem; font-weight: 700; }
.astt-heading-item--l3 { margin-left: 2.5rem; font-weight: 500; }
.astt-heading-item--l4 { margin-left: 3.75rem; font-size: 0.88rem; color: #64748b; }

[dir="rtl"] .astt-heading-item--l1 { margin-left: 0; margin-right: 0rem; }
[dir="rtl"] .astt-heading-item--l2 { margin-left: 0; margin-right: 1.25rem; }
[dir="rtl"] .astt-heading-item--l3 { margin-left: 0; margin-right: 2.5rem; }
[dir="rtl"] .astt-heading-item--l4 { margin-left: 0; margin-right: 3.75rem; }

/* ==========================================================================
   7. COLOR-CODED AUDIT CARDS (Seositecheckup style)
   ========================================================================== */
.astt-audit-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	border-left: 6px solid #94a3b8;
	transition: all 0.25s ease;
}

[dir="rtl"] .astt-audit-card {
	border-left: 1px solid #e2e8f0;
	border-right: 6px solid #94a3b8;
}

[data-theme="dark"] .astt-audit-card {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
}

.astt-audit-card--ok {
	border-left-color: #10b981;
}
[dir="rtl"] .astt-audit-card--ok {
	border-right-color: #10b981;
}

.astt-audit-card--warn {
	border-left-color: #f59e0b;
}
[dir="rtl"] .astt-audit-card--warn {
	border-right-color: #f59e0b;
}

.astt-audit-card--fail {
	border-left-color: #ef4444;
}
[dir="rtl"] .astt-audit-card--fail {
	border-right-color: #ef4444;
}

.astt-audit-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.65rem;
}

.astt-audit-card-title-group {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.astt-audit-card-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.astt-audit-card--ok .astt-audit-card-icon {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
}

.astt-audit-card--warn .astt-audit-card-icon {
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
}

.astt-audit-card--fail .astt-audit-card-icon {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.astt-audit-card-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

[data-theme="dark"] .astt-audit-card-title {
	color: #f8fafc;
}

.astt-audit-card-val-badge {
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.25rem 0.65rem;
	border-radius: 0.5rem;
	background: #f1f5f9;
	color: #334155;
	white-space: nowrap;
	direction: ltr;
}

[data-theme="dark"] .astt-audit-card-val-badge {
	background: #0f172a;
	color: #cbd5e1;
}

.astt-audit-card-detail {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 1rem;
}

[data-theme="dark"] .astt-audit-card-detail {
	color: #94a3b8;
}

/* Expandable "How to Fix" Accordion */
.astt-how-to-fix-btn {
	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
	border: 1px solid rgba(37, 99, 235, 0.2);
	border-radius: 0.65rem;
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	transition: all 0.2s ease;
}

.astt-how-to-fix-btn:hover {
	background: #2563eb;
	color: #ffffff;
}

[data-theme="dark"] .astt-how-to-fix-btn {
	background: rgba(56, 189, 248, 0.1);
	color: #38bdf8;
	border-color: rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .astt-how-to-fix-btn:hover {
	background: #38bdf8;
	color: #0f172a;
}

.astt-how-to-fix-content {
	display: none;
	background: #f8fafc;
	border-radius: 0.75rem;
	padding: 1.15rem;
	margin-top: 0.85rem;
	border: 1px solid #e2e8f0;
	font-size: 0.92rem;
	color: #334155;
	line-height: 1.6;
}

[data-theme="dark"] .astt-how-to-fix-content {
	background: #0f172a;
	border-color: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
}

.astt-how-to-fix-content.is-open {
	display: block;
	animation: asttAccordion 0.25s ease-out;
}

@keyframes asttAccordion {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.astt-fix-tool-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.75rem;
	color: #2563eb;
	font-weight: 700;
	text-decoration: underline;
}

/* ==========================================================================
   8. REAL-TIME SEARCHABLE TOOLS DIRECTORY (SmallSEOTools style)
   ========================================================================== */
.astt-directory-controls {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 1.5rem;
	margin-bottom: 2.5rem;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .astt-directory-controls {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
}

.astt-live-search-box {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 9999px;
	padding: 0.5rem 1.25rem;
	transition: all 0.2s ease;
	margin-bottom: 1.25rem;
}

[data-theme="dark"] .astt-live-search-box {
	background: #0f172a;
	border-color: #334155;
}

.astt-live-search-box:focus-within {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	background: #ffffff;
}

.astt-live-search-input {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 1rem;
	font-weight: 500;
	padding: 0.45rem 0.65rem;
	outline: none;
	color: inherit;
}

.astt-directory-pills {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.astt-dir-pill {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	border-radius: 9999px;
	padding: 0.45rem 1rem;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

[data-theme="dark"] .astt-dir-pill {
	background: #0f172a;
	border-color: #334155;
	color: #cbd5e1;
}

.astt-dir-pill:hover,
.astt-dir-pill.is-active {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

.astt-dir-count {
	font-size: 0.75rem;
	opacity: 0.85;
	background: rgba(0, 0, 0, 0.12);
	padding: 0.1rem 0.45rem;
	border-radius: 9999px;
}

.astt-dir-pill.is-active .astt-dir-count {
	background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   9. PRINT / PDF EXPORT STYLES
   ========================================================================== */
@media print {
	body {
		background: #ffffff !important;
		color: #000000 !important;
	}
	.astt-header,
	.astt-footer,
	.astt-auditor-form-wrapper,
	.astt-auditor-quick-chips,
	.astt-audit-actions,
	.astt-audit-tabs,
	.astt-how-to-fix-btn,
	.astt-directory-controls,
	.astt-section--blocks,
	.astt-section--news,
	.astt-section--why-us,
	.astt-section--faq {
		display: none !important;
	}
	.astt-audit-panel {
		display: block !important;
		margin-bottom: 2rem;
		page-break-inside: avoid;
	}
	.astt-audit-hero-card {
		box-shadow: none !important;
		border: 1px solid #cccccc !important;
	}
	.astt-how-to-fix-content {
		display: block !important;
	}
}
