/* Minimal, functional styling only - intentionally undecorated. Brandon:
   swap in real branding via BRAND_PRIMARY_COLOR/SITE_LOGO_URL and whatever
   design language this client/deployment needs. */

:root {
	--brand: #0b3f2a;
	--ink: #152238;
	--muted: #657084;
	--bg: #f8f5ec;
	--border: #d8dbe2;
}

* { box-sizing: border-box; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--ink);
	margin: 0;
	padding: 24px;
}

h1 { margin-top: 0; }

form { display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 16px 0; }

input {
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 1rem;
}

button {
	padding: 10px 16px;
	border: none;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

button:disabled { opacity: 0.5; cursor: default; }

.gate-screen, .modules-screen, .player-screen {
	max-width: 640px;
	margin: 0 auto;
}

.gate-divider { color: var(--muted); text-align: center; }

#gate-message.is-error, #unlock-message.is-error { color: #b3261e; }

.module-list { list-style: none; padding: 0; }
.module-list li {
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
	background: #fff;
}
.module-list a { text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; }
.module-status { color: var(--muted); font-size: 0.85rem; }

.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); }

.slides-audio-player .slide-image {
	max-width: 100%;
	border-radius: 12px;
	display: block;
	margin: 0 auto;
}
.slide-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
}
.manual-play { display: block; margin: 12px auto; }

.video-player video, .audio-only-player audio { width: 100%; margin-top: 12px; }
.audio-only-player .artwork { max-width: 100%; border-radius: 12px; }

.attachments { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 16px; }

.admin-screen { max-width: 720px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.button-link {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	margin-right: 8px;
}
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
.admin-table .delete-btn { background: none; border: 1px solid var(--border); color: #b3261e; border-radius: 6px; padding: 4px 10px; margin-left: 8px; cursor: pointer; }

textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; max-width: 360px; }

fieldset { border: 1px solid var(--border); border-radius: 8px; margin: 16px 0; }
legend { padding: 0 6px; color: var(--muted); font-size: 0.85rem; }

.product-ref-row, .slide-row, .attachment-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 8px;
}
.slide-row { flex-direction: column; align-items: stretch; }
.slide-row strong { font-size: 0.9rem; color: var(--muted); }

.upload-status { font-size: 0.85rem; color: var(--muted); }
.upload-status.is-ok { color: var(--brand); }
.upload-status.is-error { color: #b3261e; }

#assets-section h2 { margin-top: 32px; font-size: 1.1rem; }
