:root {
	--color-bg: #4a4f31;
	--color-bg-dark: #3a3e26;
	--color-gold: #c49a6c;
	--color-gold-hover: #d8b084;
	--color-text: #f5f5f0;
	--color-text-muted: #d1d3c4;
	--color-error: #e57373;
	--color-success: #d9e7bd;
	--font-heading: "Playfair Display", Georgia, serif;
	--font-body: "Inter", Arial, sans-serif;
	--border-radius: 6px;
	--transition: all 0.2s ease;
}

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

body {
	min-height: 100vh;
	font-family: var(--font-body);
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.app-container {
	width: min(100%, 640px);
	min-height: 100vh;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.header {
	text-align: center;
	padding: 40px 0 20px;
}

.logo-img {
	display: block;
	width: min(160px, 48vw);
	height: auto;
	margin: 0 auto;
}

.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 20px;
}

.search-section {
	text-align: center;
	background: var(--color-bg-dark);
	padding: 30px 20px;
	border-radius: 8px;
	border: 1px solid rgba(196, 154, 108, 0.15);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.title {
	font-family: var(--font-heading);
	color: var(--color-gold);
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.subtitle {
	color: var(--color-text-muted);
	font-size: 0.9rem;
	margin-bottom: 24px;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.batch-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(196, 154, 108, 0.3);
	border-radius: var(--border-radius);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: var(--transition);
	outline: none;
}

.batch-input::placeholder {
	color: rgba(209, 211, 196, 0.5);
}

.batch-input:focus {
	border-color: var(--color-gold);
	background: rgba(255, 255, 255, 0.08);
}

.query-btn {
	padding: 14px 24px;
	background-color: var(--color-gold);
	color: var(--color-bg-dark);
	border: 0;
	border-radius: var(--border-radius);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.query-btn:hover:not(:disabled) {
	background-color: var(--color-gold-hover);
	transform: translateY(-1px);
}

.query-btn:active:not(:disabled) {
	transform: translateY(0);
}

.query-btn:disabled {
	cursor: wait;
	opacity: 0.72;
}

.error-msg {
	min-height: 20px;
	margin-top: 12px;
	color: var(--color-error);
	font-size: 0.85rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.error-msg.visible {
	opacity: 1;
}

.instruction-section {
	text-align: center;
}

.instruction-img {
	width: 100%;
	max-width: 615px;
	height: auto;
}

.result-section {
	margin-top: 20px;
	transition: var(--transition);
}

.result-section.hidden {
	display: none;
}

.result-title {
	font-family: var(--font-heading);
	color: var(--color-gold);
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 10px;
	text-align: center;
}

.result-summary {
	min-height: 22px;
	margin-bottom: 20px;
	color: var(--color-success);
	text-align: center;
	font-size: 0.9rem;
}

.image-gallery {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.batch-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid rgba(196, 154, 108, 0.2);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	animation: fade-in 0.35s ease-in-out;
	background: rgba(0, 0, 0, 0.12);
}

.bottom-search-container {
	margin-top: 50px;
	text-align: center;
}

.bottom-search-container .subtitle {
	margin-bottom: 12px;
}

.footer {
	text-align: center;
	padding: 30px 0;
	margin-top: auto;
	color: var(--color-text-muted);
	font-size: 0.8rem;
	opacity: 0.7;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 480px) {
	.input-group {
		flex-direction: row;
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
