/* =========================================================
   TAMARA TAYLOR — SHORTS, FRESH OFF THE FEED
   ========================================================= */

.tt-feed {
	--tt-feed-bg: #090909;
	--tt-feed-panel: #111111;
	--tt-feed-cream: #f3eadf;
	--tt-feed-muted: #cabfaf;
	--tt-feed-gold: #c89b5b;
	--tt-feed-border: rgba(243, 234, 223, 0.18);

	position: relative;
	overflow: hidden;
	padding:
		clamp(4.75rem, 8vw, 8rem)
		clamp(1.25rem, 5vw, 5rem);
	background:
		radial-gradient(
			circle at 50% 0%,
			rgba(198, 155, 91, 0.065),
			transparent 34rem
		),
		var(--tt-feed-bg);
	color: var(--tt-feed-cream);
}

/*
 * These subtle lines help the black section feel like an intentional
 * editorial panel rather than a disconnected block.
 */
.tt-feed::before,
.tt-feed::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(200, 155, 91, 0.34),
		transparent
	);
}

.tt-feed::before {
	top: 0;
}

.tt-feed::after {
	bottom: 0;
}

.tt-feed__inner {
	width: min(100%, 1380px);
	margin-inline: auto;
}

/* ---------- Section heading ---------- */

.tt-feed__header {
	max-width: 1100px;
	margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
	text-align: center;
}

.tt-feed__eyebrow {
	margin: 0;
	color: var(--tt-feed-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(0.67rem, 0.8vw, 0.8rem);
	font-weight: 600;
	letter-spacing: 0.24em;
	line-height: 1.5;
	text-transform: uppercase;
}

.tt-feed__header-line {
	display: block;
	width: 72px;
	height: 1px;
	margin: 1.15rem auto 1.5rem;
	background: var(--tt-feed-gold);
}

.tt-feed__heading {
	margin: 0;
	color: var(--tt-feed-cream);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.35rem, 5vw, 5.2rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 0.98;
	text-wrap: balance;
}

/* ---------- Four-card desktop grid ---------- */

.tt-feed__viewport {
	width: 100%;
}

.tt-feed__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.tt-feed-card {
	min-width: 0;
	margin: 0;
}

.tt-feed-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tt-feed-card__media {
	position: relative;
	aspect-ratio: 9 / 16;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--tt-feed-border);
	border-radius: 9px;
	background: var(--tt-feed-panel);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.24),
		inset 0 0 0 1px rgba(255, 255, 255, 0.015);
	isolation: isolate;
}

/*
 * object-fit: cover gives every card the same dimensions while
 * preserving the image proportions.
 */
.tt-feed-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.001);
	transition:
		transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1),
		filter 550ms ease;
}

.tt-feed-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(
			to bottom,
			transparent 36%,
			rgba(0, 0, 0, 0.12) 51%,
			rgba(0, 0, 0, 0.74) 79%,
			rgba(0, 0, 0, 0.96) 100%
		);
	pointer-events: none;
}

.tt-feed-card__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 34%;
	padding: clamp(1.15rem, 2vw, 1.75rem);
}

.tt-feed-card__title {
	display: -webkit-box;
	min-height: 2.2em;
	margin: 0;
	overflow: hidden;
	color: var(--tt-feed-cream);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 1.75vw, 1.8rem);
	font-weight: 400;
	letter-spacing: -0.018em;
	line-height: 1.1;
	text-wrap: balance;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/*
 * This is the small gold line from the mockup.
 */
.tt-feed-card__accent {
	display: block;
	width: 44px;
	height: 2px;
	margin-top: 1rem;
	background: var(--tt-feed-gold);
	transform-origin: left center;
	transition: width 300ms ease;
}

.tt-feed-card__link:hover .tt-feed-card__image,
.tt-feed-card__link:focus-visible .tt-feed-card__image {
	filter: brightness(0.88);
	transform: scale(1.035);
}

.tt-feed-card__link:hover .tt-feed-card__accent,
.tt-feed-card__link:focus-visible .tt-feed-card__accent {
	width: 74px;
}

.tt-feed-card__link:focus-visible {
	outline: 2px solid var(--tt-feed-gold);
	outline-offset: 7px;
	border-radius: 9px;
}

/* ---------- Swipe progress indicator ---------- */

.tt-feed__progress {
	display: none;
	width: min(180px, 42vw);
	height: 2px;
	margin: 1.5rem auto 0;
	overflow: hidden;
	background: rgba(243, 234, 223, 0.16);
}

.tt-feed__progress-bar {
	display: block;
	width: 25%;
	height: 100%;
	background: var(--tt-feed-gold);
	transform-origin: left center;
}

/* ---------- See all Shorts button ---------- */

.tt-feed__footer {
	display: flex;
	justify-content: center;
	margin-top: clamp(2.5rem, 5vw, 4.25rem);
}

.tt-feed__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-width: min(100%, 315px);
	min-height: 54px;
	padding: 0.9rem 1.6rem;
	border: 1px solid rgba(200, 155, 91, 0.72);
	background: transparent;
	color: var(--tt-feed-cream);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.19em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		background-color 250ms ease,
		border-color 250ms ease,
		color 250ms ease,
		transform 250ms ease;
}

.tt-feed__button svg {
	flex: 0 0 auto;
	transition: transform 250ms ease;
}

.tt-feed__button:hover,
.tt-feed__button:focus-visible {
	border-color: var(--tt-feed-gold);
	background: var(--tt-feed-gold);
	color: #111111;
	transform: translateY(-2px);
}

.tt-feed__button:hover svg,
.tt-feed__button:focus-visible svg {
	transform: translateX(4px);
}

.tt-feed__button:focus-visible {
	outline: 2px solid var(--tt-feed-cream);
	outline-offset: 5px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1050px) {
	.tt-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tt-feed-card__title {
		font-size: clamp(1.4rem, 3vw, 2rem);
	}
}

/* ---------- Mobile swipe layout ---------- */

@media (max-width: 650px) {
	.tt-feed {
		padding-right: 0;
		padding-left: 0;
	}

	.tt-feed__header,
	.tt-feed__footer {
		padding-right: 1.25rem;
		padding-left: 1.25rem;
	}

	.tt-feed__heading {
		font-size: clamp(2.2rem, 12vw, 3.4rem);
	}

	.tt-feed__viewport {
		overflow-x: auto;
		padding: 0 1.25rem 0.75rem;
		scroll-behavior: smooth;
		scroll-padding-inline: 1.25rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.tt-feed__viewport::-webkit-scrollbar {
		display: none;
	}

	.tt-feed__grid {
		display: grid;
		grid-auto-columns: minmax(235px, 78vw);
		grid-auto-flow: column;
		grid-template-columns: none;
		gap: 1rem;
		width: max-content;
	}

	.tt-feed-card {
		scroll-snap-align: start;
	}

	.tt-feed-card__content {
		padding: 1.35rem;
	}

	.tt-feed-card__title {
		font-size: clamp(1.35rem, 6vw, 1.75rem);
	}

	.tt-feed__progress {
		display: block;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.tt-feed__viewport {
		scroll-behavior: auto;
	}

	.tt-feed-card__image,
	.tt-feed-card__accent,
	.tt-feed__button,
	.tt-feed__button svg {
		transition: none;
	}
}