/**
 * Baby Newt Community Fridge Stylesheet
 * Retro pastel enamel refrigerator canvas, 3D magnets, tilted artwork cards, and floating sticker bursts.
 */

.bn-fridge-main {
	padding: 28px 18px 64px;
	background: radial-gradient(circle at top left, #f7f1e5 0%, #efe7d6 100%);
}

.bn-fridge-shell {
	max-width: 980px;
	margin: 0 auto;
}

.bn-fridge-door {
	position: relative;
	overflow: hidden;
	border-radius: 34px;
	border: 3px solid #d4dfd9;
	background:
		repeating-linear-gradient(
			0deg,
			rgba(255, 255, 255, 0.22) 0px,
			rgba(255, 255, 255, 0.22) 2px,
			transparent 2px,
			transparent 6px
		),
		linear-gradient(155deg, #f2f8f5 0%, #ebf3ef 48%, #e2ede7 100%);
	box-shadow:
		0 26px 60px rgba(43, 33, 24, 0.14),
		inset 0 2px 0 rgba(255, 255, 255, 0.85),
		inset -10px 0 28px rgba(0, 0, 0, 0.04);
}

.bn-fridge-specular {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 18px;
	width: 34px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
	border-radius: 28px;
	pointer-events: none;
	z-index: 1;
}

/* Freezer Top Seam & Chrome Handle */
.bn-fridge-freezer {
	position: relative;
	z-index: 2;
	padding: 22px 32px 20px;
	border-bottom: 2px solid rgba(43, 33, 24, 0.1);
	box-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bn-fridge-magnets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
}

.bn-magnet-gap {
	width: 10px;
}

.bn-magnet {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 38px;
	border-radius: 10px;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 800;
	font-size: 1.25rem;
	color: #ffffff;
	transform: rotate(var(--rot, 0deg));
	box-shadow:
		0 4px 8px rgba(43, 33, 24, 0.22),
		inset 0 2px 2px rgba(255, 255, 255, 0.45),
		inset 0 -3px 0 rgba(0, 0, 0, 0.2);
	user-select: none;
}

.bn-magnet--red { background: linear-gradient(160deg, #ef5b4c, #cf392b); }
.bn-magnet--yellow { background: linear-gradient(160deg, #f8c648, #df9c16); color: #3d2800; }
.bn-magnet--blue { background: linear-gradient(160deg, #4b96e8, #276bb8); }
.bn-magnet--mint { background: linear-gradient(160deg, #45b385, #25875e); }

.bn-fridge-handle {
	background: linear-gradient(180deg, #f9fafb 0%, #d4d8dd 52%, #b5bcc4 100%);
	border: 1px solid rgba(0, 0, 0, 0.14);
	box-shadow:
		0 5px 12px rgba(0, 0, 0, 0.16),
		inset 0 1px 1px rgba(255, 255, 255, 0.9);
	border-radius: 999px;
}

.bn-fridge-handle--top {
	width: 112px;
	height: 14px;
	flex-shrink: 0;
}

.bn-fridge-body {
	position: relative;
	z-index: 2;
	padding: 32px 36px 38px;
}

.bn-fridge-handle--side {
	position: absolute;
	top: 26px;
	right: 16px;
	width: 13px;
	height: 130px;
	opacity: 0.75;
}

/* Header */
.bn-fridge-header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 28px;
}

.bn-fridge-eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #2e6f40;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(46, 111, 64, 0.2);
	border-radius: 999px;
	padding: 5px 14px;
	margin-bottom: 10px;
}

.bn-fridge-header h1 {
	margin: 0 0 8px !important;
	font-size: clamp(1.75rem, 3.3vw, 2.45rem) !important;
	color: #2b2118 !important;
}

.bn-fridge-subtitle {
	margin: 0;
	font-size: 1rem;
	color: #4a3f35;
}

/* Pinned Artwork Card */
.bn-fridge-stage {
	display: flex;
	justify-content: center;
	margin: 14px 0 30px;
}

.bn-fridge-paper {
	position: relative;
	max-width: 580px;
	width: 100%;
	background: #fffdf9;
	border: 1px solid rgba(43, 33, 24, 0.12);
	border-radius: 16px;
	padding: 22px 22px 18px;
	transform: rotate(-1.2deg);
	box-shadow:
		0 20px 38px rgba(43, 33, 24, 0.16),
		0 3px 8px rgba(43, 33, 24, 0.08);
	transition: transform 0.25s ease;
}

.bn-fridge-paper:hover {
	transform: rotate(-0.4deg);
}

.bn-pin {
	position: absolute;
	font-size: 1.65rem;
	line-height: 1;
	filter: drop-shadow(0 4px 5px rgba(43, 33, 24, 0.28));
	user-select: none;
	z-index: 3;
}

.bn-pin--star { top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.bn-pin--lemon { top: 12px; left: -12px; transform: rotate(12deg); font-size: 1.4rem; }
.bn-pin--strawberry { bottom: 52px; right: -12px; transform: rotate(-10deg); font-size: 1.4rem; }
.bn-pin--mini { top: -12px; right: 16px; font-size: 1.35rem; }

.bn-fridge-art-frame {
	background: #ffffff;
	border: 1px solid rgba(43, 33, 24, 0.1);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
}

.bn-fridge-art-frame img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 540px;
	object-fit: contain;
	background: #ffffff;
}

.bn-fridge-paper-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.bn-fridge-artist {
	display: block;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.25rem;
	color: #2b2118;
}

.bn-fridge-date {
	display: block;
	font-size: 0.85rem;
	color: #7a6e63;
	font-weight: 600;
}

.bn-fridge-paper-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fdf6e9;
	border: 1px solid rgba(224, 109, 43, 0.28);
	color: #a84915;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.8rem;
	font-weight: 700;
}

/* Reaction Buttons & Floating Emoji Burst */
.bn-fridge-reactions {
	text-align: center;
	margin: 0 auto 22px;
	max-width: 680px;
}

.bn-fridge-reactions-prompt {
	margin: 0 0 12px;
	font-weight: 700;
	color: #2b2118;
	font-size: 0.96rem;
}

.bn-fridge-reaction-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.bn-react-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 2px solid rgba(43, 33, 24, 0.12);
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #2b2118;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(43, 33, 24, 0.08);
	transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.15s ease, background 0.15s ease;
}

.bn-react-btn:hover {
	border-color: #e06d2b;
	background: #fff9f2;
	transform: translateY(-2px);
}

.bn-react-btn.is-popping {
	animation: bn-react-spring 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
	border-color: #e06d2b;
	background: #fff4e8;
}

@keyframes bn-react-spring {
	0% { transform: scale(0.9); }
	50% { transform: scale(1.14); }
	100% { transform: scale(1); }
}

.bn-react-count {
	background: #f7f1e5;
	color: #2b2118;
	border-radius: 999px;
	padding: 2px 9px;
	font-size: 0.85rem;
	font-weight: 800;
	min-width: 26px;
}

.bn-floating-sticker {
	position: fixed;
	pointer-events: none;
	font-size: 1.55rem;
	z-index: 9999;
	animation: bn-sticker-float 0.95s ease-out forwards;
}

@keyframes bn-sticker-float {
	0% {
		opacity: 1;
		transform: translate(0, 0) scale(0.75);
	}
	100% {
		opacity: 0;
		transform: translate(var(--dx, 0px), var(--dy, -90px)) scale(1.25) rotate(var(--dr, 12deg));
	}
}

.bn-fridge-react-status {
	min-height: 20px;
	margin: 10px 0 0;
	font-size: 0.84rem;
	font-weight: 600;
	color: #2e6f40;
}

/* Share & Safety Row */
.bn-fridge-share-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 18px;
}

.bn-share-family-btn,
.bn-copy-link-btn {
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.bn-share-family-btn {
	background: #2e6f40;
	color: #ffffff;
	border: 2px solid #2e6f40;
	box-shadow: 0 6px 16px rgba(46, 111, 64, 0.22);
}

.bn-share-family-btn:hover {
	background: #245732;
	transform: translateY(-1px);
}

.bn-copy-link-btn {
	background: #ffffff;
	color: #2b2118;
	border: 2px solid rgba(43, 33, 24, 0.16);
}

.bn-copy-link-btn:hover {
	border-color: #2b2118;
}

.bn-fridge-safety-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	font-size: 0.8rem;
	color: #6b6156;
	margin-bottom: 8px;
}

.bn-report-btn {
	background: transparent;
	border: none;
	color: #8f3a34;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 2px 6px;
}

.bn-fridge-report-status {
	text-align: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: #8f3a34;
	min-height: 18px;
	margin: 0 0 18px;
}

/* Gallery Hub Grid & How It Works Cards */
.bn-fridge-gallery-grid,
.bn-fridge-how-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 24px;
}

.bn-fridge-gallery-card,
.bn-fridge-how-card {
	position: relative;
	background: #fffdf9;
	border: 1px solid rgba(43, 33, 24, 0.12);
	border-radius: 16px;
	padding: 18px;
	text-decoration: none !important;
	color: #2b2118;
	transform: rotate(var(--card-tilt, 0deg));
	box-shadow: 0 12px 26px rgba(43, 33, 24, 0.11);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bn-fridge-gallery-card:hover,
.bn-fridge-how-card:hover {
	transform: rotate(0deg) translateY(-3px);
	box-shadow: 0 18px 34px rgba(43, 33, 24, 0.16);
}

.bn-fridge-gallery-thumb {
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(43, 33, 24, 0.08);
}

.bn-fridge-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bn-fridge-gallery-meta strong {
	display: block;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.05rem;
}

.bn-fridge-gallery-meta span {
	font-size: 0.82rem;
	color: #6b6156;
	font-weight: 600;
}

.bn-fridge-how-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e06d2b;
	color: #ffffff;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bn-fridge-how-card h3 {
	margin: 0 !important;
	font-size: 1.12rem !important;
}

.bn-fridge-how-card p {
	margin: 0;
	font-size: 0.92rem;
	color: #4a3f35;
}

.bn-fridge-privacy-note {
	background: rgba(255, 253, 249, 0.85);
	border: 1px solid rgba(46, 111, 64, 0.22);
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 0.88rem;
	color: #3f362d;
	margin-bottom: 26px;
	text-align: center;
}

/* Empty State */
.bn-fridge-empty {
	max-width: 560px;
	margin: 24px auto 32px;
	background: #fffdf9;
	border: 1px solid rgba(43, 33, 24, 0.12);
	border-radius: 20px;
	padding: 34px 28px;
	text-align: center;
	box-shadow: 0 14px 28px rgba(43, 33, 24, 0.1);
}

.bn-fridge-empty-pin {
	font-size: 2rem;
	margin-bottom: 8px;
}

.bn-fridge-empty-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 18px;
}

/* Viral Conversion Module */
.bn-fridge-cta {
	margin-top: 20px;
	background: linear-gradient(135deg, #fffdf9 0%, #fff4e8 100%);
	border: 2px solid rgba(224, 109, 43, 0.28);
	border-radius: 22px;
	padding: 26px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-shadow: 0 12px 28px rgba(43, 33, 24, 0.08);
}

.bn-fridge-cta-kicker {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 800;
	color: #c45719;
	margin-bottom: 6px;
}

.bn-fridge-cta-copy h2 {
	margin: 0 0 8px !important;
	font-size: clamp(1.35rem, 2.3vw, 1.75rem) !important;
}

.bn-fridge-cta-copy p {
	margin: 0 0 16px;
	font-size: 0.96rem;
	color: #4a3f35;
	max-width: 60ch;
}

.bn-fridge-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.bn-fridge-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e06d2b;
	color: #ffffff !important;
	border-radius: 999px;
	padding: 12px 22px;
	font-weight: 800;
	font-size: 0.94rem;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(224, 109, 43, 0.28);
	transition: background 0.15s ease, transform 0.15s ease;
}

.bn-fridge-download-btn:hover {
	background: #c45719;
	transform: translateY(-1px);
}

.bn-fridge-secondary-link {
	color: #2b2118 !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: underline;
}

.bn-fridge-cta-qr {
	flex-shrink: 0;
	background: #ffffff;
	border: 1px solid rgba(43, 33, 24, 0.1);
	border-radius: 16px;
	padding: 12px;
	text-align: center;
	box-shadow: 0 6px 16px rgba(43, 33, 24, 0.06);
}

.bn-fridge-cta-qr span {
	display: block;
	margin-top: 6px;
	font-size: 0.74rem;
	font-weight: 700;
	color: #5c5046;
}

@media (max-width: 820px) {
	.bn-fridge-gallery-grid,
	.bn-fridge-how-grid {
		grid-template-columns: 1fr;
	}

	.bn-fridge-cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.bn-fridge-body {
		padding: 24px 18px 28px;
	}

	.bn-fridge-handle--side {
		display: none;
	}
}
