/* Base device wrapper styles (minimal) */

:root {
	--device-portrait-w: 399px;
	--device-portrait-h: 868px;
	--device-landscape-w: 868px;
	--device-landscape-h: 399px;
	--device-wide-w: 1197px;
	/* 399px * 3 */
	--status-padding: 20px;
	--island-width: 126px;
	/* matches .dynamic-island width */
	--input-col-portrait: 8fr;
	/* wider input in normal mode */
	--input-col-wide: 12fr;
	/* wider input in wide mode */
	--bezel-radius: 60px;
	--bezel-bg: #000;
	--screen-bg: #fff;
	--device-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Global reset to match reference (prevents margin/box model differences) */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Center page for preview */
html,
body {
	height: 100%;
}

/* Page background and centering — match ref/display for consistent preview */
body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
}

.device-container {
	position: relative;
	width: var(--device-portrait-w);
	height: var(--device-portrait-h);
	background: #000;
	border-radius: 60px;
	padding: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	perspective: 1000px;
	transition: transform 600ms ease-in-out, width 600ms ease-in-out, height 600ms ease-in-out, box-shadow 600ms ease-in-out;
}

.device-bezel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000;
	border-radius: 60px;
	border: 8px solid #1a1a1a;
	overflow: hidden;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.screen {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 55px;
	overflow: hidden;
	transition: filter 600ms ease-in-out;

	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 6% 81% 13%;
	gap: 0;

}

.screen-header {
	grid-area: 1 / 1 / 2 / 2;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	position: relative;
}

.screen-header-left {
	grid-area: 1 / 1 / 2 / 2;
	position: relative;
}

.screen-header-center {
	grid-area: 1 / 2 / 2 / 3;
	position: relative;
}

.screen-header-right {
	grid-area: 1 / 3 / 2 / 4;
	position: relative;
}

.screen-content {
	grid-area: 2 / 1 / 3 / 2;
}

.screen-footer {
	grid-area: 3 / 1 / 4 / 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Dynamic Island (copied from ref/display.css) */
.dynamic-island {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: var(--island-width);
	height: 32px;
	background: #000;
	border-radius: 16px;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
}

.island-text {
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	text-align: center;
	padding: 0 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Home indicator (bottom bar) */
/* .screen-home-indicator {
	grid-area: 4 / 1 / 5 / 2;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
} */


.home-indicator {
	/* Positioning */
	position: absolute;
	left: 50%;
	bottom: 8px;

	/* Transform */
	transform: translateX(-50%);

	/* Dimensions */
	width: 114px;
	height: 4px;

	/* Visual */
	background: #000;

	/* Stacking */
	z-index: 100;
}
