/*
 * Screenshot frames for the Image block.
 * In the editor: select an Image block, then Styles in the sidebar.
 * Loaded on the site and in the block editor.
 * Frames are drawn with CSS only, so UI text in your exports stays sharp.
 */

/* Shared: make sure frames never stretch your image */
.wp-block-image[class*="is-style-iz-"] img {
	display: block;
	width: 100%;
	height: auto;
}

/* Browser window */
.wp-block-image.is-style-iz-browser {
	background: #ffffff;
	border: 1px solid var(--line, #e7e7ea);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(17, 18, 20, 0.12), 0 2px 6px rgba(17, 18, 20, 0.05);
}
.wp-block-image.is-style-iz-browser::before {
	content: "";
	display: block;
	height: 36px;
	border-bottom: 1px solid var(--line, #e7e7ea);
	background:
		radial-gradient(circle at 20px 50%, #ff5f57 5px, transparent 5.5px),
		radial-gradient(circle at 40px 50%, #febc2e 5px, transparent 5.5px),
		radial-gradient(circle at 60px 50%, #28c840 5px, transparent 5.5px),
		#f4f4f5;
}
.wp-block-image.is-style-iz-browser figcaption {
	margin: 0;
	padding: 10px 14px 12px;
	background: #fff;
	border-top: 1px solid var(--line, #e7e7ea);
}

/* Laptop */
figure.wp-block-image.is-style-iz-laptop {
	position: relative;
	width: 84%;
	margin-left: auto;
	margin-right: auto;
	padding: 2.2% 2.2% 2.6%;
	background: #0e0e10;
	border-radius: 16px 16px 2px 2px;
	box-shadow: 0 0 0 1.5px #3a3a3f inset;
	margin-bottom: 36px;
}
figure.wp-block-image.is-style-iz-laptop img { border-radius: 3px; }
figure.wp-block-image.is-style-iz-laptop::after {
	content: "";
	position: absolute;
	left: -8%;
	right: -8%;
	bottom: -14px;
	height: 14px;
	background: linear-gradient(#dcdce0, #b4b4ba);
	border-radius: 0 0 22px 22px;
	box-shadow: 0 14px 30px rgba(17, 18, 20, 0.18);
}
figure.wp-block-image.is-style-iz-laptop figcaption { color: #b9b9bf; padding-top: 8px; }

/* Phone */
figure.wp-block-image.is-style-iz-phone {
	position: relative;
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
	padding: 12px;
	background: #0e0e10;
	border-radius: 46px;
	box-shadow: 0 0 0 1.5px #3a3a3f inset, 0 24px 60px rgba(17, 18, 20, 0.2);
}
figure.wp-block-image.is-style-iz-phone img { border-radius: 34px; }
figure.wp-block-image.is-style-iz-phone::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 50%;
	width: 88px;
	height: 24px;
	margin-left: -44px;
	background: #0e0e10;
	border-radius: 14px;
	z-index: 1;
}
figure.wp-block-image.is-style-iz-phone figcaption { color: #b9b9bf; padding: 8px 4px 2px; }

/* Soft shadow, no frame */
.wp-block-image.is-style-iz-shadow img {
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(17, 18, 20, 0.14), 0 2px 6px rgba(17, 18, 20, 0.06);
}

/* Tinted backdrop: screenshot floating on a soft color field */
.wp-block-image.is-style-iz-stage {
	background: var(--tint, #f3f3f1);
	padding: clamp(24px, 6vw, 80px);
	border-radius: 8px;
}
.wp-block-image.is-style-iz-stage img {
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(17, 18, 20, 0.14), 0 2px 6px rgba(17, 18, 20, 0.06);
}
.wp-block-image.is-style-iz-stage figcaption { margin-top: 18px; }

/* Impact stats: big numbers with a short label */
.iz-impact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 2rem 0;
}
.iz-stat {
	background: var(--tint, #f3f3f1);
	border: 1px solid var(--line, #e6e6e3);
	border-radius: 12px;
	padding: 28px 24px;
}
.iz-stat p { margin: 0; }
.iz-stat .iz-stat-num {
	font-family: var(--display, inherit);
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--accent-ink, var(--accent, currentColor));
}
.iz-stat .iz-stat-label {
	margin-top: 12px;
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--muted, #666);
}

/* Persona cards: one card per user type */
.iz-personas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 2rem 0;
}
.iz-persona {
	border: 1px solid var(--line, #e6e6e3);
	border-radius: 12px;
	padding: 24px;
}
.iz-persona p { margin: 0; }
.iz-persona .iz-persona-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent, #333);
	color: #fff;
	font-weight: 700;
	margin-bottom: 14px;
}
.iz-persona .iz-persona-role {
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 8px;
	color: var(--text, inherit);
}
.iz-persona .iz-persona-desc {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--muted, #666);
}
.entry-content .iz-stat p,
.entry-content .iz-persona p { margin-top: 0; margin-bottom: 0; }
.entry-content .iz-stat .iz-stat-label { margin-top: 10px; }
.entry-content .iz-persona .iz-persona-role { margin-bottom: 8px; }
.entry-content .iz-persona .iz-persona-avatar { margin-bottom: 14px; }
