/*
 * Price Filter Component Styles - One of One Collectables
 * Clean, accessible price filtering interface
 */

/* === PRICE FILTER BUTTON === */
.price-filter-container {
	display: inline-block;
	width: auto;
}

.btn-filter {
	width: auto !important;
	min-width: 170px !important;
	background: #0d1b2a;
	color: white !important;
	border: none !important;
	padding: 8px 12px !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	display: inline-flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	text-align: left !important;
	margin-bottom: 1.618em;
}

.btn-filter:hover {
	background: #1a2332 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 8px rgba(13, 27, 42, 0.3) !important;
}

#price-filter-count {
	background: rgba(255, 255, 255, 0.2) !important;
	padding: 2px 8px !important;
	border-radius: 12px !important;
	font-size: 0.8rem !important;
}

/* === FILTER MODAL CONTAINER === */
.filter-modal-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto;
}

.filter-modal-container.show {
	display: flex !important;
}

/* === FILTER MODAL === */
.filter-modal {
	width: 100%;
	max-width: 400px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* === MODAL HEADER === */
.filter-modal-header {
	background: #0d1b2a;
	color: white;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.filter-modal-header h3 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
}

.btn-close {
	background: none !important;
	border: none !important;
	color: white !important;
	font-size: 1.5rem !important;
	cursor: pointer !important;
	padding: 0 !important;
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.2s ease !important;
}

.btn-close:hover {
	background: rgba(255, 255, 255, 0.1) !important;
}

/* === PRICE RANGE DISPLAY === */
.price-range-display {
	background: #f8f9fa;
	padding: 15px 20px;
	text-align: center;
	border-bottom: 1px solid #e9ecef;
}

#price-range-display {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0d1b2a;
}

/* === PRICE SLIDERS === */
.price-sliders {
	padding: 25px 20px;
}

.slider-container {
	margin-bottom: 25px;
}

.slider-container label {
	display: block;
	margin-bottom: 12px;
	font-weight: 600;
	color: #374151;
	font-size: 0.9rem;
}

.slider-container input[type='range'] {
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: #e9ecef;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.2s ease;
}

.slider-container input[type='range']::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0d1b2a;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(13, 27, 42, 0.3);
	transition: all 0.2s ease;
}

.slider-container input[type='range']::-webkit-slider-thumb:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(13, 27, 42, 0.4);
}

.slider-container input[type='range']::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0d1b2a;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 6px rgba(13, 27, 42, 0.3);
}

/* === PRICE INPUTS === */
.price-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding: 0 20px;
	margin-bottom: 30px;
}

.price-inputs div {
	display: flex;
	flex-direction: column;
}

.price-inputs label {
	margin-bottom: 8px;
	font-weight: 600;
	color: #374151;
	font-size: 0.9rem;
}

.price-inputs input[type='number'] {
	padding: 10px 12px !important;
	border: 2px solid #e9ecef !important;
	border-radius: 6px !important;
	font-size: 1rem !important;
	transition: border-color 0.2s ease !important;
	background: white !important;
}

.price-inputs input[type='number']:focus {
	outline: none !important;
	border-color: #0d1b2a;
	box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1) !important;
}

/* === MODAL ACTIONS === */
.filter-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 20px;
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

/* Ensure modal-specific Clear buttons are readable on hover */
#clear-sport-filters,
.filter-modal-actions .btn-secondary {
	background: transparent;
	color: #0d1b2a;
	border: 2px solid #0d1b2a;
}

#clear-sport-filters:hover,
.filter-modal-actions .btn-secondary:hover {
	background: #0d1b2a !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(13, 27, 42, 0.15) !important;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
	.filter-modal {
		width: 95%;
		max-height: 90vh;
	}

	.price-sliders {
		padding: 20px 15px;
	}

	.price-inputs {
		padding: 0 15px;
	}

	.filter-modal-actions {
		padding: 15px;
		grid-template-columns: 1fr;
		gap: 8px;
	}
}
