@font-face {
	font-family: "Montserrat";
	src: url("../../assets/montserrat_normal_100-900.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Montserrat";
	background: linear-gradient(135deg, #cccccc 0%, #7f7f7f 100%);
	min-height: 100vh;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.header {
	background: linear-gradient(135deg, #1a73e8, #4285f4);
	color: white;
	padding: 40px;
	text-align: center;
}

.header h1 {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 10px;
}

.header p {
	opacity: 0.9;
	font-size: 1.1rem;
}

.input-section {
	padding: 40px;
	background: white;
}

.loading-message {
	text-align: center;
	padding: 20px;
	color: #7f8c8d;
	font-style: italic;
}

.color-input-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.input-group {
	position: relative;
}

.input-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #2c3e50;
}

.input-group input {
	width: 100%;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s ease;
	font-family: "Montserrat";
}

.input-group input:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.color-preview {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	margin-top: 14px;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	border: 2px solid #e0e0e0;
}

.search-btn {
	width: 100%;
	background: linear-gradient(135deg, #3b78db, #346ac2);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: "Montserrat";
}

.search-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.search-btn:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.results-section {
	padding: 40px;
	background: white;
	display: none;
}

.results-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 20px;
	text-align: center;
}

.color-matches {
	display: grid;
	gap: 20px;
}

.color-match {
	background: white;
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	display: grid;
	grid-template-areas:
		"swatch info"
		"score  score";
	grid-template-columns: 80px 1fr;
	gap: 20px;
	align-items: center;
	transition: all 0.3s ease;
}

.color-match:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.color-swatch {
	grid-area: swatch;
	width: 80px;
	height: 80px;
	border-radius: 12px;
	border: 3px solid #e0e0e0;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.color-swatch:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.color-swatch::after {
	content: "🔗";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 0;
	transition: font-size 0.3s ease;
}

.color-swatch:hover::after {
	font-size: 16px;
}

.color-info {
	grid-area: info;
}

.color-info h3 {
	font-size: 1.2rem;
	color: #2c3e50;
	margin-bottom: 8px;
}

.color-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	font-size: 0.9rem;
	color: #7f8c8d;
}

.match-score {
	grid-area: score;
	text-align: right;
	font-size: 0.9rem;
	color: #27ae60;
	font-weight: 600;
}

.error-message {
	background: #e74c3c;
	color: white;
	padding: 15px;
	border-radius: 10px;
	margin-top: 20px;
	display: none;
}

.footer {
	background: white;
	color: #333;
	text-align: center;
	padding: 20px;
	font-size: 0.9rem;
}

.footer a {
	color: inherit;
	text-decoration: none;
}

.footer a:hover {
	text-decoration: underline;
}

.footer a:visited {
	color: inherit;
}

@media (max-width: 768px) {
	.color-input-group {
		grid-template-columns: 1fr;
	}

	.color-match {
		grid-template-areas:
			"swatch info"
			"score  score";
		grid-template-columns: 80px 1fr;
		gap: 15px;
		align-items: flex-start;
		padding: 20px;
	}

	.color-details {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.match-score {
		margin-top: 5px;
	}
}
