/**
 * TechBBQ program card — reusable cardProgram component.
 *
 * Figma refs: Startups 7136:46168 / 7164:70490 (mobile).
 *
 * Breakpoints (mobile-first): 0–767 (base), 768–1023, 1024–1439, 1440+.
 */

.techbbq-program-card {
	--techbbq-program-card-type-dot-color: var(--techbbq-content-accent-1);
	--techbbq-program-card-status-dot-color: var(--techbbq-content-accent-1);
	--techbbq-program-card-title-size: 20px;
	--techbbq-program-card-main-gap: var(--techbbq-space-2);
	--techbbq-program-card-body-gap: var(--techbbq-space-1);
	--techbbq-program-card-title-block-gap: var(--techbbq-space-1);

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-2);
	justify-content: space-between;
	min-height: 0;
	padding: 20px;
	overflow: hidden;
	border-radius: 12px;
	background-color: var(--techbbq-bg-surface);
	color: var(--techbbq-content-primary);
}

.techbbq-program-card.is-hidden {
	display: none;
}

a.techbbq-program-card {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

a.techbbq-program-card:hover,
a.techbbq-program-card:focus-visible {
	background-color: var(--techbbq-bg-surface-alt);
	color: inherit;
	text-decoration: none;
}

a.techbbq-program-card:hover *,
a.techbbq-program-card:focus-visible * {
	text-decoration: none;
}

a.techbbq-program-card:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
}

.techbbq-program-card__main {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-program-card-main-gap);
	width: 100%;
}

.techbbq-program-card__header {
	display: flex;
	gap: var(--techbbq-space-2);
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

.techbbq-program-card__type {
	display: inline-flex;
	gap: var(--techbbq-space-1);
	align-items: center;
	margin: 0;
	font-family: var(--techbbq-font-family-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--techbbq-content-primary);
}

.techbbq-program-card__type-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--techbbq-program-card-type-dot-color);
}

.techbbq-program-card__logo {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-end;
	max-width: 50%;
	height: 44px;
	overflow: hidden;
}

.techbbq-program-card__logo-image {
	display: block;
	max-width: 100%;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
	object-position: right center;
}

.techbbq-program-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-program-card-body-gap);
	align-items: flex-start;
	width: 100%;
}

.techbbq-program-card__title-block {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-program-card-title-block-gap);
	width: 100%;
}

.techbbq-program-card__title {
	margin: 0;
	font-size: var(--techbbq-program-card-title-size);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.techbbq-program-card__meta {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: flex-start;
	margin: 0;
	color: var(--techbbq-content-primary);
}

.techbbq-program-card__description {
	margin: 0;
	color: var(--techbbq-content-secondary);
}

.techbbq-program-card__status {
	display: inline-flex;
	gap: var(--techbbq-space-1);
	align-items: center;
	align-self: flex-start;
	min-height: 32px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--techbbq-border-tertiary);
	border-radius: var(--techbbq-radius-md);
	background: var(--techbbq-tag-primary);
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-caption-s-size);
	font-weight: 400;
	line-height: var(--techbbq-text-caption-s-line-height);
	letter-spacing: var(--techbbq-text-caption-s-letter-spacing);
	text-transform: uppercase;
	color: var(--techbbq-content-primary);
}

.techbbq-program-card__status-dot {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--techbbq-program-card-status-dot-color);
}

/* ── Tablet (768–1023) ── */
@media (min-width: 768px) {
	.techbbq-program-card {
		--techbbq-program-card-main-gap: var(--techbbq-space-3);
		--techbbq-program-card-body-gap: var(--techbbq-space-2);
		--techbbq-program-card-title-block-gap: var(--techbbq-space-1);
		min-height: 360px;
	}
}

/* ── Desktop (1024–1439) ── */
@media (min-width: 1024px) {
	.techbbq-program-card {
		--techbbq-program-card-title-size: var(--techbbq-text-h6-size);
		--techbbq-program-card-body-gap: var(--techbbq-space-2);
		--techbbq-program-card-title-block-gap: var(--techbbq-space-1);
	}
}
