.rune-converter-tool-wrapper {
	padding: 2rem 0;
	background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(184, 134, 11, 0.02) 100%);
	min-height: 100vh;
}

.rune-converter-tool-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Header */
.rune-converter-tool-header {
	text-align: center;
	padding: 2rem 1rem 1rem;
	border-bottom: 2px solid #f0e5d8;
}

.rune-converter-tool-header h1 {
	font-size: 2.5rem;
	color: #8b4513;
	margin: 0 0 0.5rem 0;
	font-weight: 700;
}

.rune-converter-tool-subtitle {
	color: #6b7280;
	font-size: 1.1rem;
	margin: 0;
	font-style: italic;
}

/* Content */
.rune-converter-tool-content {
	padding: 2rem;
}

/* Input Section */
.rune-converter-input-section {
	margin-bottom: 2rem;
}

.rune-converter-input-label {
	display: block;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.rune-converter-input-field {
	width: 100%;
	padding: 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	resize: vertical;
	transition: all 0.3s ease;
	background: #fafafa;
}

.rune-converter-input-field:focus {
	outline: none;
	border-color: #b8860b;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.rune-converter-input-help {
	margin-top: 0.5rem;
	color: #6b7280;
	font-size: 0.875rem;
}

/* Output Section */
.rune-converter-output-section {
	margin-bottom: 2rem;
}

.rune-converter-output-label {
	display: block;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.rune-converter-output-display {
	padding: 2rem;
	background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 48px;
	text-align: center;
	line-height: 1.8;
	letter-spacing: 0.2em;
	color: #8b4513;
	font-weight: 600;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	word-wrap: break-word;
	font-feature-settings: 'liga' off;
}

.rune-converter-output-display:empty::before {
	content: attr(data-placeholder);
	color: #d1d5db;
}

/* Breakdown Section */
.rune-converter-breakdown-section {
	margin-bottom: 2rem;
}

.rune-converter-breakdown-label {
	display: block;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

.rune-converter-breakdown-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.75rem;
}

.rune-breakdown-item {
	padding: 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-align: center;
	transition: all 0.2s ease;
}

.rune-breakdown-item:hover {
	background: #f0e5d8;
	border-color: #b8860b;
	box-shadow: 0 4px 12px rgba(184, 134, 11, 0.15);
}

.rune-breakdown-char {
	font-size: 0.875rem;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.rune-breakdown-rune {
	font-size: 2rem;
	color: #8b4513;
	margin-bottom: 0.5rem;
}

.rune-breakdown-meaning {
	display: block;
	font-size: 0.75rem;
	color: #6b7280;
	line-height: 1.3;
}

/* Actions */
.rune-converter-actions {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.rune-converter-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 140px;
}

.rune-converter-btn-primary {
	background: linear-gradient(135deg, #b8860b 0%, #8b4513 100%);
	color: white;
}

.rune-converter-btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(184, 134, 11, 0.3);
}

.rune-converter-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.rune-converter-btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.rune-converter-btn-secondary:hover {
	background: #e5e7eb;
	border-color: #9ca3af;
}

.rune-converter-copy-feedback {
	padding: 0.5rem 1rem;
	background: #10b981;
	color: white;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	animation: slideIn 0.3s ease;
}

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

/* Settings */
.rune-converter-settings-toggle {
	margin-bottom: 1.5rem;
	text-align: center;
}

.rune-converter-toggle-btn {
	padding: 0.5rem 1rem;
	background: transparent;
	color: #6b7280;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.rune-converter-toggle-btn:hover {
	background: #f9fafb;
	color: #374151;
	border-color: #9ca3af;
}

.rune-converter-settings-panel {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	animation: slideIn 0.3s ease;
}

.rune-converter-settings-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.rune-converter-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	color: #374151;
	user-select: none;
}

.rune-converter-checkbox-label input[type="checkbox"] {
	margin-right: 0.75rem;
	cursor: pointer;
	width: 18px;
	height: 18px;
	accent-color: #b8860b;
}

.rune-converter-range-label {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #374151;
	font-weight: 500;
}

.rune-converter-range-label input[type="range"] {
	flex: 1;
	min-width: 200px;
	height: 6px;
	border-radius: 3px;
	background: #d1d5db;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.rune-converter-range-label input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #b8860b;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rune-converter-range-label input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #b8860b;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#rune-converter-font-size-value {
	min-width: 45px;
	text-align: right;
	font-weight: 600;
	color: #8b4513;
}

/* Reference Guide */
.rune-converter-reference-section {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #f0e5d8;
}

.rune-converter-reference-section h3 {
	color: #8b4513;
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.rune-converter-reference-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.rune-converter-reference-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: #f9fafb;
	border-radius: 8px;
	border-left: 3px solid #b8860b;
}

.rune-converter-reference-rune {
	font-size: 1.75rem;
	color: #8b4513;
	min-width: 40px;
	text-align: center;
}

.rune-converter-reference-text {
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.4;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
	.rune-converter-tool-wrapper {
		background: linear-gradient(135deg, rgba(139, 69, 19, 0.08) 0%, rgba(184, 134, 11, 0.08) 100%);
	}

	.rune-converter-tool-container {
		background: #1f2937;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	}

	.rune-converter-tool-header {
		border-bottom-color: #374151;
	}

	.rune-converter-tool-header h1 {
		color: #fbbf24;
	}

	.rune-converter-tool-subtitle {
		color: #9ca3af;
	}

	.rune-converter-input-label,
	.rune-converter-output-label,
	.rune-converter-breakdown-label {
		color: #f3f4f6;
	}

	.rune-converter-input-field {
		background: #374151;
		border-color: #4b5563;
		color: #f3f4f6;
	}

	.rune-converter-input-field:focus {
		background: #111827;
		border-color: #fbbf24;
		box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
	}

	.rune-converter-input-help {
		color: #9ca3af;
	}

	.rune-converter-output-display {
		background: linear-gradient(135deg, rgba(139, 69, 19, 0.15) 0%, rgba(184, 134, 11, 0.15) 100%);
		border-color: #4b5563;
		color: #fbbf24;
	}

	.rune-breakdown-item {
		background: #374151;
		border-color: #4b5563;
		color: #f3f4f6;
	}

	.rune-breakdown-item:hover {
		background: #4b5563;
		border-color: #fbbf24;
	}

	.rune-breakdown-char {
		color: #d1d5db;
	}

	.rune-breakdown-rune {
		color: #fbbf24;
	}

	.rune-breakdown-meaning {
		color: #9ca3af;
	}

	.rune-converter-btn-secondary {
		background: #374151;
		color: #f3f4f6;
		border-color: #4b5563;
	}

	.rune-converter-btn-secondary:hover {
		background: #4b5563;
		border-color: #6b7280;
	}

	.rune-converter-toggle-btn {
		background: #374151;
		color: #9ca3af;
		border-color: #4b5563;
	}

	.rune-converter-toggle-btn:hover {
		background: #4b5563;
		color: #f3f4f6;
		border-color: #6b7280;
	}

	.rune-converter-settings-panel {
		background: #374151;
		border-color: #4b5563;
	}

	.rune-converter-checkbox-label,
	.rune-converter-range-label {
		color: #f3f4f6;
	}

	.rune-converter-range-label input[type="range"] {
		background: #4b5563;
	}

	#rune-converter-font-size-value {
		color: #fbbf24;
	}

	.rune-converter-reference-section {
		border-top-color: #374151;
	}

	.rune-converter-reference-section h3 {
		color: #fbbf24;
	}

	.rune-converter-reference-item {
		background: #374151;
		border-left-color: #fbbf24;
	}

	.rune-converter-reference-rune {
		color: #fbbf24;
	}

	.rune-converter-reference-text {
		color: #d1d5db;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.rune-converter-tool-container {
		border-radius: 0;
	}

	.rune-converter-tool-header h1 {
		font-size: 1.75rem;
	}

	.rune-converter-tool-content {
		padding: 1.5rem 1rem;
	}

	.rune-converter-output-display {
		font-size: 2rem;
		min-height: 80px;
	}

	.rune-converter-breakdown-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}

	.rune-converter-reference-grid {
		grid-template-columns: 1fr;
	}

	.rune-converter-actions {
		flex-direction: column;
	}

	.rune-converter-btn {
		width: 100%;
	}
}
