/* =========================================================
   Verse of the Day  [verse_of_the_day]
   Scoped under .bvotd so it doesn't affect the rest of the site.
   Colours follow the site's warm orange and deep brown.
   ========================================================= */

.bvotd {
	--bv-accent: #e8692c;
	--bv-accent-2: #b8410f;
	--bv-ink: #1f2328;
	--bv-muted: #565d66;
	--bv-line: #eadfd5;
	--bv-card: #ffffff;
	--bv-soft: #fdf1e8;
	--bv-verse-font: Georgia, "Times New Roman", "Noto Serif", serif;

	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 96px) 20px clamp(32px, 4vw, 48px);
	background:
		radial-gradient(1100px 420px at 85% 0%, rgba(232, 105, 44, .12), transparent 60%),
		radial-gradient(900px 380px at 0% 100%, rgba(245, 166, 35, .10), transparent 60%),
		linear-gradient(180deg, #fffaf5 0%, #fbf3ea 100%);
	color: var(--bv-ink);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.bvotd *, .bvotd *::before, .bvotd *::after { box-sizing: border-box; }
.bvotd [hidden] { display: none !important; }

/* Discreet cross watermark */
.bvotd::before {
	content: "";
	position: absolute;
	top: -40px;
	right: max(-60px, calc(50% - 760px));
	width: 360px;
	height: 460px;
	background:
		linear-gradient(var(--bv-accent), var(--bv-accent)) center 0 / 28px 100% no-repeat,
		linear-gradient(var(--bv-accent), var(--bv-accent)) center 30% / 100% 28px no-repeat;
	opacity: .05;
	border-radius: 6px;
	pointer-events: none;
}

/* Neutralise theme styles on our controls */
.bvotd button {
	font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
	text-transform: none; letter-spacing: normal; box-shadow: none; line-height: inherit;
	min-height: 0; width: auto; height: auto; border-radius: 0; cursor: pointer;
}
.bvotd a { text-decoration: none; box-shadow: none; }
.bvotd p { margin: 0; }
.bvotd svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bvotd :focus-visible { outline: 3px solid rgba(232, 105, 44, .5); outline-offset: 3px; border-radius: 10px; }

.bvotd-inner {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

/* ---------- Verse ---------- */
.bvotd .bvotd-kicker {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
	margin-bottom: 22px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--bv-accent-2);
}
.bvotd .bvotd-kicker time { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--bv-muted); font-size: 14px; }
.bvotd .bvotd-dot { color: var(--bv-muted); }
.bvotd .bvotd-cross { width: 20px; height: 20px; color: var(--bv-accent); stroke-width: 2.2; }

.bvotd .bvotd-figure { margin: 0 0 26px; padding: 0; }
.bvotd .bvotd-verse {
	position: relative;
	margin: 0; padding: 0 0 0 0; border: 0; background: none; quotes: none;
	font-family: var(--bv-verse-font);
	font-size: clamp(24px, 2.9vw, 38px);
	line-height: 1.42;
	font-weight: 400;
	font-style: normal;
	color: var(--bv-ink);
	text-wrap: pretty;
	transition: opacity .35s ease;
}
.bvotd .bvotd-verse::before, .bvotd .bvotd-verse::after { content: none; }
.bvotd .bvotd-verse.is-fading { opacity: 0; }

.bvotd .bvotd-ref { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.bvotd .bvotd-ref-line { width: 36px; height: 2px; background: var(--bv-accent); border-radius: 2px; }
.bvotd .bvotd-ref cite { font-style: normal; font-weight: 700; font-size: 18px; color: var(--bv-ink); }
.bvotd .bvotd-ref cite a { color: inherit; }
.bvotd .bvotd-trans {
	padding: 2px 9px; border-radius: 999px; background: var(--bv-soft); color: var(--bv-accent-2);
	font-size: 12px; font-weight: 700; letter-spacing: .06em;
}

.bvotd .bvotd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bvotd .bvotd-btn {
	display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 9px 16px;
	border-radius: 999px; border: 1px solid var(--bv-line); background: rgba(255, 255, 255, .85);
	color: var(--bv-ink); font-size: 14px; font-weight: 600; line-height: 1.2;
	transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.bvotd .bvotd-btn:hover { border-color: var(--bv-accent); color: var(--bv-accent-2); background: #fff; transform: translateY(-1px); }
.bvotd .bvotd-btn.is-done { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.bvotd .bvotd-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; font-weight: 600; color: #15803d; }

/* ---------- Reflect card ---------- */
.bvotd .bvotd-side {
	background: var(--bv-card);
	border: 1px solid var(--bv-line);
	border-radius: 24px;
	padding: 22px 24px 20px;
	box-shadow: 0 1px 2px rgba(42, 31, 26, .04), 0 18px 40px rgba(42, 31, 26, .08);
}
.bvotd .bvotd-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: #f6f0ea; }
.bvotd .bvotd-tabs [role="tab"] {
	flex: 1; padding: 9px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--bv-muted);
	transition: background .2s, color .2s;
}
.bvotd .bvotd-tabs [role="tab"]:hover { color: var(--bv-accent-2); }
.bvotd .bvotd-tabs [aria-selected="true"] { background: #fff; color: var(--bv-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.bvotd .bvotd-panel { min-height: 132px; font-size: 17px; line-height: 1.7; color: #2b2f33; animation: bvIn .3s ease; }
.bvotd .bvotd-encourage { font-family: var(--bv-verse-font); font-size: 22px; line-height: 1.45; color: var(--bv-ink); }
.bvotd .bvotd-prayer { font-style: italic; }
.bvotd .bvotd-amen { margin-top: 6px; font-weight: 700; font-style: italic; color: var(--bv-accent-2); }
@keyframes bvIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.bvotd .bvotd-explore {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	margin-top: 18px; padding: 14px 18px; border-radius: 16px;
	background: linear-gradient(140deg, #e8692c 0%, #c2410c 100%); color: #fff; font-weight: 600;
	transition: transform .15s, box-shadow .15s;
}
.bvotd .bvotd-explore:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(194, 65, 12, .25); }

.bvotd .bvotd-notice { position: relative; max-width: 1180px; margin: 34px auto 0; font-size: 12px; line-height: 1.5; color: var(--bv-muted); text-align: center; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
	.bvotd-inner { grid-template-columns: 1fr; }
	.bvotd::before { width: 220px; height: 300px; right: -70px; }
}
@media (max-width: 520px) {
	.bvotd { padding-left: 16px; padding-right: 16px; }
	.bvotd .bvotd-dot { display: none; }
	.bvotd .bvotd-kicker time { flex-basis: 100%; }
	.bvotd .bvotd-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.bvotd .bvotd-btn { justify-content: center; }
	.bvotd .bvotd-side { padding: 18px 16px; border-radius: 20px; }
	.bvotd .bvotd-tabs [role="tab"] { font-size: 13px; padding: 9px 6px; }
	.bvotd .bvotd-panel { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bvotd *, .bvotd *::before, .bvotd *::after { animation: none !important; transition: none !important; }
}

@media print {
	.bvotd { background: #fff; }
	.bvotd::before, .bvotd .bvotd-actions, .bvotd .bvotd-tabs, .bvotd .bvotd-explore { display: none !important; }
	.bvotd .bvotd-panel[hidden] { display: block !important; }
}
