/**
 * Generic Touch Carousel Component Styles — Nouva Dark Cinematic
 * Architecture: Feature-Sliced Design (FSD: src/shared/ui/touch-carousel/style.css)
 *
 * Implements hardware-accelerated, touch-first scroll-snap carousel with
 * zero layout shift, pagination dots, step counter, and accessible buttons.
 */

.fc-touch-carousel {
	--tc-accent: var(--sand, #D4A03E);
	--tc-accent-glow: rgba(212, 160, 62, 0.4);
	--tc-card-bg: var(--surface-card, #001E38);
	--tc-border: rgba(212, 160, 62, 0.22);
	--tc-dot-inactive: rgba(255, 255, 255, 0.22);

	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

/* --------------------------------------------------------------------------
   Header / Controls Bar
   -------------------------------------------------------------------------- */
.fc-touch-carousel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.5rem;
}

.fc-touch-carousel__counter {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 9999px;
	background: rgba(0, 18, 36, 0.75);
	border: 1px solid var(--tc-border);
	font-family: var(--font-sans, sans-serif);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--tc-accent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.fc-touch-carousel__counter-sep {
	opacity: 0.45;
	color: #FFFFFF;
}

.fc-touch-carousel__counter-total {
	color: var(--text-muted, #94B0CC);
}

.fc-touch-carousel__arrows {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.fc-touch-carousel__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(0, 30, 56, 0.85);
	border: 1px solid var(--tc-border);
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
	outline: none;
}

.fc-touch-carousel__arrow:hover:not(:disabled) {
	background: rgba(0, 74, 141, 0.9);
	border-color: var(--tc-accent);
	transform: scale(1.05);
}

.fc-touch-carousel__arrow:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Scroll-Snap Viewport & Track
   -------------------------------------------------------------------------- */
.fc-touch-carousel__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.fc-touch-carousel__track {
	display: flex;
	gap: 1.15rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0.5rem 0.25rem 1rem 0.25rem;
	box-sizing: border-box;
}

.fc-touch-carousel__track::-webkit-scrollbar {
	display: none;
}

.fc-touch-carousel__slide {
	flex: 0 0 88%;
	max-width: 380px;
	min-width: 280px;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	box-sizing: border-box;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (min-width: 520px) {
	.fc-touch-carousel__slide {
		flex: 0 0 78%;
	}
}

/* --------------------------------------------------------------------------
   Pagination Dots
   -------------------------------------------------------------------------- */
.fc-touch-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding-top: 0.25rem;
}

.fc-touch-carousel__dot {
	width: 8px;
	height: 8px;
	border-radius: 9999px;
	background: var(--tc-dot-inactive);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.fc-touch-carousel__dot--active {
	width: 26px;
	background: var(--tc-accent);
	box-shadow: 0 0 10px var(--tc-accent-glow);
}

/* --------------------------------------------------------------------------
   RESEARCH CATEGORY CARD (High-Fidelity Mobile Presentation)
   -------------------------------------------------------------------------- */
.fc-research-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-xl, 20px);
	overflow: hidden;
	background: linear-gradient(165deg, rgba(0, 36, 70, 0.95) 0%, rgba(0, 24, 46, 0.98) 60%, rgba(0, 14, 28, 1) 100%);
	border: 1px solid var(--tc-border);
	box-shadow: 0 12px 30px -8px rgba(0, 4, 12, 0.65), 0 0 0 1px rgba(212, 160, 62, 0.12);
	height: 100%;
	box-sizing: border-box;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Media Cover — Crisp, High Contrast & Photographic */
.fc-research-cat-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9.5;
	overflow: hidden;
	background: #001224;
}

.fc-research-cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	opacity: 0.92;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-research-cat-card:hover .fc-research-cat-card__img {
	transform: scale(1.04);
}

.fc-research-cat-card__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #002244 0%, #004A8D 100%);
}

.fc-research-cat-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 18, 36, 0.15) 0%, rgba(0, 24, 46, 0.75) 75%, rgba(0, 20, 40, 0.98) 100%);
	pointer-events: none;
}

.fc-research-cat-card__counter {
	position: absolute;
	top: 12px;
	right: 12px;
	font-family: var(--font-sans, sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--tc-accent);
	background: rgba(0, 14, 28, 0.8);
	border: 1px solid rgba(212, 160, 62, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 0.25rem 0.6rem;
	border-radius: 9999px;
	z-index: 2;
}

.fc-research-cat-card__badge {
	position: absolute;
	bottom: 12px;
	left: 14px;
	font-family: var(--font-sans, sans-serif);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #FFFFFF;
	background: rgba(0, 74, 141, 0.85);
	border: 1px solid rgba(212, 160, 62, 0.4);
	padding: 0.25rem 0.65rem;
	border-radius: 6px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 2;
}

/* Card Body */
.fc-research-cat-card__body {
	padding: 1.25rem 1.25rem 1.4rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}

.fc-research-cat-card__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.fc-research-cat-card__icon-wrap {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--tc-border);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fc-research-cat-card__icon {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fc-research-cat-card__title {
	font-size: 1.18rem;
	font-weight: 600;
	line-height: 1.3;
	color: #FFFFFF;
	margin: 0;
}

/* Stat Highlight Box */
.fc-research-cat-card__stat-box {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.65rem 0.9rem;
	background: rgba(0, 18, 36, 0.6);
	border: 1px solid rgba(212, 160, 62, 0.18);
	border-radius: 12px;
	border-left: 3px solid var(--tc-accent);
}

.fc-research-cat-card__stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--tc-accent);
	letter-spacing: -0.02em;
}

.fc-research-cat-card__stat-label {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--text-muted, #94B0CC);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fc-research-cat-card__desc {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--text-muted, #94B0CC);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fc-research-cat-card__footer {
	margin-top: auto;
	padding-top: 0.5rem;
}

.fc-research-cat-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.75rem 1.25rem;
	min-height: 44px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
	box-sizing: border-box;
}
