/**
 * Color Picker Widget Styles
 * Rainbow gradient theme
 */

.mte-color-picker {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
	transition: all 0.3s ease;
}

.mte-color-picker__container {
	max-width: 100%;
}

.mte-color-picker__instructions {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-color-picker__instructions-title {
	font-size: 20px;
	font-weight: 700;
	color: #667eea;
	margin: 0 0 15px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #764ba2;
}

.mte-color-picker__instructions-text {
	font-size: 15px;
	color: #4a5568;
	line-height: 1.6;
	margin: 0;
}

.mte-color-picker__main {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-color-picker__picker-section {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}

.mte-color-picker__color-display {
	position: relative;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}

.mte-color-picker__color-display:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mte-color-picker__color-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.mte-color-picker__color-preview {
	width: 100%;
	height: 100%;
	background: #667eea;
	pointer-events: none;
}

.mte-color-picker__formats {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mte-color-picker__format-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mte-color-picker__label {
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mte-color-picker__input-wrapper {
	display: flex;
	gap: 10px;
	align-items: center;
}

.mte-color-picker__input {
	flex: 1;
	padding: 12px 15px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #f7fafc;
	color: #2d3748;
	font-size: 15px;
	font-family: 'Courier New', monospace;
	transition: all 0.3s ease;
}

.mte-color-picker__input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mte-color-picker__copy-btn {
	padding: 12px 20px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.mte-color-picker__copy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mte-color-picker__buttons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 25px;
}

.mte-color-picker__button {
	padding: 15px 40px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	min-width: 180px;
}

.mte-color-picker__button--save {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.mte-color-picker__button--save:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mte-color-picker__button--clear {
	background: linear-gradient(135deg, #a8a8a8 0%, #7f7f7f 100%);
	color: #ffffff;
}

.mte-color-picker__button--clear:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(127, 127, 127, 0.4);
}

.mte-color-picker__palette {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-color-picker__palette-title {
	font-size: 18px;
	font-weight: 700;
	color: #667eea;
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #764ba2;
}

.mte-color-picker__palette-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
	gap: 15px;
}

.mte-color-picker__palette-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 30px;
	color: #718096;
	font-size: 14px;
}

.mte-color-picker__palette-item {
	position: relative;
	width: 100%;
	padding-bottom: 100%;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mte-color-picker__palette-item:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.mte-color-picker__palette-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: #f5576c;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.mte-color-picker__palette-item:hover .mte-color-picker__palette-remove {
	opacity: 1;
}

.mte-color-picker__palette-remove:hover {
	background: #e03e52;
	transform: scale(1.1);
}

.mte-color-picker__info {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-color-picker__info-title {
	font-size: 18px;
	font-weight: 700;
	color: #667eea;
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #764ba2;
}

.mte-color-picker__info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
}

.mte-color-picker__info-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	border-radius: 10px;
	text-align: center;
	transition: all 0.3s ease;
}

.mte-color-picker__info-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.mte-color-picker__info-label {
	font-size: 12px;
	font-weight: 600;
	color: #718096;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mte-color-picker__info-value {
	font-size: 18px;
	font-weight: 700;
	color: #667eea;
	font-family: 'Courier New', monospace;
}

.mte-color-picker__notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 25px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-radius: 50px;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
	font-weight: 600;
	font-size: 14px;
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;
	pointer-events: none;
	z-index: 9999;
	max-width: 400px;
}

.mte-color-picker__notification.show {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 767px) {
	.mte-color-picker {
		padding: 20px;
	}

	.mte-color-picker__instructions,
	.mte-color-picker__main,
	.mte-color-picker__palette,
	.mte-color-picker__info {
		padding: 20px;
	}

	.mte-color-picker__color-display {
		width: 150px;
		height: 150px;
	}

	.mte-color-picker__button {
		width: 100%;
	}

	.mte-color-picker__input-wrapper {
		flex-direction: column;
	}

	.mte-color-picker__copy-btn {
		width: 100%;
	}

	.mte-color-picker__palette-grid {
		grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
		gap: 10px;
	}

	.mte-color-picker__info-grid {
		grid-template-columns: 1fr;
	}

	.mte-color-picker__notification {
		max-width: calc(100% - 40px);
		left: 20px;
		right: 20px;
	}
}
