/*
 * Dark theme, reusing rusti-new-styles.css's --rusti-* custom properties
 * directly (functions.php enqueues this file with a dependency on that
 * one, specifically so they're guaranteed defined by the time these
 * rules are evaluated) rather than redefining a local palette — unlike
 * the theme's front-page widgets (hero-search.css etc.), this is a
 * plugin file that's always loaded alongside rusti-new-styles.css on
 * this exact page, so there's no "might load standalone" case to guard
 * against. This file only adds the pieces specific to the upcoming-wipes
 * page (timeline nav, bucket headings, confidence badges, "View server"
 * link, the region-select form). Server cards reuse .rusto-server-card /
 * .rusto-keyword-badge from server-list.css, already dark-themed via
 * rusti-new-styles.css's own overrides for those same classes on the
 * list page. .rusto-probe-form itself is *not* reused from anywhere —
 * the detail page's own styling for that same class
 * (web/app/themes/rusto/assets/single-server.css) is scoped to
 * #primary.rusto-server-detail specifically and never applies here.
 */

.rusto-upcoming-wipes h1 {
	color: var(--rusti-text);
	margin-bottom: 0.25rem;
}

.rusto-upcoming-wipes-intro {
	color: var(--rusti-muted-2);
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.rusto-probe-form {
	margin: 0 0 1.5rem;
	display: flex;
	align-items: center;
}

.rusto-probe-form label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--rusti-muted-2);
	font-size: 0.86rem;
	font-weight: 700;
}

.rusto-probe-form select {
	height: 38px;
	padding: 0 2rem 0 0.75rem;
	color: var(--rusti-text);
	background: var(--rusti-input);
	border: 1px solid var(--rusti-border);
	border-radius: var(--rusti-radius-sm);
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.rusto-probe-form select:focus-visible {
	outline: 2px solid var(--rusti-accent-hover);
	outline-offset: 2px;
}

.rusto-probe-form button {
	height: 38px;
	margin-left: 0.6rem;
	padding: 0 0.9rem;
	color: var(--rusti-text);
	background: var(--rusti-panel-hover);
	border: 1px solid var(--rusti-border-hover);
	border-radius: var(--rusti-radius-sm);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.rusto-wipe-timeline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
	padding: 0.85rem 1rem;
	background: linear-gradient(180deg, rgba(18, 28, 39, .97), rgba(14, 23, 32, .97));
	border-radius: var(--rusti-radius);
	border: 1px solid var(--rusti-border);
}

.rusto-wipe-timeline a {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--rusti-text);
	background: var(--rusti-input);
	border: 1px solid var(--rusti-border);
	border-radius: 999px;
	padding: 0.35rem 0.85rem;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.rusto-wipe-timeline a:hover {
	border-color: var(--rusti-accent-hover);
	color: var(--rusti-accent-hover);
}

.rusto-wipe-bucket {
	margin-bottom: 2.25rem;
}

.rusto-wipe-bucket h2 {
	color: var(--rusti-text);
	border-bottom: 2px solid var(--rusti-accent);
	padding-bottom: 0.4rem;
	margin-bottom: 1.1rem;
}

.rusto-wipe-time {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rusti-text);
}

.rusto-wipe-confidence {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	vertical-align: middle;
}

/*
 * High confidence: filled, same dark gradient + white text already
 * contrast-checked (~8.2:1) for .rusto-copy in rusti-new-styles.css —
 * reused as-is rather than re-deriving a new pair.
 */
.rusto-wipe-confidence-high {
	background: linear-gradient(180deg, #8c302c, #702522);
	color: #fff;
}

/*
 * Predicted: intentionally a lighter, more tentative treatment than "High
 * confidence" — outlined rather than filled, so the two tiers read as
 * different levels of certainty at a glance, not just different labels.
 * --rusti-muted-2 on the page's dark background is already
 * contrast-checked (~5.55:1) in rusti-new-styles.css for this same
 * "real informational text" role.
 */
.rusto-wipe-confidence-predicted {
	background: transparent;
	color: var(--rusti-muted-2);
	border: 1px solid var(--rusti-border-hover);
}

.rusto-server-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	overflow-wrap: break-word;
}

/* Same accent-hover-on-dark-panel pairing as .rusto-server-card h2 a in
   rusti-new-styles.css (~5.9:1, already contrast-checked there). */
.rusto-server-card h3 a {
	color: var(--rusti-accent-hover);
	text-decoration: none;
}

.rusto-server-card h3 a:hover {
	color: #ff7b67;
	text-decoration: underline;
}

.rusto-view-server {
	display: inline-block;
	margin-top: 0.5rem;
	background: linear-gradient(180deg, #8c302c, #702522);
	color: #fff;
	border-radius: 4px;
	padding: 0.5rem 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.rusto-view-server:hover {
	background: linear-gradient(180deg, #a53932, #812b27);
	color: #fff;
}
