/**
 * Storefront: FAQs Stylesheet
 *
 * Dedicated styling for the FAQ accordion, category filter pills,
 * animated expansion, concierge support card, and responsive layout.
 *
 * @package Influenzic
 */

/* FAQ Accordion & Filter Bar */
.inzc-sf-faq-container {
	max-width: 800px;
	margin: 0 auto;
}

.inzc-sf-faq-filter-wrap {
	text-align: center;
	margin-bottom: 28px;
}

.inzc-sf-faq-filter-bar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 5px;
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.inzc-sf-faq-filter-bar::-webkit-scrollbar {
	display: none;
}

.inzc-sf-faq-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--inzc-sf-muted-color);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	text-decoration: none;
}

.inzc-sf-faq-pill:hover {
	color: var(--inzc-sf-title-color);
}

.inzc-sf-faq-pill--active {
	background: #6366f1;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.32);
}

.inzc-sf-faq-pill-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	color: var(--inzc-sf-muted-color);
	font-size: 11px;
	font-weight: 700;
	transition: all 0.2s ease;
}

.inzc-sf-faq-pill--active .inzc-sf-faq-pill-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.inzc-sf-faq-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.inzc-sf-faq-item {
	background-color: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.inzc-sf-faq-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3.5px;
	background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 2;
}

.inzc-sf-faq-item:hover {
	border-color: rgba(99, 102, 241, 0.3);
	box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.06);
}

.inzc-sf-faq-item[open] {
	border-color: rgba(99, 102, 241, 0.35);
	box-shadow: 0 12px 30px -8px rgba(99, 102, 241, 0.16), 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.inzc-sf-faq-item[open]::before {
	opacity: 1;
}

.inzc-sf-faq-question {
	padding: 18px 22px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--inzc-sf-title-color);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 16px;
	user-select: none;
	transition: background-color 0.2s ease;
}

.inzc-sf-faq-question::-webkit-details-marker {
	display: none;
}

.inzc-sf-faq-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(99, 102, 241, 0.08);
	color: #6366f1;
	font-size: 12px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.04em;
	flex-shrink: 0;
	transition: all 0.25s ease;
}

.inzc-sf-faq-item[open] .inzc-sf-faq-num {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.inzc-sf-faq-title-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.inzc-sf-faq-text {
	line-height: 1.45;
}

.inzc-sf-faq-cat-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.inzc-sf-faq-cat-tag--creators {
	background: rgba(168, 85, 247, 0.12);
	color: #9333ea;
}

.inzc-sf-faq-cat-tag--brands {
	background: rgba(59, 130, 246, 0.12);
	color: #2563eb;
}

.inzc-sf-faq-cat-tag--escrow {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.inzc-sf-faq-chevron-pill {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--inzc-sf-bg, #f8fafc);
	border: 1px solid var(--inzc-sf-card-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--inzc-sf-muted-color);
	flex-shrink: 0;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inzc-sf-faq-item[open] .inzc-sf-faq-chevron-pill {
	transform: rotate(180deg);
	background: #6366f1;
	border-color: #6366f1;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.inzc-sf-faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
	opacity: 0;
}

.inzc-sf-faq-item[open] .inzc-sf-faq-answer {
	grid-template-rows: 1fr;
	opacity: 1;
}

.inzc-sf-faq-answer-inner {
	overflow: hidden;
	padding: 0 24px 22px 70px;
	font-size: 14.5px;
	color: var(--inzc-sf-body-color);
	line-height: 1.7;
}

.inzc-sf-faq-answer-inner p {
	margin: 0;
}

/* Cards Layout Variation (For subpages such as How It Works) */
.inzc-sf-faq-container--cards {
	max-width: 1100px;
}

.inzc-sf-faq-container--cards .inzc-sf-faq-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

@media (max-width: 860px) {
	.inzc-sf-faq-container--cards .inzc-sf-faq-list {
		grid-template-columns: 1fr;
	}
}

/* Concierge Support Card */
.inzc-sf-faq-support-card {
	margin-top: 36px;
	position: relative;
	border-radius: 16px;
	background: var(--inzc-sf-card-bg);
	border: 1px solid var(--inzc-sf-card-border);
	padding: 24px 28px;
	overflow: hidden;
	box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.05);
}

.inzc-sf-faq-support-card-glow {
	position: absolute;
	top: -50%;
	right: -10%;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.inzc-sf-faq-support-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.inzc-sf-faq-support-avatars {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	flex-shrink: 0;
}

.inzc-sf-avatar-stack {
	display: inline-flex;
	align-items: center;
}

.inzc-sf-stack-item {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid var(--inzc-sf-card-bg, #ffffff);
	color: #ffffff !important;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: -8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
	position: relative;
	flex-shrink: 0;
	line-height: 1;
}

.inzc-sf-stack-item:first-child {
	margin-left: 0;
}

[data-inzc-theme="dark"] .inzc-sf-stack-item {
	border-color: #1e293b;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.inzc-sf-support-online-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: #10b981;
}

.inzc-sf-status-dot-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: inzcPulseDot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes inzcPulseDot {
	0% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	}

	70% {
		box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
	}
}

.inzc-sf-faq-support-info {
	flex: 1;
	min-width: 240px;
}

.inzc-sf-faq-support-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--inzc-sf-title-color);
}

.inzc-sf-faq-support-desc {
	margin: 0;
	font-size: 13.5px;
	color: var(--inzc-sf-muted-color);
	line-height: 1.5;
}

.inzc-sf-faq-support-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.inzc-sf-faq-btn-contact {
	border-color: var(--inzc-sf-card-border);
	color: var(--inzc-sf-title-color);
}

.inzc-sf-faq-btn-contact:hover {
	border-color: #6366f1;
	color: #6366f1;
}

/* Dark Theme FAQ Overrides */
[data-inzc-theme="dark"] .inzc-sf-faq-num {
	background: rgba(99, 102, 241, 0.16);
	color: #a5b4fc;
}

[data-inzc-theme="dark"] .inzc-sf-faq-chevron-pill {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--inzc-sf-card-border);
	color: #94a3b8;
}

[data-inzc-theme="dark"] .inzc-sf-faq-cat-tag--creators {
	background: rgba(168, 85, 247, 0.2);
	color: #d8b4fe;
}

[data-inzc-theme="dark"] .inzc-sf-faq-cat-tag--brands {
	background: rgba(59, 130, 246, 0.2);
	color: #93c5fd;
}

[data-inzc-theme="dark"] .inzc-sf-faq-cat-tag--escrow {
	background: rgba(16, 185, 129, 0.2);
	color: #6ee7b7;
}

[data-inzc-theme="dark"] .inzc-sf-faq-filter-bar {
	background: rgba(15, 23, 42, 0.6);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-inzc-theme="dark"] .inzc-sf-faq-pill {
	color: #94a3b8;
}

[data-inzc-theme="dark"] .inzc-sf-faq-pill:hover {
	color: #f1f5f9;
}

[data-inzc-theme="dark"] .inzc-sf-faq-pill--active {
	background: #6366f1;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

[data-inzc-theme="dark"] .inzc-sf-faq-pill-count {
	background: rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
}

[data-inzc-theme="dark"] .inzc-sf-faq-pill--active .inzc-sf-faq-pill-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

[data-inzc-theme="dark"] .inzc-sf-faq-support-card-glow {
	background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
}

@media (max-width: 640px) {
	.inzc-sf-faq-filter-bar {
		display: flex;
		justify-content: flex-start;
		width: 100%;
		-webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
		mask-image: linear-gradient(to right, #000 88%, transparent 100%);
		padding-right: 28px;
	}

	.inzc-sf-faq-question {
		padding: 16px;
		gap: 12px;
	}

	.inzc-sf-faq-num {
		min-width: 28px;
		height: 28px;
		font-size: 11px;
	}

	.inzc-sf-faq-chevron-pill {
		width: 28px;
		height: 28px;
	}

	.inzc-sf-faq-answer-inner {
		padding: 0 16px 18px 56px;
		font-size: 14px;
	}

	.inzc-sf-faq-support-card {
		padding: 20px;
	}

	.inzc-sf-faq-support-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.inzc-sf-faq-support-actions {
		width: 100%;
		flex-direction: column;
	}

	.inzc-sf-faq-support-actions .inzc-sf-btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
}