/* Tesla Maintenance & Service Center Guide Styles */

.maint-hero {
	background: radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12), transparent 70%), var(--tc-bg, #0b0f19);
	padding: 3rem 1rem 2rem;
	text-align: center;
	border-bottom: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
}

.maint-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.3);
	color: #22c55e;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 1rem;
}

/* Navigation Tabs */
.maint-tabs-wrapper {
	background: var(--tc-surface, #111827);
	border-bottom: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	position: sticky;
	top: 56px;
	z-index: 100;
	backdrop-filter: blur(10px);
}

[data-bs-theme="light"] .maint-tabs-wrapper {
	background: rgba(255, 255, 255, 0.95);
	border-bottom-color: #e2e8f0;
}

.maint-nav-tabs {
	display: flex;
	gap: 8px;
	padding: 8px 0;
	overflow-x: auto;
	scrollbar-width: none;
	border: none;
	list-style: none;
	margin: 0;
}
.maint-nav-tabs::-webkit-scrollbar {
	display: none;
}

.maint-nav-link {
	white-space: nowrap;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--tc-text-secondary, #94a3b8);
	background: transparent;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	cursor: pointer;
}

.maint-nav-link:hover {
	color: var(--tc-text-primary, #f8fafc);
	background: var(--tc-surface-hover, #1f2937);
}

.maint-nav-link.active {
	color: #ffffff;
	background: #10b981;
	border-color: #10b981;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Card Common */
.maint-card {
	background: var(--tc-surface, #161e2e);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
	border-radius: 16px;
	padding: 1.25rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	contain: layout style;
}

.sc-card-wrapper, .maint-item-card {
	contain-intrinsic-size: 0 280px;
}

[data-bs-theme="light"] .maint-card {
	background: #ffffff;
	border-color: #e2e8f0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.maint-card:hover {
	border-color: rgba(34, 197, 94, 0.4);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	transform: translateY(-2px);
}

/* Item Badges */
.maint-badge-cycle {
	background: rgba(59, 130, 246, 0.12);
	color: #3b82f6;
	border: 1px solid rgba(59, 130, 246, 0.3);
	font-size: 0.78rem;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 600;
}

.maint-badge-cost {
	background: rgba(234, 179, 8, 0.12);
	color: #eab308;
	border: 1px solid rgba(234, 179, 8, 0.3);
	font-size: 0.78rem;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 600;
}

.maint-badge-difficulty {
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 12px;
	font-weight: 600;
}
.diff-easy { background: rgba(34, 197, 94, 0.12); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.diff-medium { background: rgba(249, 115, 22, 0.12); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.diff-hard { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Timeline Step */
.timeline-track {
	position: relative;
	padding-left: 28px;
	border-left: 2px solid rgba(16, 185, 129, 0.3);
	margin-left: 10px;
}

.timeline-item {
	position: relative;
	margin-bottom: 2rem;
}

.timeline-item::before {
	content: '';
	position: absolute;
	left: -35px;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #10b981;
	border: 3px solid var(--tc-bg, #0b0f19);
	box-shadow: 0 0 0 2px #10b981;
}

/* Service Center Cards */
.sc-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--tc-surface-hover, #243044);
	color: var(--tc-text-secondary, #cbd5e1);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.08));
}
[data-bs-theme="light"] .sc-tag {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}

.sc-tag.active-service {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
	border-color: rgba(16, 185, 129, 0.3);
	font-weight: 600;
}

.sc-search-box {
	display: flex;
	align-items: center;
	background: var(--tc-surface, #161e2e);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.12));
	border-radius: 30px;
	padding: 6px 18px;
	transition: all 0.2s ease;
	width: 100%;
	max-width: 500px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.sc-search-box:focus-within {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
[data-bs-theme="light"] .sc-search-box {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sc-search-input {
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--tc-text-primary, #f1f5f9);
	padding: 6px 8px;
	font-size: 0.95rem;
	width: 100%;
}

/* Comparison Table */
.compare-table {
	border-radius: 12px;
	overflow: hidden;
}
.compare-table th {
	background: var(--tc-surface-hover, #1f2937);
	color: var(--tc-text-primary, #f8fafc);
	font-weight: 600;
	border-color: var(--tc-border, rgba(255, 255, 255, 0.08));
}
.compare-table td {
	border-color: var(--tc-border, rgba(255, 255, 255, 0.08));
	vertical-align: middle;
}
[data-bs-theme="light"] .compare-table th {
	background: #f8fafc;
	color: #1e293b;
	border-color: #e2e8f0;
}
[data-bs-theme="light"] .compare-table td {
	border-color: #e2e8f0;
}

/* Filter Chips */
.maint-chip {
	background: var(--tc-surface, #1e293b);
	border: 1px solid var(--tc-border, rgba(255, 255, 255, 0.1));
	color: var(--tc-text-secondary, #94a3b8);
	font-size: 0.82rem;
	padding: 5px 14px;
	border-radius: 18px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.maint-chip:hover {
	background: var(--tc-surface-hover, #334155);
	color: #ffffff;
}
.maint-chip.active {
	background: #10b981;
	color: #ffffff;
	border-color: #10b981;
	font-weight: 600;
}
[data-bs-theme="light"] .maint-chip {
	background: #f1f5f9;
	color: #64748b;
	border-color: #e2e8f0;
}
[data-bs-theme="light"] .maint-chip:hover {
	background: #e2e8f0;
	color: #0f172a;
}
[data-bs-theme="light"] .maint-chip.active {
	background: #10b981;
	color: #ffffff;
}
