/**
 * Guest Contributor System – Frontend Styles
 *
 * Horizontal contributor strip: photo left, "By: Name" right.
 * Prefixed with .tnh-gc- to avoid theme conflicts.
 *
 * @package TNH_Guest_Contributor
 */

/* --------------------------------------------------
 * Contributor Strip
 * -------------------------------------------------- */

.tnh-gc-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	margin: 0 0 24px;
	padding: 12px 20px 12px 12px;
	background: #ffffff;
	border: 1px solid #dde1e6;
	border-radius: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
}

/* --------------------------------------------------
 * Contributor Photo
 * -------------------------------------------------- */

.tnh-gc-card__photo {
	flex-shrink: 0;
	line-height: 0;
}

.tnh-gc-card__photo img {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #e8ecf1;
	display: block;
}

/* --------------------------------------------------
 * Contributor Info (By label + Name)
 * -------------------------------------------------- */

.tnh-gc-card__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tnh-gc-card__label {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.tnh-gc-card__name {
	font-size: 19px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.3;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --------------------------------------------------
 * Responsive – Mobile
 * -------------------------------------------------- */

@media screen and (max-width: 600px) {
	.tnh-gc-card {
		gap: 12px;
		padding: 10px 16px 10px 10px;
		border-radius: 8px;
	}

	.tnh-gc-card__photo img {
		width: 52px;
		height: 52px;
		border-radius: 6px;
	}

	.tnh-gc-card__label {
		font-size: 11px;
	}

	.tnh-gc-card__name {
		font-size: 16px;
	}
}
