/**
 * Voxel City Filter - v9.0
 * Базовые структурные стили (визуал через Elementor)
 */

/* === RESET === */
.vcf-wrapper * {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

/* === TRIGGER BUTTON === */
.vcf-trigger {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	font-family: inherit;
	transition: all 0.2s ease;
	/* Дефолты для Elementor */
	background: #fff;
	border: 1px solid #e2e8f0;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	color: #334155;
}

.vcf-trigger:active {
	transform: scale(0.98);
}

.vcf-trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.vcf-trigger-icon svg {
	width: 100%;
	height: 100%;
	transition: fill 0.2s ease, stroke 0.2s ease;
}

.vcf-trigger-icon i {
	font-size: inherit;
	transition: color 0.2s ease;
}

.vcf-trigger-text {
	font-weight: 600;
}

/* === MODAL === */
.vcf-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2147483647;
	display: none;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.2s;
}

.vcf-modal.open {
	display: flex;
	opacity: 1;
}

/* === BACKDROP === */
.vcf-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2147483646;
	/* Дефолт для Elementor */
	background: rgba(0, 0, 0, 0.5);
}

/* === MODAL CARD === */
.vcf-modal-card {
	position: relative;
	z-index: 2147483647;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(20px);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	/* Дефолты */
	background: #fff;
	width: 100%;
	height: 100%;
}

.vcf-modal.open .vcf-modal-card {
	transform: translateY(0);
}

@media (min-width: 640px) {
	.vcf-modal-card {
		width: 480px;
		height: 650px;
		max-height: 90vh;
		border-radius: 20px;
		box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	}
}

/* === HEADER === */
.vcf-modal-header {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	flex-shrink: 0;
	position: relative;
	z-index: 2147483647;
	/* Дефолты */
	border-bottom: 1px solid #f1f5f9;
}

.vcf-header-title {
	font-size: 18px;
	font-weight: 600;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	pointer-events: none;
	/* Дефолт */
	color: #0f172a;
}

.vcf-btn-icon {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	transition: all 0.2s;
	/* Дефолт */
	color: #64748b;
}

.vcf-btn-icon svg {
	width: 24px;
	height: 24px;
}

.vcf-btn-icon:hover {
	background-color: #f1f5f9;
	color: #0f172a;
}

.vcf-btn-back {
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s, visibility 0.2s;
}

.vcf-btn-back.visible {
	visibility: visible;
	opacity: 1;
}

/* === SLIDER === */
.vcf-slider-viewport {
	flex: 1;
	position: relative;
	overflow: hidden;
	z-index: 2147483645;
}

.vcf-slider-track {
	display: flex;
	width: 200%;
	height: 100%;
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	transform: translateX(0);
}

.vcf-slider-track.slide-left {
	transform: translateX(-50%);
}

.vcf-view-slide {
	width: 50%;
	height: 100%;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* === TOP CONTAINER === */
.vcf-top-container {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	/* Дефолты */
	padding: 16px;
	gap: 12px;
	background: #fff;
	border-bottom: 1px solid #f1f5f9;
}

.vcf-search-wrap {
	position: relative;
}

.vcf-search-input {
	width: 100%;
	outline: none;
	font-family: inherit;
	/* Дефолты */
	padding: 12px 40px 12px 16px;
	background: #f1f5f9;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	color: #0f172a;
}

.vcf-search-input::placeholder {
	color: #94a3b8;
}

.vcf-search-input:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.vcf-search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	width: 18px;
	height: 18px;
	/* Дефолт */
	color: #94a3b8;
}

/* === AUTO DETECT BUTTON === */
.vcf-btn-auto {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	/* Дефолты */
	padding: 12px;
	border-radius: 12px;
	background-color: #eef2ff;
	color: #4f46e5;
	font-weight: 600;
	border: none;
	font-size: 15px;
}

.vcf-btn-auto:hover {
	background-color: #e0e7ff;
}

.vcf-btn-auto:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.vcf-nav-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.vcf-spinner {
	width: 18px;
	height: 18px;
	animation: vcf-spin 1s linear infinite;
}

@keyframes vcf-spin {
	100% { transform: rotate(360deg); }
}

/* === LIST === */
.vcf-list-container {
	/* Дефолт */
	padding: 0 16px 100px 16px;
}

.vcf-view-sub .vcf-list-container {
	padding-top: 16px;
}

.vcf-list-item {
	width: 100%;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.1s;
	/* Дефолты */
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 17px;
	color: #334155;
}

.vcf-list-item:active {
	opacity: 0.7;
}

.vcf-list-item:last-child {
	border-bottom: none;
}

.vcf-item-text {
	flex: 1;
	font-weight: 500;
}

.vcf-item-text.vcf-bold {
	font-weight: 600;
	/* Дефолт */
	color: #4f46e5;
}

.vcf-icon-check {
	width: 18px;
	height: 18px;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.2s;
	flex-shrink: 0;
	/* Дефолт */
	color: #4f46e5;
}

.vcf-list-item.selected .vcf-icon-check {
	opacity: 1;
	transform: scale(1);
}

.vcf-list-item.selected .vcf-item-text {
	color: #4f46e5;
}

.vcf-icon-chevron {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	/* Дефолт */
	color: #cbd5e1;
}

/* === FOOTER === */
.vcf-modal-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 2147483647;
	/* Дефолты */
	padding: 16px;
	background: rgba(255, 255, 255, 0.95);
	border-top: 1px solid #f1f5f9;
}

.vcf-btn-apply {
	width: 100%;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.2s;
	/* Дефолты */
	background: #4f46e5;
	color: white;
	border: none;
	padding: 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
}

.vcf-btn-apply:hover {
	opacity: 0.9;
}

.vcf-btn-apply:active {
	opacity: 0.8;
}

/* === SCROLLBAR === */
.vcf-view-slide::-webkit-scrollbar {
	width: 6px;
}

.vcf-view-slide::-webkit-scrollbar-track {
	background: transparent;
}

.vcf-view-slide::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 10px;
}

.vcf-view-slide::-webkit-scrollbar-thumb:hover {
	background-color: #94a3b8;
}

.vcf-view-slide {
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

/* === SAFE AREAS (iPhone X+) === */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
	.vcf-modal-footer {
		padding-bottom: calc(16px + env(safe-area-inset-bottom));
	}
	
	.vcf-modal-header {
		padding-top: env(safe-area-inset-top);
	}
}
