/* Hidden Word Bible Lessons — Lesson front-end styles */

.hwbl-lesson {
	max-width: 48rem;
	margin: 0 auto 2rem;
	font-family: inherit;
	line-height: 1.6;
}

.hwbl-lesson-header {
	margin-bottom: 1.5rem;
}

.hwbl-lesson-title {
	margin: 0 0 0.25rem;
	font-size: 1.75rem;
}

.hwbl-lesson-reference {
	margin: 0;
	color: #555;
	font-style: italic;
}

.hwbl-lesson-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #e2e2e2;
}

.hwbl-tab-button {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 0.75rem 1rem;
	cursor: pointer;
	font-size: 0.95rem;
	color: #444;
	margin-bottom: -2px;
}

.hwbl-tab-button:hover,
.hwbl-tab-button:focus {
	color: #1a5276;
	outline: none;
}

.hwbl-tab-button.is-active {
	color: #1a5276;
	border-bottom-color: #1a5276;
	font-weight: 600;
}

.hwbl-tab-panel {
	display: none;
	padding: 1rem 0;
}

.hwbl-tab-panel.is-active {
	display: block;
}

.hwbl-tab-panel h3 {
	margin-top: 0;
	font-size: 1.25rem;
	color: #1a5276;
}

.hwbl-verse-text {
	font-size: 1.2rem;
	line-height: 1.8;
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid #1a5276;
	background: #f8f9fa;
	font-style: italic;
}

.hwbl-copyright {
	font-size: 0.75rem;
	color: #777;
	margin-top: 1rem;
}

.hwbl-empty {
	color: #888;
	font-style: italic;
}

.hwbl-memorization {
	margin-top: 1.5rem;
	padding: 1rem;
	background: #f0f4f8;
	border-radius: 6px;
}

.hwbl-memorization h4 {
	margin: 0 0 0.5rem;
}

.hwbl-memorization-hint {
	font-size: 0.9rem;
	color: #666;
	margin: 0 0 0.75rem;
}

.hwbl-memorization-text {
	font-size: 1.1rem;
	line-height: 2;
	margin-bottom: 0.75rem;
}

.hwbl-word {
	display: inline;
}

.hwbl-word.is-clickable {
	cursor: pointer;
	border-bottom: 1px dashed #1a5276;
}

.hwbl-word.is-hidden {
	color: #1a5276;
	font-weight: 600;
	cursor: pointer;
}

.hwbl-memorization-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hwbl-memorization-reference-prompt {
	margin: 0 0 0.75rem;
}

.hwbl-memorization-reference-fields {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.hwbl-memorization-reference-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
}

.hwbl-memorization-reference-field--full {
	margin-bottom: 0.75rem;
}

.hwbl-memorization-reference-field input {
	width: 100%;
	padding: 0.45rem 0.6rem;
	border: 1px solid #c5d0da;
	border-radius: 4px;
}

.hwbl-memorization-reference-result {
	margin: 0.75rem 0 0;
	font-weight: 600;
}

.hwbl-memorization-audio-wrap {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.hwbl-memorization-audio-player {
	max-width: 100%;
}

.hwbl-memorization-audio-status {
	flex: 1 1 100%;
	margin: 0;
	font-size: 0.9rem;
	color: #555;
}

.hwbl-memorization-audio-status.is-error {
	color: #8a1f1f;
}

@media (max-width: 640px) {
	.hwbl-memorization-reference-fields {
		grid-template-columns: 1fr;
	}
}

.hwbl-btn {
	background: #1a5276;
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
}

.hwbl-btn:hover {
	background: #154360;
}

.hwbl-echo-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hwbl-echo-item {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.hwbl-echo-item blockquote {
	margin: 0.5rem 0;
	font-style: italic;
	color: #333;
}

.hwbl-echo-note {
	margin: 0.25rem 0 0;
	color: #555;
}

.hwbl-discussion-questions {
	padding-left: 1.25rem;
}

.hwbl-discussion-questions li {
	margin-bottom: 0.75rem;
}

.hwbl-verse-of-week {
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 6px;
}

.hwbl-notice {
	padding: 1rem;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
}

.hwbl-lesson-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
}

.hwbl-btn-secondary {
	background: #fff;
	color: #1a5276;
	border: 1px solid #1a5276;
}

.hwbl-btn-secondary:hover {
	background: #eaf2f8;
}

.hwbl-copy-status {
	font-size: 0.85rem;
	color: #1a5276;
}

.hwbl-memorization-streak {
	margin: 0 0 0.5rem;
	font-weight: 600;
	color: #1a5276;
}

.hwbl-streak-upsell {
	font-size: 0.85rem;
	color: #666;
	margin: 0 0 0.75rem;
}

.hwbl-echo-translation {
	font-size: 0.8rem;
	color: #777;
	margin: 0.25rem 0 0;
}

.hwbl-lesson-list {
	max-width: 48rem;
	margin: 0 auto 2rem;
}

.hwbl-lesson-list-count {
	color: #555;
	margin-bottom: 1rem;
}

.hwbl-lesson-list-heading {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.2rem;
	color: #1a5276;
	border-bottom: 1px solid #e2e2e2;
	padding-bottom: 0.25rem;
}

.hwbl-lesson-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hwbl-lesson-list-item {
	margin: 0;
	border-bottom: 1px solid #eee;
}

.hwbl-lesson-list-item a {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 0.25rem;
	text-decoration: none;
	color: #222;
}

.hwbl-lesson-list-item a:hover {
	background: #f8f9fa;
}

.hwbl-lesson-list-reference {
	color: #555;
	font-style: italic;
}

.hwbl-lesson-list-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.hwbl-lesson-list-pagination a {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
}

.hwbl-lesson-list-pagination .is-current a {
	background: #1a5276;
	color: #fff;
	border-color: #1a5276;
}

.hwbl-archive-lessons {
	max-width: 48rem;
	margin: 2rem auto;
	padding: 0 1rem;
}

.hwbl-memorization-review-banner {
	background: #eef6fb;
	border-left: 4px solid #1a5276;
	padding: 0.75rem 1rem;
	margin: 0 0 1rem;
}

.hwbl-memorization-quality {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.hwbl-memorize-reviews__list {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}

.hwbl-memorize-reviews__link {
	text-decoration: none;
	font-weight: 600;
}

.hwbl-translation-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin: 1.5rem 0;
}

.hwbl-translation-compare__col blockquote {
	margin: 0.5rem 0 0;
}

.hwbl-cohort-leaderboard__list {
	padding-left: 1.25rem;
}

.hwbl-ai-assistant__thread {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 1rem;
	min-height: 8rem;
	max-height: 24rem;
	overflow-y: auto;
	margin: 1rem 0;
}

.hwbl-ai-assistant__form {
	display: flex;
	gap: 0.5rem;
}

.hwbl-ai-assistant__input {
	flex: 1;
}

@media print {
	.hwbl-lesson-tabs,
	.hwbl-lesson-toolbar,
	.hwbl-memorization,
	.hwbl-memorization-controls,
	.hwbl-translation-switcher,
	.hwbl-comments,
	.hwbl-btn {
		display: none !important;
	}

	.hwbl-tab-panel {
		display: block !important;
		page-break-inside: avoid;
	}

	.hwbl-tab-panel[hidden] {
		display: block !important;
	}

	.hwbl-lesson {
		max-width: none;
		color: #000;
	}

	.hwbl-verse-text {
		background: none;
		border-left-color: #000;
	}
}
