/**
 * DinnerlyHub - Sidebar Layout
 * Meet the Creator widget - Professional Redesign
 */

/* Scoped reset */
.dh-sidebar *,
.dh-sidebar *::before,
.dh-sidebar *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.dh-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	font-family: var(--dh-font);
	position: sticky;
	top: 88px;
	align-self: start;
}

/* ============================================
   CREATOR CARD - MAIN CONTAINER
   ============================================ */
.dh-sidebar__creator {
	background: var(--dh-white);
	border-radius: var(--dh-radius-lg);
	overflow: hidden;
	position: relative;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.08),
		0 1px 2px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(74, 124, 89, 0.1);
	animation: creatorCardEntrance 0.6s ease forwards;
}

@keyframes creatorCardEntrance {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Decorative accent bar */
.dh-sidebar__creator::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--dh-green) 0%, var(--dh-orange) 100%);
	z-index: 10;
}

/* ============================================
   IMAGE SECTION
   ============================================ */
.dh-sidebar__creator-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(135deg, #f0f7f2 0%, #fdf4ef 100%);
}

.dh-sidebar__creator-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dh-sidebar__creator:hover .dh-sidebar__creator-img {
	transform: scale(1.05);
}

/* Vignette overlay */
.dh-sidebar__creator-img-overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse at center,
		transparent 0%,
		transparent 50%,
		rgba(20, 40, 30, 0.4) 100%
	);
	pointer-events: none;
}

/* Wave divider */
.dh-sidebar__creator-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 40px;
	overflow: hidden;
}

.dh-sidebar__creator-wave svg {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 40px;
}

/* ============================================
   AVATAR - OVERLAPPING PROFILE CIRCLE
   ============================================ */
.dh-sidebar__creator-avatar-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	margin-top: -50px;
	z-index: 5;
}

.dh-sidebar__creator-avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 4px solid var(--dh-white);
	box-shadow:
		0 4px 16px rgba(0, 0, 0, 0.12),
		0 0 0 3px rgba(74, 124, 89, 0.15);
	object-fit: cover;
	object-position: top center;
	transition: transform var(--dh-ease), box-shadow var(--dh-ease);
}

.dh-sidebar__creator:hover .dh-sidebar__creator-avatar {
	transform: scale(1.05);
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.15),
		0 0 0 3px rgba(74, 124, 89, 0.25);
}

/* Verified badge */
.dh-sidebar__creator-verified {
	position: absolute;
	bottom: 2px;
	right: calc(50% - 50px);
	width: 26px;
	height: 26px;
	background: var(--dh-green);
	border-radius: 50%;
	border: 3px solid var(--dh-white);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dh-white);
}

/* ============================================
   BODY CONTENT
   ============================================ */
.dh-sidebar__creator-body {
	padding: 16px 24px 24px;
	text-align: center;
	position: relative;
	background:
		linear-gradient(180deg, transparent 0%, rgba(74, 124, 89, 0.02) 100%),
		url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='none'/%3E%3Cpath d='M10 10h.01' stroke='%234a7c59' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* Small top label */
.dh-sidebar__creator-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.65rem;
	font-weight: 600;
	color: var(--dh-text-muted);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.dh-sidebar__creator-label::before,
.dh-sidebar__creator-label::after {
	content: '';
	width: 20px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(74, 124, 89, 0.3));
}

.dh-sidebar__creator-label::after {
	background: linear-gradient(90deg, rgba(74, 124, 89, 0.3), transparent);
}

/* Name with script font */
.dh-sidebar__creator-name {
	font-family: var(--dh-font-script, 'Dancing Script', cursive);
	font-size: 2rem;
	font-weight: 700;
	color: var(--dh-orange);
	margin-bottom: 4px;
	line-height: 1.2;
	position: relative;
	display: inline-block;
}

/* Decorative underline */
.dh-sidebar__creator-name::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--dh-orange), transparent);
	opacity: 0.5;
}

/* Tagline */
.dh-sidebar__creator-tagline {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--dh-text-heading);
	margin-bottom: 16px;
	line-height: 1.4;
}

/* Quote-style description */
.dh-sidebar__creator-quote {
	position: relative;
	padding: 16px 20px;
	margin: 0 0 20px;
	background: var(--dh-green-subtle);
	border-radius: var(--dh-radius-md);
	border-left: 3px solid var(--dh-green);
}

.dh-sidebar__creator-quote-icon {
	position: absolute;
	top: -8px;
	left: 12px;
	width: 24px;
	height: 24px;
	background: var(--dh-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dh-green);
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dh-sidebar__creator-desc {
	font-size: 0.85rem;
	color: var(--dh-text-light);
	line-height: 1.7;
	font-style: italic;
	text-align: left;
	margin: 0;
}

/* Signature */
.dh-sidebar__creator-signature {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.dh-sidebar__creator-signature svg {
	height: 28px;
	opacity: 0.7;
}

/* ============================================
   BUTTONS - STACKED LAYOUT
   ============================================ */
.dh-sidebar__creator-btns {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.dh-sidebar__creator-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: var(--dh-radius-pill);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	transition: all var(--dh-ease);
	position: relative;
	overflow: hidden;
}

.dh-sidebar__creator-btn--primary {
	background: linear-gradient(135deg, var(--dh-green) 0%, var(--dh-green-dark) 100%);
	color: var(--dh-white);
	box-shadow: 0 4px 16px rgba(74, 124, 89, 0.35);
}

.dh-sidebar__creator-btn--primary::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
	opacity: 0;
	transition: opacity var(--dh-ease);
}

.dh-sidebar__creator-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow:
		0 8px 24px rgba(74, 124, 89, 0.4),
		0 0 0 3px rgba(74, 124, 89, 0.15);
}

.dh-sidebar__creator-btn--primary:hover::before {
	opacity: 1;
}

.dh-sidebar__creator-btn--secondary {
	background: transparent;
	color: var(--dh-green);
	border: 2px solid rgba(74, 124, 89, 0.25);
}

.dh-sidebar__creator-btn--secondary:hover {
	background: rgba(74, 124, 89, 0.08);
	border-color: var(--dh-green);
	transform: translateY(-2px);
}

.dh-sidebar__creator-btn:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 3px;
}

.dh-sidebar__creator-btn-icon {
	width: 18px;
	height: 18px;
	transition: transform var(--dh-ease);
}

.dh-sidebar__creator-btn:hover .dh-sidebar__creator-btn-icon {
	transform: translateX(3px);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.dh-sidebar__social-wrap {
	padding-top: 20px;
	border-top: 1px solid rgba(74, 124, 89, 0.1);
	position: relative;
}

/* Decorative divider icon */
.dh-sidebar__social-divider {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 28px;
	height: 28px;
	background: var(--dh-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dh-orange);
	border: 1px solid rgba(74, 124, 89, 0.1);
}

.dh-sidebar__social-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.dh-sidebar__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--dh-radius-md);
	background: var(--social-color);
	color: var(--dh-white);
	text-decoration: none;
	transition: all var(--dh-ease);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	animation: socialIconEntrance 0.4s ease forwards;
	animation-delay: var(--delay, 0s);
	opacity: 0;
	transform: translateY(10px);
}

@keyframes socialIconEntrance {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dh-sidebar__social-link:hover {
	transform: translateY(-4px) scale(1.08);
	box-shadow:
		0 8px 20px rgba(0, 0, 0, 0.2),
		0 0 0 3px rgba(255, 255, 255, 0.8);
}

.dh-sidebar__social-link:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 3px;
}

.dh-sidebar__social-link svg {
	width: 18px;
	height: 18px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
	.dh-sidebar {
		position: static;
		width: 100%;
	}

	.dh-sidebar__creator-img-wrap {
		aspect-ratio: 16 / 8;
	}
}

@media (max-width: 540px) {
	.dh-sidebar__creator-img-wrap {
		aspect-ratio: 4 / 3;
	}

	.dh-sidebar__creator-body {
		padding: 16px 18px 20px;
	}

	.dh-sidebar__creator-name {
		font-size: 1.75rem;
	}

	.dh-sidebar__creator-btns {
		gap: 8px;
	}

	.dh-sidebar__creator-btn {
		padding: 12px 20px;
		font-size: 0.85rem;
	}
}
