/* Wedding guest theme — thin glue on top of Tabler.
 *
 * Component styling comes from Tabler (no Tabler JS in the guest app);
 * this file only themes the wedding look: warm palette, the centred page
 * column, the step indicator and the person cards. Keep it small — no
 * design system in here.
 */

:root {
	/* Warm wedding palette over Tabler's variables */
	--tblr-primary: #8a5a44;
	--tblr-primary-rgb: 138, 90, 68;
	--tblr-body-bg: #faf6f1;

	/* Wedding typography: Open Sans (linked in the layout, weights
	   300/400/600/700) with a system fallback when the font fails to
	   load. Slightly larger base size for phone screens. */
	--tblr-body-font-family: "Open Sans", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tblr-body-font-size: 1rem;
}

body {
	background-color: var(--tblr-body-bg);
}

.guest-main {
	max-width: 34rem;
	padding: 2rem 1rem 3rem;
}

.guest-brand {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #a4938a;
	margin-bottom: 1rem;
}

.guest-hero {
	padding: 1.25rem 0 0.75rem;
}

.guest-title,
.guest-card .card-title {
	letter-spacing: 0.01em;
}

.guest-title {
	font-size: 1.75rem;
	margin-bottom: 0.25rem;
}

.guest-subtitle {
	color: #6f6259;
}

.guest-card {
	border: none;
	border-radius: 1rem;
	box-shadow: 0 0.25rem 1rem rgba(90, 62, 44, 0.08);
}

.guest-code-input {
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 600;
	text-align: center;
}

/* Step indicator */
.steps {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.steps .step {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: #b3a79d;
	font-size: 0.85rem;
}

.steps .step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #e9e1d9;
	color: #8d8178;
	font-size: 0.8rem;
	font-weight: 600;
}

.steps .step-active {
	color: #6f6259;
}

.steps .step-active .step-num {
	background: var(--tblr-primary);
	color: #fff;
}

.steps .step-done .step-num {
	background: #d9c8b8;
	color: #fff;
}

/* Person cards (steps 1-3 and confirmation) */
.guest-person {
	background: #fffdfb;
}

.guest-person-name {
	font-size: 1.05rem;
}

.guest-answer-list li {
	padding-top: 0.125rem;
}

/* Track search dropdown (Spotify suggestions for the music questions) */
.guest-question {
	position: relative;
}

.track-list {
	position: absolute;
	z-index: 1000;
	left: 0;
	right: 0;
	max-height: 16rem;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--tblr-border-color, #e6e7e9);
	border-radius: 0.5rem;
	box-shadow: 0 0.5rem 1rem rgba(90, 62, 44, 0.15);
	padding: 0.25rem;
	margin: 0;
}

.track-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.375rem;
	cursor: pointer;
}

.track-option:hover {
	background: #f5ede5;
}

.track-option img {
	width: 2rem;
	height: 2rem;
	border-radius: 0.25rem;
	flex: 0 0 auto;
}

/* Songs (tracks) question: the song cards and their Spotify embeds */
.track-card {
	background: #fffdfb;
}

.track-title {
	font-size: 0.95rem;
}

.track-embed iframe {
	display: block;
	width: 100%;
}

.tracks-add .form-control {
	min-width: 0;
}

/* Photo slots: until the image files are dropped into
   app/front/media/image/ (couple.png on the landing page — provided;
   wedding.png for the confirmation page — pending), the frame shows
   the couple's names instead. script.js swaps the frame state on
   load/error; without JS the image simply shows when it exists. */
.guest-photo {
	position: relative;
	aspect-ratio: 3 / 2;
	min-height: 12rem;
	border-radius: 1rem;
	overflow: hidden;
	background: linear-gradient(135deg, #efe5da, #dcc9b6);
	box-shadow: 0 0.25rem 1rem rgba(90, 62, 44, 0.08);
}

.guest-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The confirmation page slot (photo-full) shows the complete photo:
   once the image loads, the frame releases its fixed 3:2 ratio and
   adapts to the photo's dimensions, capped at 60% of the column
   (centred) so the tall portrait doesn't dominate the page. The
   landing slot keeps the full-width 3:2 crop. */
.guest-photo.photo-full.photo-ready {
	aspect-ratio: auto;
	min-height: 0;
	max-width: 60%;
	margin: 0 auto;
}

.guest-photo.photo-full.photo-ready img {
	height: auto;
}

.guest-photo::after {
	content: "Marlies & Sander";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-style: italic;
	font-size: 1.25rem;
	letter-spacing: 0.05em;
	color: #a4938a;
}

.guest-photo.photo-ready::after {
	content: none;
}
