/**
 * TechBBQ About History — year timeline section.
 *
 * Figma About Us: 5207:50454 (1440), 4628:15083 (1024), 4629:16101 (768), 4629:16262 (360).
 *
 * Breakpoints (mobile-first): 0–767 (base), 768–1023, 1024–1440, 1440+.
 */

.techbbq-about-history {
	box-sizing: border-box;
	width: 100%;
	padding: var(--techbbq-section-space-small) 0 var(--techbbq-section-space-medium);
	color: var(--techbbq-content-primary);
	background-color: var(--techbbq-bg-main);
	--techbbq-about-history-dot-line-gap: 8px;
}

.techbbq-about-history__layout {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-7);
}

.techbbq-about-history__title {
	margin: 0;
}

.techbbq-about-history__entries {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.techbbq-about-history__rail {
	display: none;
}

.techbbq-about-history__entry {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	grid-template-areas:
		'track year'
		'track card';
	align-items: start;
	column-gap: 24px;
	row-gap: var(--techbbq-space-3);
}

.techbbq-about-history__year {
	grid-area: year;
	margin: 0;
}

.techbbq-about-history__track {
	grid-area: track;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	gap: var(--techbbq-about-history-dot-line-gap);
	min-height: 100%;
}

.techbbq-about-history__dot {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 8px solid rgba(242, 242, 242, 0.08);
	border-radius: 50%;
	background-color: var(--techbbq-bg-main);
}

.techbbq-about-history__dot-inner {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--techbbq-content-secondary);
}

.techbbq-about-history__line {
	position: relative;
	display: block;
	flex: 1 1 auto;
	width: 1px;
	min-height: 1px;
	margin-bottom: var(--techbbq-about-history-dot-line-gap);
	background: linear-gradient(
		to bottom,
		rgba(242, 242, 242, 0.35),
		rgba(242, 242, 242, 0.08)
	);
}

.techbbq-about-history__line-progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 0;
	background-color: var(--techbbq-content-accent-1);
	pointer-events: none;
}

.techbbq-about-history__entry:last-child .techbbq-about-history__line {
	display: none;
}

.techbbq-about-history__entry:last-child .techbbq-about-history__card {
	margin-bottom: 0;
}

.techbbq-about-history__card {
	grid-area: card;
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-bottom: var(--techbbq-space-10);
	padding: 20px 20px 24px;
	border-radius: 12px;
	background-color: var(--techbbq-bg-surface);
}

.techbbq-about-history__media {
	overflow: hidden;
	border-radius: 4px;
}

.techbbq-about-history__image {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.techbbq-about-history__content {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-3);
}

.techbbq-about-history__text {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-2);
}

.techbbq-about-history__theme-title {
	margin: 0;
}

.techbbq-about-history__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--techbbq-space-1);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.techbbq-about-history__meta-item {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	font-size: var(--techbbq-text-paragraph-s-size);
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.techbbq-about-history__meta-item + .techbbq-about-history__meta-item::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-right: var(--techbbq-space-1);
	border-radius: 50%;
	background-color: var(--techbbq-content-primary);
}

.techbbq-about-history__description {
	margin: 0;
	color: var(--techbbq-content-secondary);
}

.techbbq-about-history__toggle {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--techbbq-btn-secondary-content);
	font-family: var(--techbbq-font-family-body);
	font-size: var(--techbbq-text-paragraph-m-size);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	cursor: pointer;
}

.techbbq-about-history__toggle:focus-visible {
	outline: 2px solid var(--techbbq-content-primary);
	outline-offset: 2px;
}

.techbbq-about-history__entry.is-open .techbbq-about-history__chevron {
	transform: rotate(180deg);
}

.techbbq-about-history__chevron {
	transition: transform 0.2s ease;
}

.techbbq-about-history__panel {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-2);
}

.techbbq-about-history__panel[hidden] {
	display: none;
}

.techbbq-about-history__group {
	display: flex;
	flex-direction: column;
	gap: var(--techbbq-space-1);
}

.techbbq-about-history__group-label {
	margin: 0;
	font-size: var(--techbbq-text-paragraph-xs-size);
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.techbbq-about-history__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.techbbq-about-history__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	border: 1px solid var(--techbbq-border-tertiary);
	border-radius: 8px;
	background: var(--techbbq-tag-primary);
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.techbbq-about-history__entry.is-timeline-active .techbbq-about-history__dot {
	border-color: rgba(206, 15, 46, 0.2);
}

.techbbq-about-history__entry.is-timeline-active .techbbq-about-history__dot-inner {
	background-color: var(--techbbq-content-accent-1);
}

/* ── Tablet (768–1023) ──────────────────────────────────────── */
@media (min-width: 768px) {
	.techbbq-about-history {
		--techbbq-about-history-dot-line-gap: 16px;
		padding-bottom: var(--techbbq-section-space-large);
	}

	.techbbq-about-history__image {
		height: 320px;
	}

	.techbbq-about-history__entry {
		grid-template-columns: 88px 40px minmax(0, 1fr);
		grid-template-areas:
			'year track card'
			'. track card';
		column-gap: var(--techbbq-space-5);
		row-gap: 0;
	}

	.techbbq-about-history__year {
		padding-top: 8px;
	}

	.techbbq-about-history__track {
		padding-top: 8px;
	}
}

/* ── Desktop (1024–1440) ──────────────────────────────────────── */
@media (min-width: 1024px) {
	.techbbq-about-history__layout {
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
		gap: var(--techbbq-space-5);
	}

	.techbbq-about-history__header {
		flex: 0 0 240px;
	}

	.techbbq-about-history__entries {
		flex: 1 1 auto;
		max-width: 961px;
	}

	.techbbq-about-history__image {
		height: 420px;
	}
}

/* ── Large desktop (1440+) ──────────────────────────────────────── */
@media (min-width: 1440px) {
	.techbbq-about-history__header {
		flex-basis: 280px;
	}
}
