/* ============================================================================
   EUX Blocks — eux/tyro-hw-card
   Hardware terminal card: photo area (pill + image) + body (name, spec, dots).
   ============================================================================ */

/* ---- Card wrapper -------------------------------------------------------- */
.eux-block--tyro-hw-card.eux-tyro-hw__card {
	background: var(--eux-cream-100);
	border: 1px solid var(--eux-ink-100);
	border-radius: 20px;
	padding: 22px 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	transition:
		border-color  220ms var(--eux-ease-out),
		box-shadow    220ms var(--eux-ease-out),
		transform     220ms var(--eux-ease-out);
}

.eux-block--tyro-hw-card.eux-tyro-hw__card:hover {
	border-color: var(--eux-woo-200);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.06);
	transform: translateY(-3px);
}

/* Dark parent override */
.eux-tyro-hw--dark .eux-block--tyro-hw-card.eux-tyro-hw__card {
	background: #14131a;
	border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================================================
   PHOTO AREA
   ============================================================================ */

.eux-block--tyro-hw-card .eux-tyro-hw__photo {
	aspect-ratio: 4 / 5;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: var(--eux-white);
	border: 1px solid var(--eux-ink-100);
	position: relative; /* required — pill + image are absolute */
}

.eux-block--tyro-hw-card .eux-tyro-hw__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* Placeholder when no photo is uploaded */
.eux-block--tyro-hw-card .eux-tyro-hw__photo-placeholder {
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(
			-45deg,
			var(--eux-cream-50),
			var(--eux-cream-50) 6px,
			var(--eux-ink-100)  6px,
			var(--eux-ink-100)  7px
		);
}

/* Editor upload button inside photo placeholder */
.eux-block--tyro-hw-card .eux-tyro-hw__upload-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

/* Photo wrap (editor canvas click-to-change) */
.eux-block--tyro-hw-card .eux-tyro-hw__photo-wrap {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

/* ============================================================================
   PILL TAG
   Colours: purple / green / ink / blue / orange
   ============================================================================ */

.eux-block--tyro-hw-card .eux-tyro-hw__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	font-family: var(--eux-font-mono);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: var(--eux-r-pill);
	white-space: nowrap;
}

.eux-block--tyro-hw-card .eux-tyro-hw__tag--purple { background: var(--eux-woo-purple); }
.eux-block--tyro-hw-card .eux-tyro-hw__tag--green  { background: #1a7a52; }
.eux-block--tyro-hw-card .eux-tyro-hw__tag--ink    { background: var(--eux-ink-900); }
.eux-block--tyro-hw-card .eux-tyro-hw__tag--blue   { background: #0066cc; }
.eux-block--tyro-hw-card .eux-tyro-hw__tag--orange { background: #c05e14; }

/* ============================================================================
   BODY — name + spec + dots
   ============================================================================ */

.eux-block--tyro-hw-card .eux-tyro-hw__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 4px;
}

/* Reset default group margin */
.eux-block--tyro-hw-card .eux-tyro-hw__body .wp-block-group {
	margin: 0 !important;
}

/* Terminal name (h3) */
.eux-block--tyro-hw-card .eux-tyro-hw__name {
	font-family: var(--eux-font-display) !important;
	font-weight: 500 !important;
	font-size: 22px !important;
	line-height: 1.2 !important;
	letter-spacing: -0.014em !important;
	color: var(--eux-ink-900) !important;
	margin: 0 !important;
}

.eux-tyro-hw--dark .eux-block--tyro-hw-card .eux-tyro-hw__name {
	color: var(--eux-cream) !important;
}

/* Spec paragraph */
.eux-block--tyro-hw-card .eux-tyro-hw__spec {
	font-family: var(--eux-font-body) !important;
	font-size: 14px !important;
	line-height: 1.55 !important;
	color: var(--eux-ink-700) !important;
	margin: 0 !important;
}

.eux-tyro-hw--dark .eux-block--tyro-hw-card .eux-tyro-hw__spec {
	color: rgba(244, 240, 236, 0.65) !important;
}

/* ============================================================================
   DOT FEATURE LIST (.eux-tyro-hw__meta)
   Flex-wrap row, each item has a purple dot ::before.
   Uses position:relative on li (not display:grid) to avoid ::before column trap.
   ============================================================================ */

.eux-block--tyro-hw-card .eux-tyro-hw__meta {
	display: flex !important;
	flex-wrap: wrap;
	gap: 6px 14px;
	list-style: none !important;
	padding: 14px 0 0 !important;
	margin: 4px 0 0 !important;
	border-top: 1px dashed var(--eux-ink-200);
}

.eux-tyro-hw--dark .eux-block--tyro-hw-card .eux-tyro-hw__meta {
	border-top-color: rgba(255, 255, 255, 0.10);
}

.eux-block--tyro-hw-card .eux-tyro-hw__meta li,
.eux-block--tyro-hw-card .eux-tyro-hw__meta .wp-block-list-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--eux-font-mono) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	letter-spacing: 0.04em !important;
	color: var(--eux-ink-700) !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.eux-tyro-hw--dark .eux-block--tyro-hw-card .eux-tyro-hw__meta li,
.eux-tyro-hw--dark .eux-block--tyro-hw-card .eux-tyro-hw__meta .wp-block-list-item {
	color: rgba(244, 240, 236, 0.65) !important;
}

/* Purple dot before each item */
.eux-block--tyro-hw-card .eux-tyro-hw__meta li::before,
.eux-block--tyro-hw-card .eux-tyro-hw__meta .wp-block-list-item::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--eux-woo-purple);
	display: inline-block;
	flex-shrink: 0;
}

/* Kill ::marker */
.eux-block--tyro-hw-card .eux-tyro-hw__meta li::marker,
.eux-block--tyro-hw-card .eux-tyro-hw__meta .wp-block-list-item::marker {
	content: '' !important;
}
