/*
Theme Name: SiliconByway Child
Template: generatepress
Description: Child theme do SiliconByway — identidade visual "Route Line" (docs/06-identidade-visual.md).
Version: 1.0.0
*/

:root {
	--sb-night-pcb: #0B0E14;
	--sb-panel: #12161F;
	--sb-copper: #C8793B;
	--sb-signal-teal: #7FD8C8;
	--sb-paper: #E8E6E1;
	--sb-muted: #8A8F98;
	--sb-font-display: 'Space Grotesk', system-ui, sans-serif;
	--sb-font-body: 'Inter', system-ui, sans-serif;
	--sb-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body {
	background: var(--sb-night-pcb);
	color: var(--sb-paper);
	font-family: var(--sb-font-body);
}

a {
	color: var(--sb-copper);
}

a:hover,
a:focus {
	color: var(--sb-signal-teal);
}

h1, h2, h3, .site-title, .entry-title {
	font-family: var(--sb-font-display);
	color: var(--sb-paper);
}

.site-header,
.main-navigation,
#panel-cover,
.inside-right-sidebar .widget,
.comment-respond {
	background: var(--sb-panel) !important;
}

time, .sb-mono, .entry-meta {
	font-family: var(--sb-font-mono);
	color: var(--sb-muted);
}

/* Foco de teclado sempre visível (acessibilidade — risco ADA/WCAG real, ver docs/02) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--sb-signal-teal);
	outline-offset: 2px;
}

/* ---------- Route Line (elemento-assinatura, só na home) ---------- */

.sb-route-line {
	position: relative;
	margin: 2rem 0 3rem;
	padding: 2.5rem 1rem;
	background: var(--sb-panel);
	border-radius: 8px;
	overflow-x: auto;
}

.sb-route-line__track {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	min-width: 480px;
}

.sb-route-line__line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--sb-copper);
	transform: translateY(-50%);
	opacity: 0.55;
}

.sb-route-line__waypoint {
	position: relative;
	flex: 1;
	text-align: center;
	text-decoration: none;
	color: var(--sb-paper);
	z-index: 1;
}

.sb-route-line__dot {
	display: block;
	width: 14px;
	height: 14px;
	margin: 0 auto 0.6rem;
	border-radius: 50%;
	background: var(--sb-copper);
	border: 2px solid var(--sb-night-pcb);
}

.sb-route-line__waypoint--active .sb-route-line__dot {
	background: var(--sb-signal-teal);
	box-shadow: 0 0 0 4px rgba(127, 216, 200, 0.25);
}

.sb-route-line__waypoint--active .sb-route-line__label {
	color: var(--sb-signal-teal);
}

.sb-route-line__label {
	display: block;
	font-family: var(--sb-font-mono);
	font-size: 0.8rem;
	max-width: 10rem;
	margin: 0 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sb-route-line__empty {
	font-family: var(--sb-font-mono);
	color: var(--sb-muted);
	text-align: center;
}

/* Sem animação pra quem pediu reduced-motion */
@media (prefers-reduced-motion: no-preference) {
	.sb-route-line__line {
		animation: sb-draw-line 1.4s ease-out;
	}
}

@keyframes sb-draw-line {
	from { transform: translateY(-50%) scaleX(0); transform-origin: left; }
	to { transform: translateY(-50%) scaleX(1); transform-origin: left; }
}

@media (max-width: 600px) {
	.sb-route-line__track {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		min-width: 0;
	}
	.sb-route-line__line {
		top: 0;
		bottom: 0;
		left: 7px;
		right: auto;
		width: 2px;
		height: auto;
	}
	.sb-route-line__waypoint {
		flex: none;
		text-align: left;
		padding-left: 1.5rem;
	}
	.sb-route-line__label {
		max-width: none;
	}
}
