/**
 * Chef + company profile pages — HeyChef design system.
 *
 * @package Recipefy
 */

/* ── Page shell ─────────────────────────────────────── */
.rfy-chef-profile,
.rfy-company-profile {
	background: var(--rfy-background);
}

.rfy-chef-profile__body {
	padding-block: var(--rfy-space-6) 0;
}

.rfy-chef-profile__stack {
	display: flex;
	flex-direction: column;
	gap: var(--rfy-section-gap-inner);
}

@media (min-width: 768px) {
	.rfy-chef-profile__stack {
		gap: var(--rfy-space-8);
	}
}

/* ── Surface card — same language as .arc-recipe-section / account panel ── */
.rfy-chef-card {
	background: var(--rfy-surface);
	border: 1px solid var(--rfy-line);
	border-radius: var(--rfy-radius-md);
	padding: 20px 18px;
	box-shadow: var(--rfy-shadow-sm);
}

@media (min-width: 640px) {
	.rfy-chef-card {
		padding: 28px 24px;
		border-radius: var(--rfy-radius-lg);
	}
}

@media (min-width: 768px) {
	.rfy-chef-card {
		padding: 36px 32px;
		box-shadow: var(--rfy-shadow-md);
	}
}

.rfy-chef-card .rfy-eyebrow {
	margin-bottom: var(--rfy-space-3);
}

.rfy-chef-card .arc-section-heading {
	margin: 0 0 var(--rfy-space-6);
}

.rfy-chef-section {
	margin-bottom: 0;
}

/* ── Hero — banner + overlapping profile card ── */
.rfy-chef-hero,
.rfy-company-hero {
	position: relative;
	margin-bottom: 0;
	background: var(--rfy-background);
}

.rfy-chef-hero__banner,
.rfy-company-hero__banner {
	position: relative;
	height: var(--rfy-chef-hero-banner-height-mobile, 300px);
	overflow: hidden;
	background: var(--rfy-primary-dark);
}

@media (min-width: 768px) {
	.rfy-chef-hero__banner,
	.rfy-company-hero__banner {
		height: var(--rfy-chef-hero-banner-height-desktop, 400px);
	}
}

.rfy-chef-hero__banner--fallback,
.rfy-company-hero__banner--fallback {
	background: linear-gradient(135deg, var(--rfy-primary-dark) 0%, #5a3020 55%, var(--rfy-secondary) 100%);
}

.rfy-chef-hero__banner-img,
.rfy-company-hero__banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.rfy-chef-hero__banner-overlay,
.rfy-company-hero__banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(43, 26, 16, 0.12) 0%,
		rgba(43, 26, 16, 0.45) 100%
	);
	pointer-events: none;
}

.rfy-chef-hero__card,
.rfy-company-hero__card {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(48px, 7vw, 64px));
	margin-bottom: 0;
}

.rfy-chef-hero__identity,
.rfy-company-hero__identity {
	display: flex;
	flex-direction: column;
	gap: var(--rfy-space-4);
	align-items: flex-start;
}

@media (min-width: 768px) {
	.rfy-chef-hero__identity,
	.rfy-company-hero__identity {
		flex-direction: row;
		align-items: flex-end;
		gap: var(--rfy-space-6);
	}
}

.rfy-chef-hero__avatar-wrap,
.rfy-company-hero__logo-wrap {
	flex-shrink: 0;
	margin-top: calc(-1 * clamp(40px, 6vw, 56px));
}

.rfy-chef-hero__avatar,
.rfy-company-hero__logo-img {
	width: clamp(96px, 12vw, 120px);
	height: clamp(96px, 12vw, 120px);
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--rfy-surface);
	box-shadow: var(--rfy-shadow-md);
	display: block;
	background: var(--rfy-surface);
}

.rfy-chef-hero__avatar--placeholder {
	background: linear-gradient(135deg, var(--rfy-primary) 0%, var(--rfy-accent) 100%);
}

.rfy-company-hero__logo-img {
	border-radius: var(--rfy-radius-md);
}

.rfy-chef-hero__text,
.rfy-company-hero__text {
	min-width: 0;
	color: var(--rfy-foreground);
}

.rfy-chef-hero__title,
.rfy-company-hero__title {
	margin: 0 0 var(--rfy-space-2);
	font-size: clamp(1.625rem, 3.4vw, 2.375rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--rfy-foreground);
}

.rfy-chef-hero__subtitle,
.rfy-company-hero__subtitle {
	margin: 0;
	max-width: 56ch;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--rfy-muted);
}

.rfy-chef-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rfy-space-2);
	margin-top: var(--rfy-space-3);
}

.rfy-chef-hero__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--rfy-radius-pill);
	background: var(--rfy-background);
	border: 1px solid var(--rfy-border);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--rfy-foreground);
	text-decoration: none;
	transition: background var(--rfy-transition), border-color var(--rfy-transition), color var(--rfy-transition);
}

.rfy-chef-hero__chip--link:hover {
	border-color: var(--rfy-primary);
	color: var(--rfy-primary);
}

.rfy-chef-hero__card .rfy-chef-social {
	margin: var(--rfy-space-6) 0 0;
	padding-top: var(--rfy-space-4);
	border-top: 1px solid var(--rfy-line);
}

.rfy-chef-hero__card .rfy-share {
	margin: var(--rfy-space-6) 0 0;
	padding-top: var(--rfy-space-4);
	border-top: 1px solid var(--rfy-line);
}

.rfy-company-hero__website {
	display: inline-flex;
	margin-top: var(--rfy-space-3);
	font-weight: 600;
	color: var(--rfy-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rfy-company-hero__website:hover {
	color: var(--rfy-primary-dark);
}

/* ── Social links ───────────────────────────────────── */
.rfy-chef-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.rfy-chef-social__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: var(--rfy-radius-pill);
	background: var(--rfy-background);
	border: 1px solid var(--rfy-border);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--rfy-foreground);
	text-decoration: none;
	transition: transform var(--rfy-transition), box-shadow var(--rfy-transition), border-color var(--rfy-transition);
}

.rfy-chef-social__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--rfy-shadow-md);
	border-color: var(--rfy-primary);
	color: var(--rfy-primary);
}

.rfy-chef-social__icon {
	display: inline-flex;
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
}

.rfy-chef-social__icon svg {
	width: 100%;
	height: 100%;
}


/* ── About ──────────────────────────────────────────── */
.rfy-chef-about__body,
.rfy-company-about {
	max-width: 72ch;
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--rfy-muted);
}

.rfy-chef-about__body p,
.rfy-company-about p {
	font-size: 1.125rem;
	margin-bottom: 1em;
	color: var(--rfy-muted);
}

.rfy-chef-about__body h2,
.rfy-chef-about__body h3,
.rfy-company-about h2,
.rfy-company-about h3 {
	color: var(--rfy-foreground);
	margin-top: 1.5em;
}

/* ── Gallery ────────────────────────────────────────── */
.rfy-chef-gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--rfy-space-6);
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (min-width: 768px) {
	.rfy-chef-gallery__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.rfy-chef-gallery__item {
	margin: 0;
	border-radius: var(--rfy-radius-md);
	overflow: hidden;
	box-shadow: var(--rfy-shadow-sm);
	background: var(--rfy-surface);
	border: 1px solid var(--rfy-border);
}

.rfy-chef-gallery__item .rfy-lightbox__trigger {
	height: 100%;
}

.rfy-chef-gallery__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.rfy-chef-gallery__item:hover .rfy-chef-gallery__img {
	transform: scale(1.04);
}

/* ── Video facade (click-to-load — no iframe on page load) ── */
.rfy-video-facade {
	position: relative;
	margin: 12px;
	border-radius: var(--rfy-radius-sm);
	overflow: hidden;
	background: var(--rfy-primary-dark);
	aspect-ratio: 16 / 9;
}

.rfy-video-facade__poster {
	position: relative;
	width: 100%;
	height: 100%;
}

.rfy-video-facade__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rfy-video-facade__thumb--placeholder {
	background: linear-gradient(135deg, var(--rfy-primary-dark) 0%, var(--rfy-primary) 100%);
}

.rfy-video-facade__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(43, 26, 16, 0.28);
	cursor: pointer;
	transition: background var(--rfy-transition);
}

.rfy-video-facade__play:hover,
.rfy-video-facade__play:focus-visible {
	background: rgba(43, 26, 16, 0.42);
	outline: none;
}

.rfy-video-facade__play-icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--rfy-accent);
	box-shadow: var(--rfy-shadow-md);
	position: relative;
	transition: transform var(--rfy-transition);
}

.rfy-video-facade__play:hover .rfy-video-facade__play-icon,
.rfy-video-facade__play:focus-visible .rfy-video-facade__play-icon {
	transform: scale(1.06);
}

.rfy-video-facade__play-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent var(--rfy-primary-dark);
}

.rfy-video-facade__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	aspect-ratio: 16 / 9;
}

.rfy-video-facade.is-playing {
	aspect-ratio: 16 / 9;
}

/* ── Media / video cards ────────────────────────────── */
.rfy-chef-media__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 900px) {
	.rfy-chef-media__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.rfy-chef-media__card {
	background: var(--rfy-surface-alt);
	border: 1px solid var(--rfy-line);
	border-radius: var(--rfy-radius-md);
	box-shadow: none;
	overflow: hidden;
}

.rfy-chef-media__title {
	margin: 0;
	padding: 16px 20px 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--rfy-foreground);
}

.rfy-chef-media__card .rfy-video-facade {
	margin: 12px;
}

/* ── Recipes band (reuses archive filter bar + grid) ── */
.rfy-chef-recipes {
	padding-block: 0 var(--rfy-space-8);
	margin-top: var(--rfy-space-8);
	background: var(--rfy-background);
}

.rfy-chef-recipes__intro {
	margin-bottom: 0;
}

.rfy-chef-recipes__intro .arc-section-heading {
	margin-bottom: 0;
}

.rfy-chef-recipes .rfy-filter-bar {
	margin-bottom: 0;
}

.rfy-chef-recipes .rfy-archive-results {
	padding-block: 24px 0;
}

/* ── Company profile (shared hero tokens) ───────────── */
.rfy-company-profile > .rfy-container {
	display: flex;
	flex-direction: column;
	gap: var(--rfy-section-gap-inner);
	padding-block: var(--rfy-space-8);
}

.rfy-company-chefs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: var(--rfy-space-6);
}

.rfy-company-chef-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 20px 16px;
	border-radius: var(--rfy-radius-md);
	background: var(--rfy-surface);
	border: 1px solid var(--rfy-border);
	box-shadow: var(--rfy-shadow-sm);
	text-decoration: none;
	color: inherit;
	transition: transform var(--rfy-transition), box-shadow var(--rfy-transition);
}

.rfy-company-chef-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rfy-shadow-md);
}

.rfy-company-chef-card__img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--rfy-border);
}

/* ── Account chef status ────────────────────────────── */
.rfy-chef-status {
	padding: 16px 20px;
	border-radius: var(--rfy-radius-md);
	background: #fff7ed;
	border: 1px solid #fed7aa;
	margin-bottom: 24px;
}

.rfy-chef-status--published {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	padding: 4px 12px;
	border-radius: var(--rfy-radius-pill);
	background: rgba(90, 143, 92, 0.15);
	border: 1px solid rgba(90, 143, 92, 0.3);
}

.rfy-chef-status--published .rfy-chef-status__badge {
	margin: 0;
	font-size: 0.8125rem;
	color: #2d6e30;
}

.rfy-chef-status__badge {
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--rfy-foreground);
}

/* ── Recipe card chef link ──────────────────────────── */
.arc-recipe-card__chef-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.arc-recipe-card__chef-link:hover {
	color: var(--rfy-primary);
}

/* ── Chef archive grid + cards ──────────────────────── */
.rfy-chef-archive-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.rfy-chef-archive-card {
	border-radius: var(--rfy-radius-md);
	background: var(--rfy-surface);
	border: 1px solid var(--rfy-border);
	box-shadow: var(--rfy-shadow-sm);
	transition: transform var(--rfy-transition), box-shadow var(--rfy-transition);
}

.rfy-chef-archive-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rfy-shadow-md);
}

.rfy-chef-archive-card__shell {
	position: relative;
}

.rfy-chef-archive-card__shell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 24px 20px;
	text-align: center;
}

.rfy-chef-archive-card__avatar-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.rfy-chef-archive-card__link {
	text-decoration: none;
	color: inherit;
}

.rfy-chef-archive-card__avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.rfy-chef-archive-card__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--rfy-border);
}

.rfy-chef-archive-card__avatar--placeholder {
	background: var(--rfy-secondary);
}

.rfy-chef-archive-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	width: 100%;
}

.rfy-chef-archive-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rfy-foreground);
	margin: 0;
	line-height: 1.25;
}

.rfy-chef-archive-card__desc {
	font-size: 1.125rem;
	color: var(--rfy-muted);
	margin: 0;
	line-height: 1.5;
	max-width: 36ch;
}

.rfy-chef-archive-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
}

.rfy-chef-archive-card__chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: var(--rfy-radius-pill);
	font-size: 0.875rem;
	font-weight: 600;
	background: color-mix(in srgb, var(--rfy-secondary) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--rfy-secondary) 25%, transparent);
	color: var(--rfy-secondary);
}

.rfy-chef-archive-card__chip--muted {
	background: var(--rfy-background);
	border-color: var(--rfy-border);
	color: var(--rfy-muted);
	font-weight: 500;
}

@media (min-width: 1024px) {
	.rfy-chef-archive-card__shell {
		flex-direction: row;
		align-items: flex-start;
		text-align: start;
		padding: 24px;
	}

	.rfy-chef-archive-card__body {
		align-items: flex-start;
	}

	.rfy-chef-archive-card__meta {
		justify-content: flex-start;
	}
}

/* ── Chef page claim banner (v2.7.0) ─────────────────── */
.rfy-chef-claim {
	margin-block-start: var(--rfy-space-4);
	padding-block-start: var(--rfy-space-4);
	border-block-start: 1px solid var(--rfy-claim-banner-border, var(--rfy-line));
}

.rfy-chef-claim__inner {
	display: flex;
	flex-direction: column;
	gap: var(--rfy-space-3);
}

.rfy-chef-claim__title {
	margin: 0;
	font-size: var(--rfy-type-h3);
	font-weight: 700;
	color: var(--rfy-foreground);
}

.rfy-chef-claim__text {
	margin: 0;
	font-size: var(--rfy-type-body);
	color: var(--rfy-foreground);
	line-height: 1.5;
}

.rfy-chef-claim__cta,
.rfy-chef-claim__toggle,
.rfy-chef-claim__submit,
.rfy-chef-claim__withdraw {
	align-self: flex-start;
}

.rfy-chef-claim__form {
	display: flex;
	flex-direction: column;
	gap: var(--rfy-space-3);
	margin-block-start: var(--rfy-space-2);
}

.rfy-chef-claim__label {
	font-size: var(--rfy-type-body);
	font-weight: 600;
	color: var(--rfy-foreground);
}

.rfy-chef-claim__hint {
	margin: 0;
	font-size: 0.875rem;
	color: var(--rfy-muted);
}

.rfy-chef-claim__textarea {
	width: 100%;
	min-height: 120px;
	padding: 12px 16px;
	border: 1.5px solid var(--rfy-border);
	border-radius: var(--rfy-radius-sm);
	font-size: var(--rfy-type-body);
	font-family: var(--rfy-font);
	line-height: 1.5;
	color: var(--rfy-foreground);
	background: var(--rfy-surface);
	resize: vertical;
	box-sizing: border-box;
	transition: border-color var(--rfy-transition), box-shadow var(--rfy-transition);
}

.rfy-chef-claim__textarea:focus,
.rfy-chef-claim__textarea:focus-visible {
	outline: none;
	border-color: var(--rfy-primary);
	box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.12);
}

.rfy-chef-claim__feedback {
	margin: 0;
	font-size: var(--rfy-type-body);
	color: var(--rfy-primary);
}

.rfy-chef-claim-status {
	margin-block-end: var(--rfy-space-6);
}

.rfy-chef-claim-status__title {
	margin: 0 0 var(--rfy-space-2);
	font-size: var(--rfy-type-h3);
}

.rfy-chef-claim-status__text {
	margin: 0 0 var(--rfy-space-3);
	font-size: var(--rfy-type-body);
}
