/* Riporter mód — mobil, fekvő tájolás (spec §11.1.4) */

/* A display:flex szabályok egyébként felülírnák a hidden attribútumot. */
.zeg-reporter [hidden],
.zeg-reporter-body [hidden] {
	display: none !important;
}

.zeg-reporter-body {
	margin: 0;
	background: #0f172a;
	color: #f8fafc;
	min-height: 100dvh;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}

.zeg-reporter-body .site-header,
.zeg-reporter-body .site-footer,
.zeg-reporter-body .zeg-hero {
	display: none !important;
}

.zeg-reporter {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	font-family: Inter, system-ui, sans-serif;
}

.zeg-reporter__title {
	margin: 0;
	font-family: Inter, sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
}

.zeg-reporter__header {
	padding: 12px 16px 8px;
	flex-shrink: 0;
}

.zeg-reporter__geo-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.zeg-reporter__geo {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 0.8125rem;
	color: #94a3b8;
}

.zeg-reporter__geo-retry {
	flex-shrink: 0;
	border: 1px solid #475569;
	border-radius: 999px;
	background: rgba(30, 41, 59, 0.85);
	color: #e2e8f0;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 6px 12px;
	cursor: pointer;
}

.zeg-reporter__geo-retry:active {
	background: #334155;
}

.zeg-reporter__screen {
	display: none;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.zeg-reporter__screen.is-active {
	display: flex;
}

/* Engedélykérő induló képernyő */
.zeg-reporter__screen--perms.is-active {
	align-items: center;
	justify-content: center;
	padding: 24px 20px max(24px, env(safe-area-inset-bottom));
	overflow-y: auto;
}

.zeg-reporter__perms {
	width: min(100%, 400px);
}

.zeg-reporter__perms-lead {
	margin: 10px 0 20px;
	color: #94a3b8;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.zeg-reporter__perms-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.zeg-reporter__perm {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 12px;
	border-radius: 12px;
	background: #1e293b;
	border: 1px solid #334155;
}

.zeg-reporter__perm-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.zeg-reporter__perm-body {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.zeg-reporter__perm-body strong {
	font-size: 0.9375rem;
	font-weight: 600;
}

.zeg-reporter__perm-body span {
	font-size: 0.8125rem;
	color: #94a3b8;
}

.zeg-reporter__perm-state {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
	white-space: nowrap;
}

.zeg-reporter__perm.is-granted .zeg-reporter__perm-state {
	color: #4ade80;
}

.zeg-reporter__perm.is-denied .zeg-reporter__perm-state {
	color: #fca5a5;
}

.zeg-reporter__btn--perms {
	width: 100%;
	margin-bottom: 10px;
}

.zeg-reporter__btn--perms-skip {
	width: 100%;
}

.zeg-reporter__perms-hint {
	margin: 14px 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #fbbf24;
	text-align: center;
}

.zeg-reporter__list-label {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	color: #64748b;
}

.zeg-reporter__search {
	padding: 0 16px 8px;
	flex-shrink: 0;
}

.zeg-reporter__input,
.zeg-reporter__field input,
.zeg-reporter__field select,
.zeg-reporter__field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #334155;
	border-radius: 8px;
	background: #1e293b;
	color: #f8fafc;
	padding: 10px 12px;
	font: inherit;
}

.zeg-reporter__poi-list {
	list-style: none;
	margin: 0;
	padding: 0 8px;
	overflow-y: auto;
	flex: 1;
}

.zeg-reporter__poi-notice {
	padding: 16px 12px;
	color: #94a3b8;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.zeg-reporter__poi-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 12px;
	border: none;
	border-bottom: 1px solid #1e293b;
	background: transparent;
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.zeg-reporter__poi-item:active {
	background: #1e293b;
}

.zeg-reporter__poi-name {
	font-weight: 500;
}

.zeg-reporter__poi-dist {
	font-size: 0.875rem;
	color: #94a3b8;
	white-space: nowrap;
}

.zeg-reporter__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 999px;
	background: #38bdf8;
	color: #0f172a;
	font: inherit;
	font-weight: 600;
	padding: 12px 20px;
	cursor: pointer;
}

.zeg-reporter__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.zeg-reporter__btn--ghost {
	background: #334155;
	color: #f8fafc;
}

.zeg-reporter__screen--list .zeg-reporter__btn[data-zeg-new-poi] {
	margin: 8px 16px 16px;
	flex-shrink: 0;
}

.zeg-reporter__back {
	border: none;
	background: transparent;
	color: #94a3b8;
	font-size: 1.5rem;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
}

.zeg-reporter__form {
	padding: 8px 16px 24px;
	overflow-y: auto;
}

.zeg-reporter__field {
	display: block;
	margin-bottom: 14px;
}

.zeg-reporter__field span {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	color: #94a3b8;
}

.zeg-reporter__coords {
	font-size: 0.8125rem;
	color: #64748b;
}

.zeg-reporter__checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	font-size: 0.875rem;
	color: #cbd5e1;
}

.zeg-reporter__camera-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: max(12px, env(safe-area-inset-top)) 16px 28px;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0) 100%);
	flex-shrink: 0;
	z-index: 2;
}

.zeg-reporter__selected {
	flex: 1;
	font-weight: 600;
	font-size: 0.9375rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.zeg-reporter__camera-bar .zeg-reporter__back {
	color: #f8fafc;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 0.875rem;
	font-weight: 600;
	flex-shrink: 0;
}

/* Teljes képernyős kamera / előnézet */
.zeg-reporter__screen--camera.is-active,
.zeg-reporter__screen--preview.is-active {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: block;
}

.zeg-reporter__camera-stage {
	position: absolute;
	inset: 0;
	background: #000;
	overflow: hidden;
}

.zeg-reporter__video,
.zeg-reporter__preview-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zeg-reporter__video {
	transform-origin: center center;
	will-change: transform;
}

.zeg-reporter__canvas {
	display: none;
}

.zeg-reporter__camera-ui {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
	z-index: 2;
}

.zeg-reporter__camera-bar,
.zeg-reporter__shutter-wrap,
.zeg-reporter__zoom,
.zeg-reporter__preview-actions,
.zeg-reporter__status {
	pointer-events: auto;
}

.zeg-reporter__shutter-wrap {
	display: flex;
	justify-content: center;
	padding: 36px 16px max(24px, env(safe-area-inset-bottom));
	background: linear-gradient(0deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0) 100%);
}

.zeg-reporter__shutter {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: 3px solid rgba(248, 250, 252, 0.88);
	background: rgba(56, 189, 248, 0.42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
	cursor: pointer;
}

.zeg-reporter__shutter:active {
	transform: scale(0.95);
	background: rgba(56, 189, 248, 0.62);
}

.zeg-reporter__zoom {
	position: absolute;
	right: max(12px, env(safe-area-inset-right));
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.zeg-reporter__zoom-btn {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(248, 250, 252, 0.35);
	border-radius: 50%;
	background: rgba(30, 41, 59, 0.55);
	color: #f8fafc;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.zeg-reporter__zoom-btn:active {
	background: rgba(56, 189, 248, 0.45);
}

.zeg-reporter__zoom-range {
	writing-mode: vertical-lr;
	direction: rtl;
	width: 28px;
	height: 120px;
	margin: 0;
	accent-color: #38bdf8;
}

.zeg-reporter__preview-actions {
	display: flex;
	gap: 12px;
	padding: 36px 16px max(24px, env(safe-area-inset-bottom));
	background: linear-gradient(0deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0) 100%);
}

.zeg-reporter__preview-actions .zeg-reporter__btn {
	flex: 1;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.zeg-reporter__preview-actions .zeg-reporter__btn--ghost {
	background: rgba(51, 65, 85, 0.72);
}

.zeg-reporter__camera-ui--preview .zeg-reporter__status {
	position: absolute;
	left: 0;
	right: 0;
	bottom: max(96px, calc(88px + env(safe-area-inset-bottom)));
	text-align: center;
	padding: 0 16px;
	font-size: 0.875rem;
	color: #e2e8f0;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
	background: transparent;
}

.zeg-reporter__status.is-error {
	color: #fca5a5;
}

.zeg-reporter__done {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.zeg-reporter__done-msg {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 24px;
}

.zeg-reporter__done-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(100%, 280px);
}

.zeg-reporter__dialog {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 100;
}

.zeg-reporter__dialog-inner {
	background: #1e293b;
	border-radius: 12px;
	padding: 20px;
	max-width: 360px;
	width: 100%;
}

.zeg-reporter__dialog-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.zeg-reporter__dialog-actions .zeg-reporter__btn {
	flex: 1;
}

.zeg-reporter__rotate {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: #0f172a;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	font-size: 1.125rem;
}

.zeg-reporter__rotate-inner {
	display: grid;
	gap: 20px;
	width: min(100%, 320px);
}

.zeg-reporter__rotate-inner p {
	margin: 0;
	line-height: 1.45;
}

.zeg-reporter__rotate-inner .zeg-reporter__btn {
	width: 100%;
}

.zeg-reporter--login {
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.zeg-reporter__login-box {
	width: min(100%, 360px);
}

.zeg-reporter__login-lead {
	color: #94a3b8;
	font-size: 0.9375rem;
	margin: 8px 0 20px;
}

.zeg-reporter__error {
	color: #fca5a5;
	font-size: 0.875rem;
}

/* Álló telefon: kamera/előnézet helyett forgatás jelzés (lista továbbra is használható). */
@media (max-width: 900px) and (orientation: portrait) {
	.zeg-reporter__screen--camera.is-active,
	.zeg-reporter__screen--preview.is-active {
		display: none !important;
	}
}
