/* SanskritSchool Shabdkosh Translator Styles */
.ss-translator-wrap,
.ss-word-single {
	max-width: 960px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
	color: #1f2937;
	box-sizing: border-box;
}

.ss-translator-wrap *,
.ss-word-single * {
	box-sizing: border-box;
}

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

.ss-translator-card,
.ss-single-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
	overflow: visible;
}

/* Google Translate-style top language bar */
.ss-lang-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 14px 14px 0 0;
}

.ss-lang-select-group {
	flex: 1;
}

.ss-lang-select {
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-lang-select:focus {
	border-color: #c2410c;
	box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14);
}

.ss-swap-btn {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #c2410c;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ss-swap-btn:hover {
	background: #fff7ed;
	border-color: #c2410c;
	transform: rotate(180deg);
}

/* Split Input / Output Panels */
.ss-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.ss-panel {
	padding: 18px 20px;
	min-height: 220px;
	position: relative;
}

.ss-input-panel {
	border-right: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ss-output-panel {
	background: #fcfcfd;
	border-radius: 0 0 14px 0;
}

.ss-input-box-wrap {
	position: relative;
}

.ss-textarea {
	width: 100%;
	border: none;
	resize: none;
	font-size: 20px;
	line-height: 1.5;
	color: #0f172a;
	background: transparent;
	outline: none;
	padding-right: 32px;
	font-family: inherit;
}

.ss-textarea::placeholder {
	color: #94a3b8;
	font-size: 16px;
}

.ss-clear-btn {
	position: absolute;
	top: 2px;
	right: 0;
	width: 28px;
	height: 28px;
	border: none;
	background: #f1f5f9;
	color: #475569;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.ss-clear-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Live autocomplete suggestions */
.ss-suggestions {
	position: absolute;
	left: 16px;
	right: 16px;
	top: 120px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
	z-index: 50;
	max-height: 260px;
	overflow-y: auto;
}

.ss-suggestion-item {
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.ss-suggestion-item:last-child {
	border-bottom: none;
}

.ss-suggestion-item:hover,
.ss-suggestion-item.ss-active {
	background: #fff7ed;
}

.ss-sug-main {
	font-weight: 600;
	color: #0f172a;
	font-size: 15px;
}

.ss-sug-sub {
	font-size: 13px;
	color: #64748b;
	text-align: right;
}

.ss-input-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
}

.ss-hint {
	font-size: 12px;
	color: #64748b;
}

.ss-translate-btn {
	background: #c2410c;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ss-translate-btn:hover {
	background: #9a3412;
}

/* Output Panel */
.ss-output-placeholder {
	color: #94a3b8;
	font-size: 18px;
	padding-top: 4px;
}

.ss-result-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.ss-primary-meaning {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
}

.ss-copy-btn {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
}

.ss-copy-btn:hover {
	background: #f1f5f9;
}

.ss-pron-badge {
	display: inline-block;
	background: #ffedd5;
	color: #9a3412;
	font-size: 13px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.ss-secondary-meanings {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 12px;
	padding: 10px 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
}

.ss-extra-details {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #cbd5e1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.ss-detail-row {
	line-height: 1.5;
}

.ss-detail-label {
	font-weight: 700;
	color: #334155;
	margin-right: 6px;
}

.ss-full-page-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: #c2410c;
	text-decoration: none;
}

.ss-full-page-link:hover {
	text-decoration: underline;
}

.ss-not-found {
	color: #64748b;
	font-size: 15px;
	line-height: 1.5;
}

/* Recent / Related Pills */
.ss-recent-section {
	margin-top: 20px;
}

.ss-recent-title {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 10px;
}

.ss-recent-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ss-pill {
	display: inline-block;
	padding: 6px 14px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	font-size: 14px;
	color: #1e293b;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ss-pill:hover {
	background: #fff7ed;
	border-color: #c2410c;
	color: #9a3412;
}

/* Individual Word Page Card (/meaning-of-{word}/) */
.ss-single-card {
	padding: 24px;
}

.ss-single-header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.ss-single-main-word {
	font-size: 32px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.ss-meaning-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.ss-meaning-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
}

.ss-meaning-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #c2410c;
	margin-bottom: 6px;
}

.ss-meaning-value {
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}

.ss-back-wrap {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.ss-back-link {
	color: #c2410c;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
}

.ss-back-link:hover {
	text-decoration: underline;
}

.ss-additional-notes {
	margin-top: 20px;
	line-height: 1.7;
}

@media (max-width: 720px) {
	.ss-panels {
		grid-template-columns: 1fr;
	}
	.ss-input-panel {
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
		min-height: 170px;
	}
	.ss-output-panel {
		border-radius: 0 0 14px 14px;
		min-height: 160px;
	}
	.ss-lang-bar {
		flex-wrap: nowrap;
		padding: 10px 12px;
	}
	.ss-lang-select {
		font-size: 13px;
		padding: 8px 10px;
	}
}
