/* ==========================================================================
   Unique Gift List — Confetti theme
   Tokens come from theme.json (var(--wp--preset--…)). This file adds the
   chunky borders, hard shadows and tilted "sticker" cards.
   ========================================================================== */

:root {
	--ugl-ink: var(--wp--preset--color--ink);
	--ugl-pop: var(--wp--preset--color--pop);
	--ugl-border: 2px solid var(--ugl-ink);
	--ugl-border-thick: 3px solid var(--ugl-ink);
	--ugl-radius: 20px;
	--ugl-radius-lg: 28px;
}

/* ---------- Header & brand ---------- */

.ugl-header {
	border-bottom: var(--ugl-border);
}

.ugl-brand .wp-block-site-title a,
.wp-block-site-title.ugl-brand a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ugl-brand .wp-block-site-title a::before,
.wp-block-site-title.ugl-brand a::before {
	content: "";
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	transform: rotate(-6deg);
	background: var(--ugl-pop) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1A33' stroke-width='2.2'%3E%3Crect x='3' y='9' width='18' height='12' rx='2'/%3E%3Cpath d='M12 9v12M3 13h18M12 9C10 5 6.5 5 7 7.5 7.4 9 12 9 12 9Zm0 0c2-4 5.5-4 5-1.5C16.6 9 12 9 12 9Z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Highlighted words in headings (use the editor's Highlight format) ---------- */

h1 mark.has-inline-color,
h2 mark.has-inline-color {
	padding: 0 0.15em;
	border-radius: 0.2em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* ---------- Group style variations ---------- */

.wp-block-group.is-style-ugl-card {
	overflow: hidden;
	background-color: var(--wp--preset--color--white);
	border: var(--ugl-border);
	border-radius: var(--ugl-radius);
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-ugl-panel {
	background-color: var(--wp--preset--color--white);
	border: var(--ugl-border-thick);
	border-radius: var(--ugl-radius-lg);
	box-shadow: var(--wp--preset--shadow--hard-lg);
	padding: var(--wp--preset--spacing--50);
}

.wp-block-group.is-style-ugl-sticker {
	background-color: var(--wp--preset--color--white);
	border: var(--ugl-border);
	border-radius: 18px;
	padding: 14px;
	transform: rotate(-3deg);
	transition: transform 0.2s ease;
}

.wp-block-group.is-style-ugl-sticker:nth-child(even) {
	transform: rotate(3deg);
}

.wp-block-group.is-style-ugl-sticker:hover {
	transform: rotate(0) translateY(-4px);
}

.wp-block-group.is-style-ugl-tile {
	border: var(--ugl-border-thick);
	border-radius: 24px;
	padding: var(--wp--preset--spacing--40);
}

.wp-block-group.is-style-ugl-dashed {
	border: 2px dashed #8A8899;
	border-radius: var(--ugl-radius);
	padding: var(--wp--preset--spacing--40);
}

/* Placeholder image box inside cards (swap for a real image block) */
.ugl-thumb {
	border-radius: 12px;
	min-height: 140px;
}

/* ---------- Paragraph style variations ---------- */

p.is-style-ugl-pill {
	display: inline-block;
	width: auto;
	padding: 8px 16px;
	border: var(--ugl-border);
	border-radius: 999px;
	background-color: var(--wp--preset--color--white);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
}

.has-text-align-center.is-style-ugl-pill {
	display: table;
	margin-left: auto !important;
	margin-right: auto !important;
}

p.is-style-ugl-eyebrow {
	font-weight: 800;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

p.is-style-ugl-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	background-color: var(--wp--preset--color--haze);
}

/* ---------- Hero "paste a link" form ---------- */

.ugl-paste {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 680px;
	margin: 32px auto 0;
	padding: 10px;
	background: var(--wp--preset--color--white);
	border: var(--ugl-border-thick);
	border-radius: var(--ugl-radius);
	box-shadow: var(--wp--preset--shadow--hard);
}

.ugl-paste input[type="url"] {
	flex: 1 1 260px;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 18px;
	padding: 14px 12px;
	color: var(--ugl-ink);
}

.ugl-paste input[type="url"]:focus {
	outline: 2px solid var(--ugl-ink);
	outline-offset: 2px;
	border-radius: 10px;
}

.ugl-paste button {
	flex: none;
	border: 0;
	border-radius: 14px;
	background: var(--wp--preset--color--coral);
	color: var(--ugl-ink);
	font: inherit;
	font-weight: 800;
	font-size: 18px;
	padding: 14px 24px;
	min-height: 48px;
	cursor: pointer;
}

.ugl-paste button:hover {
	filter: brightness(1.05);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- Big step numbers ---------- */

.ugl-step-number {
	font-family: var(--wp--preset--font-family--unbounded);
	font-weight: 800;
	font-size: 48px;
	line-height: 1;
}

/* ---------- Gift cards on a shared list ---------- */

.ugl-gift .wp-block-buttons,
.ugl-gift .wp-block-button,
.ugl-gift .wp-block-button__link {
	width: 100%;
}

.ugl-gift {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ugl-gift > .wp-block-buttons {
	margin-top: auto;
}

.ugl-gift.is-taken {
	opacity: 0.7;
}

/* ---------- Cash pot progress bar ---------- */

.ugl-progress {
	align-self: stretch;
	width: 100%;
	min-width: 200px;
	height: 16px;
	border-radius: 999px;
	background: #3A3958;
	overflow: hidden;
}

.ugl-progress > span {
	display: block;
	height: 100%;
	background: var(--ugl-pop);
	border-radius: inherit;
}

/* ---------- Stat boxes (list header, dashboard) ---------- */

.ugl-stat {
	border-radius: 12px;
	padding: 10px 6px;
	text-align: center;
}

.ugl-stat p {
	margin: 0;
}

.ugl-stat-value {
	font-family: var(--wp--preset--font-family--unbounded);
	font-weight: 800;
	font-size: 22px;
}

/* ---------- Footer ---------- */

.ugl-footer {
	border-top: var(--ugl-border);
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
	.wp-block-group.is-style-ugl-panel {
		padding: var(--wp--preset--spacing--40);
		box-shadow: var(--wp--preset--shadow--hard);
	}

	.wp-block-group.is-style-ugl-sticker,
	.wp-block-group.is-style-ugl-sticker:nth-child(even) {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-group.is-style-ugl-sticker {
		transition: none;
	}
}
