/**
 * Fed Up Queue Tracker - Front-end styles
 *
 * Uses --fuq-primary CSS variable set inline by the template
 * so the admin's chosen brand color flows through automatically.
 */

.fuq-wrap {
	--fuq-primary: #c8102e;
	--fuq-text: #1f2937;
	--fuq-muted: #6b7280;
	--fuq-bg: #ffffff;
	--fuq-border: #e5e7eb;
	--fuq-success: #10b981;
	--fuq-warning: #f59e0b;

	max-width: 640px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--fuq-text);
	line-height: 1.5;
}

.fuq-card {
	background: var(--fuq-bg);
	border: 1px solid var(--fuq-border);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fuq-header h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	color: var(--fuq-primary);
}

.fuq-greeting {
	margin: 0 0 1.5rem;
	color: var(--fuq-muted);
	font-size: 1rem;
}

/* Current stage block */
.fuq-current-stage {
	background: #f9fafb;
	border-left: 4px solid var(--fuq-primary);
	padding: 1rem 1.25rem;
	border-radius: 6px;
	margin-bottom: 1.5rem;
}

.fuq-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fuq-muted);
	margin-bottom: 0.25rem;
}

.fuq-stage-name {
	display: block;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--fuq-text);
}

/* Progress bar */
.fuq-progress {
	background: #f3f4f6;
	border-radius: 999px;
	height: 12px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.fuq-progress-bar {
	background: var(--fuq-primary);
	height: 100%;
	border-radius: 999px;
	transition: width 0.4s ease-out;
}

.fuq-progress-label {
	font-size: 0.875rem;
	color: var(--fuq-muted);
	text-align: right;
	margin: 0 0 1.5rem;
}

/* Queue position */
.fuq-position {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #fef3f2;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.fuq-position-number {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--fuq-primary);
	line-height: 1;
}

.fuq-position-label {
	color: var(--fuq-text);
	font-size: 0.95rem;
}

/* Timeline */
.fuq-timeline h3 {
	font-size: 1rem;
	margin: 0 0 1rem;
	color: var(--fuq-text);
}

.fuq-stages {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	position: relative;
}

.fuq-stages::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 14px;
	bottom: 14px;
	width: 2px;
	background: var(--fuq-border);
	z-index: 0;
}

.fuq-stage {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.5rem 0;
	position: relative;
	z-index: 1;
}

.fuq-stage-marker {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--fuq-bg);
	border: 2px solid var(--fuq-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--fuq-muted);
}

.fuq-stage-done .fuq-stage-marker {
	background: var(--fuq-success);
	border-color: var(--fuq-success);
	color: white;
}

.fuq-stage-current .fuq-stage-marker {
	background: var(--fuq-primary);
	border-color: var(--fuq-primary);
	color: white;
	box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
}

.fuq-stage-text {
	font-size: 0.95rem;
}

.fuq-stage-done .fuq-stage-text {
	color: var(--fuq-muted);
	text-decoration: line-through;
}

.fuq-stage-current .fuq-stage-text {
	font-weight: 600;
	color: var(--fuq-text);
}

/* Status banners */
.fuq-status-banner {
	border-radius: 8px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.fuq-status-banner strong {
	display: block;
	font-size: 1.125rem;
	margin-bottom: 0.25rem;
}

.fuq-status-banner p {
	margin: 0;
}

.fuq-status-complete {
	background: #ecfdf5;
	color: #065f46;
	border-left: 4px solid var(--fuq-success);
}

.fuq-status-closed {
	background: #f9fafb;
	color: var(--fuq-muted);
	border-left: 4px solid var(--fuq-border);
}

/* Footer bits */
.fuq-updated {
	font-size: 0.8rem;
	color: var(--fuq-muted);
	text-align: center;
	margin: 1rem 0 0;
}

.fuq-contact {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fuq-border);
	font-size: 0.95rem;
}

.fuq-contact p {
	margin: 0.25rem 0;
}

.fuq-contact a {
	color: var(--fuq-primary);
	text-decoration: none;
	font-weight: 500;
}

.fuq-contact a:hover {
	text-decoration: underline;
}

/* Lookup form */
.fuq-lookup-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.fuq-lookup-form input[type="text"] {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid var(--fuq-border);
	border-radius: 6px;
	font-size: 1rem;
}

.fuq-lookup-form input[type="text"]:focus {
	outline: none;
	border-color: var(--fuq-primary);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.fuq-lookup-form button {
	padding: 0.75rem 1.25rem;
	background: var(--fuq-primary);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.fuq-lookup-form button:hover {
	opacity: 0.9;
}

/* Error state */
.fuq-error h2 {
	color: var(--fuq-warning);
}

/* Mobile */
@media (max-width: 480px) {
	.fuq-card {
		padding: 1.25rem;
	}
	.fuq-position {
		flex-direction: column;
		text-align: center;
		gap: 0.5rem;
	}
	.fuq-lookup-form {
		flex-direction: column;
	}
}
