:root {
	--boardly-accent: #e35d8a;
}

.boardly-img-wrap {
	position: relative;
	display: inline-block;
	max-width: 100%;
}
.boardly-img-wrap img {
	display: block;
	max-width: 100%;
	height: auto;
}

.boardly-save-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	transition: transform 0.15s ease;
	padding: 0;
	z-index: 5;
}
.boardly-save-btn:hover {
	transform: scale(1.08);
}
.boardly-save-btn .boardly-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--boardly-accent);
	stroke-width: 2;
}
.boardly-save-btn.is-saved .boardly-icon {
	fill: var(--boardly-accent);
	stroke: var(--boardly-accent);
}

.boardly-pin-btn {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e60023;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease, background 0.15s ease;
	text-decoration: none;
	z-index: 5;
}
.boardly-pin-btn:hover {
	background: #ad081b;
	transform: scale(1.08);
}
.boardly-pin-icon {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.boardly-board-menu {
	position: absolute;
	top: 52px;
	right: 10px;
	z-index: 999;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
	padding: 6px;
	display: flex;
	flex-direction: column;
	min-width: 170px;
}
.boardly-board-menu-item {
	border: none;
	background: none;
	text-align: left;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	color: #333;
}
.boardly-board-menu-item:hover {
	background: #f6ecf0;
}

.boardly-bubble {
	position: fixed;
	z-index: 9999;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--boardly-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	text-decoration: none;
	/* bottom + left/right are set inline per Boardly > Settings */
}
.boardly-bubble.boardly-pulse {
	animation: boardly-pulse 1.8s ease-out 3;
}
@keyframes boardly-pulse {
	0% {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(227, 93, 138, 0.55);
	}
	70% {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 16px rgba(227, 93, 138, 0);
	}
	100% {
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(227, 93, 138, 0);
	}
}
.boardly-bubble .boardly-icon {
	width: 24px;
	height: 24px;
	fill: #fff;
	stroke: #fff;
	stroke-width: 1;
}
.boardly-bubble-count {
	position: absolute;
	top: -4px;
	right: -4px;
	background: #222;
	color: #fff;
	font-size: 11px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

/* Board page */
.boardly-board-page {
	max-width: 980px;
	margin: 0 auto;
}
.boardly-empty {
	text-align: center;
	padding: 48px 16px;
	color: #555;
}
.boardly-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 12px;
}
.boardly-tab {
	border: 1px solid #ddd;
	background: #fff;
	padding: 8px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
}
.boardly-tab.is-active {
	background: var(--boardly-accent);
	color: #fff;
	border-color: var(--boardly-accent);
}
.boardly-add-board {
	font-weight: bold;
}
.boardly-panel {
	display: none;
}
.boardly-panel.is-active {
	display: block;
}
.boardly-board-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
	align-items: center;
}
.boardly-board-controls button,
.boardly-email-send {
	border: 1px solid var(--boardly-accent);
	background: #fff;
	color: var(--boardly-accent);
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}
.boardly-board-controls button:hover,
.boardly-email-send:hover {
	background: var(--boardly-accent);
	color: #fff;
}
.boardly-share-output {
	font-size: 12px;
	color: #666;
	word-break: break-all;
}
.boardly-email-form {
	margin-bottom: 20px;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}
.boardly-email-input {
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	min-width: 220px;
}
.boardly-email-output {
	font-size: 12px;
	color: #666;
}
.boardly-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 18px;
}
.boardly-item {
	margin: 0;
	position: relative;
	background: #fafafa;
	border-radius: 10px;
	overflow: hidden;
}
.boardly-item img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.boardly-item figcaption {
	padding: 8px;
	font-size: 12px;
	text-align: center;
}
.boardly-item figcaption a {
	color: #333;
	text-decoration: none;
}
.boardly-item-controls {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	gap: 4px;
}
.boardly-item-controls button {
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	cursor: pointer;
	font-size: 12px;
}
.boardly-empty-board {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	padding: 30px 0;
}

/* First-visit onboarding tooltip, shown once ever (per browser) near the first heart */
.boardly-onboarding-tip {
	position: absolute;
	top: 56px;
	right: 6px;
	max-width: 220px;
	background: #2b2b2b;
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	padding: 10px 28px 10px 12px;
	border-radius: 10px;
	z-index: 20;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	animation: boardly-tip-in 0.25s ease-out;
}
.boardly-onboarding-tip::before {
	content: "";
	position: absolute;
	top: -8px;
	right: 20px;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 8px solid #2b2b2b;
}
.boardly-tip-close {
	position: absolute;
	top: 4px;
	right: 6px;
	background: none;
	border: none;
	color: #fff;
	opacity: 0.7;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}
.boardly-tip-close:hover {
	opacity: 1;
}
@keyframes boardly-tip-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
