.rune-converter-wrapper {
	margin: 1.5rem 0;
}

.rune-converter-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(139, 69, 19, 0.03) 0%, rgba(184, 134, 11, 0.03) 100%);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

.rune-original-text {
	font-size: 0.875rem;
	color: #6b7280;
	font-style: italic;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.rune-container.dark .rune-original-text {
	color: #9ca3af;
	border-bottom-color: #4b5563;
}

.rune-output {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	justify-content: center;
	line-height: 1.6;
	letter-spacing: 0.2em;
	padding: 1rem 0;
	font-weight: 500;
}

.rune-char {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	transition: all 0.2s ease;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	position: relative;
}

.rune-char:hover {
	background-color: rgba(184, 134, 11, 0.1);
	transform: scale(1.05);
}

.rune-char:hover::after {
	content: attr(title);
	position: absolute;
	bottom: -1.75rem;
	left: 50%;
	transform: translateX(-50%);
	background-color: #1f2937;
	color: #fff;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	font-size: 0.75rem;
	white-space: nowrap;
	z-index: 10;
	pointer-events: none;
}

.rune-container.dark .rune-char:hover {
	background-color: rgba(184, 134, 11, 0.15);
}

.rune-meanings {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid #e5e7eb;
	margin-top: 0.5rem;
}

.rune-container.dark .rune-meanings {
	border-top-color: #4b5563;
}

.rune-meaning-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 6px;
	border-left: 3px solid #b8860b;
}

.rune-container.dark .rune-meaning-item {
	background-color: rgba(255, 255, 255, 0.05);
	border-left-color: #fbbf24;
}

.rune-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	min-width: 2rem;
	color: #8b4513;
	font-weight: 600;
}

.rune-container.dark .rune-symbol {
	color: #fbbf24;
}

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

.rune-container.dark .rune-detail {
	color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
	.rune-converter-container {
		padding: 1rem;
		font-size: 0.9rem;
	}

	.rune-output {
		font-size: 0.9em;
	}

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

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

	.rune-original-text {
		color: #9ca3af;
		border-bottom-color: #4b5563;
	}

	.rune-char:hover {
		background-color: rgba(184, 134, 11, 0.15);
	}

	.rune-meaning-item {
		background-color: rgba(255, 255, 255, 0.05);
		border-left-color: #fbbf24;
	}

	.rune-symbol {
		color: #fbbf24;
	}

	.rune-detail {
		color: #d1d5db;
	}
}

/* Gutenberg block editor styles */
.wp-block-rune-converter-rune-converter-block {
	margin: 1.5rem 0;
}

.wp-block-rune-converter-rune-converter-block .rune-converter-container {
	margin: 0;
}
