/**
 * Generic Swatch Accordion Styles — Nouva Dark Cinematic
 * Architecture: Feature-Sliced Design (FSD: src/shared/ui/swatch-accordion/style.css)
 *
 * Mobile-First Design:
 * - Closed state: Clean solid card bar with index, full uncut title, and a clear "+" icon (NO background image).
 * - Open state: Expands to a generous, readable format with high-resolution featured image cover,
 *   badge, stat indicator, full description, and accessible CTA button.
 */

.fc-swatch-accordion {
	--sa-accent: var(--sand, #D4A03E);
	--sa-accent-glow: rgba(212, 160, 62, 0.45);
	--sa-card-bg: var(--surface-card, #001E38);
	--sa-border: rgba(212, 160, 62, 0.22);
	--sa-border-active: rgba(212, 160, 62, 0.6);
	--sa-text-muted: var(--text-muted, #94B0CC);

	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Vertical Accordion Track (Natural, non-squished height)
   -------------------------------------------------------------------------- */
.fc-swatch-accordion__track {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 12px;
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Individual Swatch Item
   -------------------------------------------------------------------------- */
.fc-swatch-item {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--sa-border);
	background: rgba(0, 24, 46, 0.75);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
	transition: border-color 0.3s ease,
	            box-shadow 0.35s ease,
	            background 0.3s ease;
	outline: none;
}

.fc-swatch-item:focus-within {
	border-color: rgba(212, 160, 62, 0.5);
}

.fc-swatch-item--active {
	background: linear-gradient(165deg, rgba(0, 44, 85, 0.95) 0%, rgba(0, 26, 50, 0.98) 60%, rgba(0, 14, 28, 1) 100%);
	border-color: var(--sa-border-active);
	box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(212, 160, 62, 0.35);
}

/* --------------------------------------------------------------------------
   Closed State Header Button (Clickable trigger bar)
   -------------------------------------------------------------------------- */
.fc-swatch-item__header-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1.15rem 1.25rem;
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	color: #FFFFFF;
	gap: 1rem;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	transition: background 0.2s ease;
}

.fc-swatch-item__header-btn:hover {
	background: rgba(255, 255, 255, 0.03);
}

.fc-swatch-item__header-left {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex: 1;
	min-width: 0;
}

/* Step Number Pill */
.fc-swatch-item__num {
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--sa-accent);
	background: rgba(0, 14, 28, 0.8);
	border: 1px solid rgba(212, 160, 62, 0.3);
	border-radius: 8px;
	padding: 0.25rem 0.55rem;
	flex-shrink: 0;
	line-height: 1;
}

/* Category Title — Full, uncropped, readable */
.fc-swatch-item__title {
	font-size: 1.08rem;
	font-weight: 600;
	line-height: 1.35;
	color: #FFFFFF;
	margin: 0;
	white-space: normal;
	word-break: break-word;
	overflow: visible;
}

.fc-swatch-item--active .fc-swatch-item__title {
	color: #FFFFFF;
}

/* Header Right: Plus (+) / Minus (−) Toggle Icon */
.fc-swatch-item__header-right {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.fc-swatch-item__toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(0, 18, 36, 0.7);
	border: 1px solid rgba(212, 160, 62, 0.3);
	color: var(--sa-accent);
	transition: background 0.25s ease,
	            border-color 0.25s ease,
	            box-shadow 0.25s ease,
	            transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-swatch-item--active .fc-swatch-item__toggle-icon {
	background: rgba(0, 74, 141, 0.85);
	border-color: var(--sa-accent);
	box-shadow: 0 0 12px var(--sa-accent-glow);
}

/* Seamless plus (+) to minus (−) transition */
.fc-swatch-item__toggle-vert {
	transform-origin: center;
	transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-swatch-item--active .fc-swatch-item__toggle-vert {
	opacity: 0;
	transform: scaleY(0);
}

/* --------------------------------------------------------------------------
   Expanded Drawer (Large, generous, readable format)
   -------------------------------------------------------------------------- */
.fc-swatch-item__drawer {
	display: none;
	width: 100%;
	box-sizing: border-box;
}

.fc-swatch-item--active .fc-swatch-item__drawer {
	display: block;
	animation: swatchDrawerFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.fc-swatch-item__drawer-inner {
	display: flex;
	flex-direction: column;
	gap: 1.05rem;
	padding: 0 1.25rem 1.45rem 1.25rem;
	box-sizing: border-box;
}

/* Prominent Featured Media Cover (Visible ONLY when open) */
.fc-swatch-item__featured-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9.5;
	max-height: 230px;
	border-radius: 12px;
	overflow: hidden;
	background: #001224;
	border: 1px solid rgba(212, 160, 62, 0.25);
	box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.65);
}

.fc-swatch-item__featured-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	filter: saturate(1.1) brightness(0.95);
}

.fc-swatch-item__featured-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 18, 36, 0.1) 0%, rgba(0, 24, 46, 0.5) 60%, rgba(0, 14, 28, 0.9) 100%);
	pointer-events: none;
}

.fc-swatch-item__featured-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	font-family: var(--font-sans, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #FFFFFF;
	background: rgba(0, 74, 141, 0.9);
	border: 1px solid rgba(212, 160, 62, 0.45);
	padding: 0.3rem 0.75rem;
	border-radius: 6px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 2;
}

/* Stat Box Pill */
.fc-swatch-item__stat-pill {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	padding: 0.75rem 1rem;
	background: rgba(0, 18, 36, 0.7);
	border: 1px solid rgba(212, 160, 62, 0.25);
	border-left: 3.5px solid var(--sa-accent);
	border-radius: 10px;
	width: 100%;
	box-sizing: border-box;
}

.fc-swatch-item__stat-value {
	font-size: 1.38rem;
	font-weight: 700;
	color: var(--sa-accent);
	letter-spacing: -0.02em;
}

.fc-swatch-item__stat-label {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--sa-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Full Readable Description */
.fc-swatch-item__desc {
	font-size: 0.92rem;
	line-height: 1.6;
	color: #C5D8EB;
	margin: 0;
	overflow: visible;
}

/* CTA Action Button — 100% visible, touch-friendly */
.fc-swatch-item__action {
	padding-top: 0.25rem;
}

.fc-swatch-item__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.85rem 1.35rem;
	min-height: 48px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
	background: linear-gradient(135deg, #004A8D 0%, #002C55 100%);
	border: 1px solid rgba(212, 160, 62, 0.4);
	color: #FFFFFF;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.fc-swatch-item__btn:hover {
	background: linear-gradient(135deg, #005FA5 0%, #00376B 100%);
	border-color: var(--sa-accent);
	transform: translateY(-1px);
}
