/**
 * Vote Reminders — chips, the hub strip, and the calendar bar.
 *
 * Everything here is painted onto markup that was cached without it, so each
 * piece has to look deliberate arriving late rather than looking like a layout
 * shift. That is why the chip is inline-flex with its own line and the strip
 * ships `hidden` — nothing reserves space for something that may never appear.
 *
 * @package Shining
 */

/* ── "✓ Voted · again in 2h" on a card ────────────────────────────────────── */

.sa-remind-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
	margin: 0 0 8px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .01em;
	white-space: nowrap;
	color: var(--sa-text-muted, #A9B6C8);
	background: var(--sa-surface-2, #18223A);
	border: 1px solid var(--sa-border, rgba(0,195,137, .16));
}

/* Ready to vote again is the state worth noticing — it earns the accent. */
.sa-remind-chip.is-ready {
	color: var(--sa-on-accent, #fff);
	background: linear-gradient(90deg, var(--sa-violet, #00C389), var(--sa-magenta, #19D3C5));
	border-color: transparent;
}

/* ── The line above the hub ───────────────────────────────────────────────── */

.sa-remind-strip {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sa-text, #EEF3F8);
	background: var(--sa-surface-1, #121A2B);
	border: 1px solid var(--sa-border-strong, rgba(0,195,137, .34));
}

.sa-remind-strip::before {
	content: "⚽";
	color: var(--sa-vote, #00C389);
	font-size: 15px;
	line-height: 1;
}

/* One rule per component: `[hidden]` is only display:none in the UA sheet, so
   an author `display:flex` above beats it and the strip would render empty. */
.sa-remind-strip[hidden] { display: none; }
.sa-remind-strip__my,
#tie-wrapper a.sa-remind-strip__my {
	margin-left: auto;
	font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--sa-heart); text-decoration: none; white-space: nowrap;
}

/* ── "ADD THE DEADLINE TO MY CALENDAR" ───────────────────────────────────────── */

.sa-remind {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 1.5rem 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--sa-surface-1, #121A2B);
	border: 1px solid var(--sa-border, rgba(0,195,137, .16));
}

.sa-remind__txt {
	font-size: 14px;
	line-height: 1.45;
	color: var(--sa-text-muted, #A9B6C8);
	min-width: 0;
}

.sa-remind__btn,
.sa-remind-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	color: var(--sa-on-accent, #fff);
	background: linear-gradient(90deg, var(--sa-violet, #00C389), var(--sa-magenta, #19D3C5));
	border: 0; letter-spacing: .05em; text-transform: uppercase;
	box-shadow: var(--sa-button-depth);
	}

/* 🔴 `.entry-content a` in single.css restyles every link inside an article and
   has bitten this project repeatedly. Guarded at the same specificity depth. */
.entry-content a.sa-remind__btn,
.entry-content a.sa-remind-inline {
	color: var(--sa-on-accent, #fff);
	text-decoration: none;
	border-bottom: 0;
}

.sa-remind__btn:hover,
.sa-remind__btn:focus-visible,
.sa-remind-inline:hover,
.sa-remind-inline:focus-visible {
	filter: brightness(1.08);
	color: var(--sa-on-accent, #fff);
}

.sa-remind__btn:focus-visible,
.sa-remind-inline:focus-visible {
	outline: 2px solid var(--sa-violet, #00C389);
	outline-offset: 3px;
}

/* Inside the receipt's cooldown line it is a quieter, smaller sibling — the
   receipt already has one loud control (share) and a second would compete. */
.sa-remind-inline {
	margin-left: 10px;
	padding: 6px 12px;
	font-size: 12.5px;
	background: var(--sa-surface-2, #18223A);
	color: var(--sa-text, #EEF3F8);
	border: 1px solid var(--sa-border-strong, rgba(0,195,137, .34));
}

.entry-content a.sa-remind-inline { color: var(--sa-text, #EEF3F8); }

.sa-remind-inline:hover,
.sa-remind-inline:focus-visible { color: var(--sa-text, #EEF3F8); }

@media (max-width: 520px) {
	.sa-remind { flex-direction: column; align-items: stretch; }
	.sa-remind__btn { justify-content: center; }
	.sa-remind-inline { display: flex; margin: 8px 0 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.sa-remind__btn,
	.sa-remind-inline { transition: none; }
}
