/* Fresh from the Feed — front-end styles */

.wcff {
	--wcff-bg: #000;
	--wcff-fg: #fff;
	--wcff-accent: #4b5cf0;
	--wcff-ring: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
	--wcff-gap: 12px;
	--wcff-per-view: 1.35;
	background: var(--wcff-bg);
	color: var(--wcff-fg);
	padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
	overflow: hidden;
}

.wcff *,
.wcff *::before,
.wcff *::after { box-sizing: border-box; }

.wcff__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Headline ---------------------------------------------------------------- */

.wcff__title {
	margin: 0;
	text-align: center;
	font-weight: 800;
	font-size: clamp(28px, 5.2vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: inherit;
}
.wcff__title em { font-style: italic; }

/* Profile row ------------------------------------------------------------- */

.wcff__profile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: clamp(16px, 2.5vw, 26px);
}
.wcff__profile-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.wcff__handle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 700;
}
.wcff__verified { width: 19px; height: 19px; flex: none; }

.wcff__ring {
	position: relative;
	display: inline-flex;
	padding: 2px;
	border-radius: 50%;
/* 	background: var(--wcff-ring); */
	flex: none;
}
.wcff__ring img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wcff-bg);
}
.wcff__ring--lg img { width: 60px; height: 60px; }

.wcff__follow {
	display: inline-block;
	background: var(--wcff-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	padding: 12px 30px;
	border-radius: 8px;
	transition: filter 0.2s ease;
}
.wcff__follow:hover,
.wcff__follow:focus-visible { filter: brightness(1.15); color: #fff; }

/* Carousel ---------------------------------------------------------------- */

.wcff__carousel {
	position: relative;
	margin-top: clamp(18px, 3vw, 30px);
}

.wcff__track {
	display: flex;
	gap: var(--wcff-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.wcff__track::-webkit-scrollbar { display: none; }

.wcff__item {
	flex: 0 0 calc((100% - (var(--wcff-per-view) - 1) * var(--wcff-gap)) / var(--wcff-per-view));
	scroll-snap-align: start;
	margin: 0;
	list-style: none;
}

.wcff__card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 4px;
	background: #111;
	border: 2px solid transparent;
	transition: border-color 0.25s ease;
	text-decoration: none;
}
.wcff__card:hover,
.wcff__card:focus-visible { border-color: var(--wcff-accent); }

.wcff__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.wcff__card:hover .wcff__media { transform: scale(1.04); }

.wcff__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.wcff__live {
	position: absolute;
	left: 50%;
	bottom: -7px;
	transform: translateX(-50%);
	background: #ff2d55;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 3px;
}
.wcff__username {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
}

.wcff__actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}
.wcff__actions-group {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.wcff__actions svg { width: 22px; height: 22px; }

/* Navigation -------------------------------------------------------------- */

.wcff__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.wcff__nav svg { width: 20px; height: 20px; }
.wcff__nav:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }
.wcff__nav[disabled] { opacity: 0.3; cursor: default; }
.wcff__nav--prev { left: var(--wcff-nav-offset, -14px); }
.wcff__nav--next { right: var(--wcff-nav-offset, -14px); }

/* Once the viewport is wide enough, sit the arrows clear of the tiles. */
@media (min-width: 1340px) {
	.wcff { --wcff-nav-offset: -58px; }
}

.wcff__progress {
	position: relative;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.18);
	max-width: 280px;
	margin: 26px auto 0;
	overflow: hidden;
}
.wcff__progress span {
	position: absolute;
	inset: 0 auto 0 0;
	width: 30%;
	border-radius: 4px;
	background: #fff;
	transition: transform 0.15s linear;
}

.wcff a:focus-visible,
.wcff button:focus-visible {
	outline: 2px solid var(--wcff-accent);
	outline-offset: 3px;
}

/* Breakpoints ------------------------------------------------------------- */

@media (min-width: 640px)  { .wcff { --wcff-per-view: 2.4; } }
@media (min-width: 900px)  { .wcff { --wcff-per-view: 3.2; } }
@media (min-width: 1200px) { .wcff { --wcff-per-view: 3.6; } }

@media (max-width: 899px) {
	.wcff__nav { display: none; }
	.wcff__profile { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.wcff * { transition: none !important; }
	.wcff__track { scroll-behavior: auto !important; }
}
