/* DW Status Page — matches Dearthwood site design language */

.dw-status-wrap *,
.dw-status-wrap *::before,
.dw-status-wrap *::after { box-sizing: border-box; }

.dw-status-wrap {
	width: 100%;
	padding: 48px 0 64px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
}

/* ── Heading ─────────────────────────────── */
.dw-status-heading {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #ffffff;
	margin: 0 0 28px;
	padding: 0;
	border: none;
}

/* ── Overall status banner ───────────────── */
.dw-overall-status {
	background: #1a1a1a;
	border: 1px solid #333333;
	border-radius: 12px;
	padding: 24px 32px;
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 32px;
	border-left-width: 4px;
}

.dw-overall-operational { border-left-color: #22c55e; }
.dw-overall-degraded    { border-left-color: #f59e0b; }
.dw-overall-outage      { border-left-color: #ef4444; }

.dw-overall-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}
.dw-overall-operational .dw-overall-icon { color: #22c55e; }
.dw-overall-degraded    .dw-overall-icon { color: #f59e0b; }
.dw-overall-outage      .dw-overall-icon { color: #ef4444; }

.dw-overall-headline {
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 3px;
}

.dw-overall-sub {
	font-size: 12px;
	color: #555555;
	margin: 0;
}

/* ── Services list ───────────────────────── */
.dw-services-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ── Service card — matches .dm-feature-card / .dm-roadmap-item ── */
.dw-service-row {
	background: #141414;
	border: 1px solid #333333;
	border-left-width: 3px;
	border-radius: 12px;
	padding: 22px 26px 18px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dw-service-row:hover {
	border-color: #555555;
	box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* Left accent + status-tinted gradient background */
.dw-service-row[data-status="operational"] {
	border-left-color: #22c55e;
	background: linear-gradient(to right, #0a3320 0%, #141414 70%);
}
.dw-service-row[data-status="degraded"] {
	border-left-color: #f59e0b;
	background: linear-gradient(to right, #332200 0%, #141414 70%);
}
.dw-service-row[data-status="outage"] {
	border-left-color: #ef4444;
	background: linear-gradient(to right, #330a0a 0%, #141414 70%);
}
.dw-service-row[data-status="maintenance"] {
	border-left-color: #818cf8;
	background: linear-gradient(to right, #151540 0%, #141414 70%);
}
.dw-service-row[data-status="unknown"] {
	border-left-color: #555555;
	background: linear-gradient(to right, #202020 0%, #141414 70%);
}

.dw-service-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.dw-service-name {
	font-size: 0.9rem;
	font-weight: 700;
	color: #d0d0d0;
}

.dw-service-desc {
	font-size: 0.83rem;
	color: #555555;
	margin-left: 10px;
	font-weight: 400;
}

/* ── Status badge — matches .dm-badge ───── */
.dw-status-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,0.06);
	border: 1px solid #333333;
	color: #b8b8b8;
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.dw-status-label::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.dw-status-operational { color: #4ade80; border-color: rgba(34,197,94,0.3); }
.dw-status-operational::before { background: #22c55e; }

.dw-status-degraded { color: #fbbf24; border-color: rgba(245,158,11,0.3); }
.dw-status-degraded::before { background: #f59e0b; }

.dw-status-outage { color: #f87171; border-color: rgba(239,68,68,0.3); }
.dw-status-outage::before { background: #ef4444; }

.dw-status-maintenance { color: #a5b4fc; border-color: rgba(129,140,248,0.3); }
.dw-status-maintenance::before { background: #818cf8; }

.dw-status-unknown { color: #808080; border-color: rgba(255,255,255,0.08); }
.dw-status-unknown::before { background: #555555; }

/* ── Custom message ──────────────────────── */
.dw-service-message {
	font-size: 0.83rem;
	color: #808080;
	background: rgba(245,158,11,0.05);
	border-left: 3px solid #f59e0b;
	padding: 10px 14px;
	margin-bottom: 16px;
	border-radius: 0 6px 6px 0;
	line-height: 1.6;
}

/* ── Uptime bars ─────────────────────────── */
.dw-bars {
	display: flex;
	gap: 2px;
	height: 28px;
}

.dw-bar {
	flex: 1;
	min-width: 0;
	border-radius: 3px;
	transition: opacity 0.15s;
	cursor: default;
}
.dw-bar:hover { opacity: 0.55; }

.dw-bar-operational { background: #22c55e; }
.dw-bar-degraded    { background: #f59e0b; }
.dw-bar-outage      { background: #ef4444; }
.dw-bar-maintenance { background: #818cf8; }
.dw-bar-nodata,
.dw-bar-unknown     { background: #2a2a2a; }

.dw-bars-meta {
	display: flex;
	justify-content: space-between;
	margin-top: 7px;
}

.dw-bars-ago,
.dw-bars-today  { font-size: 0.78rem; color: #555555; }
.dw-bars-uptime { font-size: 0.78rem; font-weight: 700; color: #808080; }

/* ── No services placeholder ─────────────── */
.dw-no-services {
	background: #141414;
	border: 1px solid #333333;
	border-radius: 12px;
	padding: 40px 24px;
	text-align: center;
	color: #555555;
	font-size: 0.9rem;
}

@media (max-width: 600px) {
	.dw-service-row { padding: 16px 18px 14px; }
	.dw-overall-status { padding: 18px 20px; }
}
