/* Δράση App — μόνο για το app (html.dapp), την πρόταση εγκατάστασης και τη σελίδα /app/. Χρώματα του site. */

:root {
	--dapp-bar-h: 62px;
	--dapp-top-h: 52px;
	--dapp-bottom: calc(var(--dapp-bar-h) + env(safe-area-inset-bottom, 0px));
	--dapp-olive: #6d6645;
	--dapp-olive-dark: #48422d;
	--dapp-accent: #b85d34;
	--dapp-accent-dark: #8a4520;
	--dapp-cream: #f7f2e4;
	--dapp-line: #e3dcc4;
	--dapp-text: #2d2a1f;
	--dapp-muted: #6e6a57;
	--dapp-faint: #a09a82;
	--dapp-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- app: χώρος για τις μπάρες (ίδιο με το inline στυλ του head, για την αρχική οθόνη του app) ---------- */

html.dapp body {
	padding-bottom: var(--dapp-bottom) !important;
}
html.dapp:not(.dapp-keep):not(.dapp-home) body {
	padding-top: calc(var(--dapp-top-h) + env(safe-area-inset-top, 0px)) !important;
}
html.dapp.dapp-sheet-open body {
	overflow: hidden;
}
/* Η συγκατάθεση cookies και το κουμπί της πάνω από τη μπάρα. */
html.dapp .cmplz-cookiebanner {
	bottom: calc(var(--dapp-bottom) + 10px) !important;
}
html.dapp #cmplz-manage-consent .cmplz-manage-consent {
	bottom: var(--dapp-bottom) !important;
}

/* ---------- κάτω μπάρα ---------- */

.dapp-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 150;
	display: flex;
	align-items: stretch;
	height: var(--dapp-bottom);
	padding: 0 max(4px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-right, 0px));
	background: rgba(255, 255, 255, .97);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-top: 1px solid var(--dapp-line);
	box-shadow: 0 -8px 24px rgba(72, 66, 45, .1);
	font-family: var(--dapp-font);
}
.dapp-bar__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	margin: 0;
	padding: 6px 2px 4px;
	background: none;
	border: 0 !important;
	border-radius: 0;
	color: var(--dapp-muted) !important;
	text-decoration: none !important;
	font: inherit;
	font-size: 10.5px;
	font-weight: 650;
	letter-spacing: .01em;
	line-height: 1.1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	box-shadow: none !important;
}
.dapp-bar__item i {
	display: grid;
	place-items: center;
	width: 30px;
	height: 26px;
	font-style: normal;
}
.dapp-bar__item svg {
	width: 23px;
	height: 23px;
	transition: transform .15s;
}
.dapp-bar__item:active svg {
	transform: scale(.9);
}
.dapp-bar__item span {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dapp-bar__item[aria-current="page"] {
	color: var(--dapp-olive-dark) !important;
}
.dapp-bar__item[aria-current="page"] svg {
	color: var(--dapp-olive);
}
.dapp-bar__item[aria-current="page"]::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 28%;
	right: 28%;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--dapp-olive);
}
/* «Βρήκα ζώο»: στη μέση, σε κύκλο με το χρώμα έκτακτης ανάγκης. */
.dapp-bar__item--help i {
	width: 46px;
	height: 46px;
	margin-top: -20px;
	border-radius: 50%;
	background: var(--dapp-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(138, 69, 32, .35), 0 0 0 4px #fff;
}
.dapp-bar__item--help svg,
.dapp-bar__item--help[aria-current="page"] svg {
	color: #fff;
}
.dapp-bar__item--help span {
	color: var(--dapp-accent-dark);
	font-weight: 800;
}
.dapp-bar__item--help[aria-current="page"]::before {
	display: none;
}
.dapp-bar__badge {
	position: absolute;
	top: 4px;
	left: calc(50% + 5px);
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--dapp-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	font-style: normal;
	line-height: 17px;
	text-align: center;
}
.dapp-bar__badge[hidden] {
	display: none;
}

/* ---------- πάνω μπάρα (πίσω, τίτλος, αστέρι, κοινοποίηση): στη θέση του header του site ---------- */

.dapp-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 150;
	display: flex;
	align-items: center;
	gap: 2px;
	height: calc(var(--dapp-top-h) + env(safe-area-inset-top, 0px));
	padding: env(safe-area-inset-top, 0px) max(4px, env(safe-area-inset-right, 0px)) 0 max(4px, env(safe-area-inset-left, 0px));
	background: rgba(109, 102, 69, .97);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	color: #fff;
	box-shadow: 0 2px 12px rgba(45, 42, 31, .18);
	transition: transform .25s ease;
	font-family: var(--dapp-font);
}
.dapp-top.is-hidden {
	transform: translateY(-100%);
}
.dapp-top__btn {
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0 !important;
	border-radius: 12px;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.dapp-top__btn:active {
	background: rgba(255, 255, 255, .14);
}
.dapp-top__btn svg {
	width: 23px;
	height: 23px;
}
.dapp-top__home img {
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 8px;
}
.dapp-top__t {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 6px 0 2px;
	overflow: hidden;
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	text-overflow: ellipsis;
	cursor: default;
}
.dapp-top__acts {
	display: flex;
	flex: 0 0 auto;
}
.dapp-top__star[aria-pressed="true"] {
	color: #ffb98a !important;
}

/* ---------- μηνύματα ---------- */

.dapp-toast,
.dapp-offline {
	position: fixed;
	left: 50%;
	z-index: 100002;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100vw - 32px);
	padding: 10px 16px;
	border-radius: 999px;
	font: 600 13.5px/1.3 var(--dapp-font);
	box-shadow: 0 10px 28px rgba(45, 42, 31, .28);
}
.dapp-toast {
	bottom: calc(var(--dapp-bottom, 0px) + 16px);
	background: var(--dapp-olive-dark);
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity .2s, transform .2s;
}
html:not(.dapp) .dapp-toast {
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.dapp-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}
.dapp-offline {
	top: calc(var(--dapp-top-h) + 10px + env(safe-area-inset-top, 0px));
	transform: translateX(-50%);
	background: #fff4e8;
	color: var(--dapp-accent-dark);
	border: 1px solid #f0c9a8 !important;
	font-size: 12.5px;
}
.dapp-offline svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}
.dapp-offline[hidden] {
	display: none;
}
.dapp-preview {
	position: fixed;
	bottom: calc(var(--dapp-bottom) + 10px);
	left: 10px;
	z-index: 140;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--dapp-olive-dark);
	color: #fff !important;
	border: 0 !important;
	text-decoration: none !important;
	font: 700 12px/1.2 var(--dapp-font);
}

/* ---------- φύλλο από κάτω ---------- */

.dapp-sheet {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: var(--dapp-font);
}
.dapp-sheet__bg {
	position: absolute;
	inset: 0;
	background: rgba(30, 27, 18, .5);
	animation: dappFade .2s ease-out;
}
.dapp-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 84vh;
	max-height: 84dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 18px calc(22px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	color: var(--dapp-text);
	border-radius: 22px 22px 0 0;
	box-shadow: 0 -20px 50px rgba(30, 27, 18, .25);
	animation: dappUp .26s ease-out;
}
.dapp-sheet__grip {
	width: 40px;
	height: 4px;
	margin: 6px auto 12px;
	border-radius: 2px;
	background: var(--dapp-line);
}
.dapp-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}
.dapp-sheet__head h2 {
	margin: 0;
	color: var(--dapp-text);
	font-family: var(--dapp-font);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.01em;
}
.dapp-sheet__close,
.dapp-row__x,
.dapp-chip__x {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--dapp-cream);
	color: var(--dapp-muted);
	border: 1px solid var(--dapp-line) !important;
	cursor: pointer;
}
.dapp-sheet__close svg,
.dapp-row__x svg,
.dapp-chip__x svg {
	width: 18px;
	height: 18px;
}
.dapp-group h3 {
	margin: 18px 0 4px;
	color: var(--dapp-olive);
	font-family: var(--dapp-font);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
}
.dapp-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-top: 1px solid #efe9d6;
}
.dapp-row:first-of-type {
	border-top: 0;
}
.dapp-row a {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
	color: var(--dapp-text) !important;
	text-decoration: none !important;
	border: 0 !important;
}
.dapp-row__thumb {
	display: grid;
	place-items: center;
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	border-radius: 11px;
	object-fit: cover;
	background: var(--dapp-cream);
	color: var(--dapp-olive);
}
.dapp-row__thumb svg {
	width: 22px;
	height: 22px;
}
.dapp-row__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.dapp-row__t {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.28;
}
.dapp-row__d {
	overflow: hidden;
	color: var(--dapp-muted);
	font-size: 12.5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.dapp-empty {
	margin: 10px 0 6px;
	color: var(--dapp-muted);
	font-size: 15px;
	line-height: 1.55;
}
.dapp-empty svg {
	width: 17px;
	height: 17px;
	vertical-align: -3px;
	color: var(--dapp-accent);
}
.dapp-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0;
	color: var(--dapp-faint);
	font-size: 12.5px;
}
.dapp-note svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
}
/* οδηγίες iPhone: «Ανοίγεις τα sites με: Safari | Chrome» */
.dapp-br {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 4px 0 6px;
	color: var(--dapp-faint);
	font-size: 13.5px;
	font-weight: 600;
}
.dapp-br button {
	margin: 0;
	padding: 6px 15px;
	border: 1px solid #e2dac4;
	border-radius: 999px;
	background: #fff;
	color: var(--dapp-text);
	font: inherit;
	font-size: 13.5px;
	font-weight: 800;
	cursor: pointer;
}
.dapp-br button[aria-pressed="true"] {
	border-color: var(--dapp-olive);
	background: var(--dapp-olive);
	color: #fff;
}
.dapp-steps {
	margin: 8px 0 4px;
	padding: 0;
	list-style: none;
}
.dapp-steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid #efe9d6;
	color: var(--dapp-text);
	font-size: 15px;
	line-height: 1.45;
}
.dapp-steps li:first-child {
	border-top: 0;
}
.dapp-steps__ic {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--dapp-cream);
	color: var(--dapp-olive);
}
.dapp-steps__ic svg {
	width: 24px;
	height: 24px;
}

@keyframes dappUp {
	from { transform: translateY(40px); opacity: .4; }
	to { transform: none; opacity: 1; }
}
@keyframes dappFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ---------- πρόταση εγκατάστασης (κινητό, εκτός app) ---------- */

.dapp-chip {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 99995;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 520px;
	margin: 0 auto;
	padding: 10px 10px 10px 12px;
	border-radius: 18px;
	background: #fff;
	color: var(--dapp-text);
	border: 1px solid var(--dapp-line) !important;
	box-shadow: 0 16px 40px rgba(45, 42, 31, .25);
	font-family: var(--dapp-font);
	animation: dappUp .3s ease-out;
}
.dapp-chip__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
}
.dapp-chip__txt {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--dapp-muted);
}
.dapp-chip__txt strong {
	color: var(--dapp-text);
	font-size: 14px;
}
.dapp-chip__go,
.dapp-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 14px;
	border-radius: 999px;
	background: var(--dapp-accent);
	color: #fff !important;
	border: 0 !important;
	font: 700 13.5px/1.1 var(--dapp-font);
	text-decoration: none !important;
	cursor: pointer;
}
.dapp-chip__go:hover,
.dapp-btn:hover {
	background: var(--dapp-accent-dark);
}
.dapp-chip__x {
	width: 32px;
	height: 32px;
	background: transparent;
	border-color: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
	.dapp-sheet__panel,
	.dapp-sheet__bg,
	.dapp-chip,
	.dapp-top,
	.dapp-toast {
		animation: none;
		transition: none;
	}
}
