/* RankLocal Lite — branded admin & front-end styles */

:root {
	--rll-navy: #0f2447;
	--rll-navy-mid: #1e3a70;
	--rll-navy-soft: #e8eef7;
	--rll-orange: #f97316;
	--rll-orange-dark: #ea580c;
	--rll-slate: #64748b;
	--rll-slate-light: #94a3b8;
	--rll-border: #e2e8f0;
	--rll-bg: #f4f7fb;
	--rll-card: #ffffff;
	--rll-radius: 12px;
	--rll-shadow: 0 8px 30px rgba(15, 36, 71, 0.08);
	--rll-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rll-admin #wpcontent,
.rll-admin .rll-wrap {
	font-family: var(--rll-font);
}

.rll-wrap {
	max-width: 1120px;
}

/* ── Brand header ─────────────────────────────────────────────────────────── */

.rll-brand-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0 0 1.5rem;
	padding: 1.35rem 1.5rem;
	border-radius: var(--rll-radius);
	background: linear-gradient(135deg, var(--rll-navy) 0%, var(--rll-navy-mid) 100%);
	color: #fff;
	box-shadow: var(--rll-shadow);
	position: relative;
	overflow: hidden;
}

.rll-brand-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.22), transparent 55%);
	pointer-events: none;
}

.rll-brand-header__main,
.rll-brand-header__meta {
	position: relative;
	z-index: 1;
}

.rll-brand-header__main {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.rll-brand-header__text {
	min-width: 0;
}

.rll-brand-header__eyebrow {
	margin: 0 0 0.15rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.rll-brand-header h1.rll-brand-header__title,
.rll-brand-header__title {
	margin: 0;
	padding: 0;
	font-size: 1.65rem;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
	border: none;
}

.rll-brand-header__subtitle {
	margin: 0.35rem 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
	max-width: 42rem;
}

.rll-brand-header__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.rll-signal-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, var(--rll-orange), var(--rll-orange-dark));
	border-radius: 10px;
	color: #fff;
	font-weight: 800;
	letter-spacing: -0.04em;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.rll-signal-mark::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%);
	pointer-events: none;
}

.rll-signal-mark span {
	position: relative;
	z-index: 1;
}

.rll-signal-mark--sm {
	width: 28px;
	height: 28px;
	font-size: 10px;
	border-radius: 7px;
}

.rll-signal-mark--md {
	width: 44px;
	height: 44px;
	font-size: 14px;
}

.rll-signal-mark--lg {
	width: 56px;
	height: 56px;
	font-size: 18px;
}

.rll-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.rll-pill--lite {
	background: rgba(249, 115, 22, 0.18);
	border: 1px solid rgba(249, 115, 22, 0.45);
	color: #ffedd5;
}

.rll-pill--version {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.75);
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */

.rll-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 1.25rem;
	padding: 0.35rem;
	background: var(--rll-card);
	border: 1px solid var(--rll-border);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(15, 36, 71, 0.04);
}

.rll-tabs .nav-tab {
	margin: 0;
	border: none;
	background: transparent;
	border-radius: 999px;
	padding: 0.45rem 0.95rem;
	font-size: 13px;
	font-weight: 600;
	color: var(--rll-slate);
}

.rll-tabs .nav-tab:hover {
	background: var(--rll-navy-soft);
	color: var(--rll-navy);
}

.rll-tabs .nav-tab-active,
.rll-tabs .nav-tab.nav-tab-active {
	background: var(--rll-navy);
	color: #fff;
	box-shadow: 0 4px 12px rgba(15, 36, 71, 0.2);
}

.rll-tab-panel {
	animation: rll-fade-in 0.25s ease;
}

@keyframes rll-fade-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Cards & stats ──────────────────────────────────────────────────────── */

.rll-card {
	background: var(--rll-card);
	border: 1px solid var(--rll-border);
	border-radius: var(--rll-radius);
	padding: 1.35rem 1.5rem;
	margin-bottom: 1.25rem;
	box-shadow: 0 1px 2px rgba(15, 36, 71, 0.04);
}

.rll-card h2 {
	margin-top: 0;
	color: var(--rll-navy);
	font-size: 1.05rem;
	font-weight: 800;
}

.rll-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.rll-grid .rll-card {
	margin-bottom: 0;
	border-top: 3px solid var(--rll-orange);
}

.rll-stat {
	font-size: 2.1rem;
	font-weight: 800;
	margin: 0.2rem 0;
	line-height: 1.1;
	color: var(--rll-navy);
}

.rll-card .description {
	color: var(--rll-slate);
}

/* ── Tables & badges ────────────────────────────────────────────────────── */

.rll-table {
	border-radius: 8px;
	overflow: hidden;
}

.rll-table td,
.rll-table th {
	vertical-align: top;
}

.rll-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: capitalize;
	background: var(--rll-navy-soft);
	color: var(--rll-navy);
}

.rll-badge--published {
	background: #dcfce7;
	color: #166534;
}

.rll-badge--queued {
	background: #fef3c7;
	color: #92400e;
}

.rll-actions a {
	margin-right: 0.75rem;
	font-weight: 600;
}

.rll-link-danger {
	color: #b91c1c;
}

/* ── Subtabs & settings ─────────────────────────────────────────────────── */

.rll-subtabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.rll-subtabs a {
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--rll-border);
	border-radius: 999px;
	text-decoration: none;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: var(--rll-slate);
}

.rll-subtabs a.is-active {
	background: var(--rll-navy);
	border-color: var(--rll-navy);
	color: #fff;
}

/* ── Wizard ─────────────────────────────────────────────────────────────── */

.rll-wizard .rll-brand-header {
	margin-bottom: 1rem;
}

.rll-wizard__shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.rll-wizard__steps ol {
	display: flex;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0.5rem;
	gap: 0.4rem;
	flex-wrap: wrap;
	background: var(--rll-card);
	border: 1px solid var(--rll-border);
	border-radius: var(--rll-radius);
}

.rll-wizard__steps li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--rll-bg);
	font-size: 12px;
	font-weight: 600;
	color: var(--rll-slate);
}

.rll-wizard__steps li.is-active {
	background: linear-gradient(135deg, var(--rll-navy), var(--rll-navy-mid));
	color: #fff;
	box-shadow: 0 4px 12px rgba(15, 36, 71, 0.18);
}

.rll-wizard__steps li.is-done {
	background: #ffedd5;
	color: #9a3412;
}

.rll-wizard__step-num {
	font-weight: 800;
}

.rll-wizard .rll-card {
	border-top: 3px solid var(--rll-orange);
}

.rll-wizard__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--rll-border);
}

.rll-wizard__actions .button-primary {
	background: linear-gradient(135deg, var(--rll-orange), var(--rll-orange-dark));
	border-color: var(--rll-orange-dark);
	box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.rll-wizard__actions .button-primary:hover {
	background: var(--rll-orange-dark);
	border-color: var(--rll-orange-dark);
}

/* ── Lists, review, upgrade ─────────────────────────────────────────────── */

.rll-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.rll-list li {
	position: relative;
	padding: 0.35rem 0 0.35rem 1.35rem;
	color: var(--rll-navy);
}

.rll-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--rll-orange);
}

.rll-review dt {
	font-weight: 700;
	margin-top: 0.75rem;
	color: var(--rll-navy);
}

.rll-review dd {
	margin: 0.25rem 0 0;
	color: var(--rll-slate);
}

.rll-upgrade {
	border: 1px solid #fed7aa;
	background: linear-gradient(180deg, #fff7ed 0%, #fff 40%);
}

.rll-upgrade h2 {
	color: var(--rll-navy);
}

.rll-upgrade__features {
	margin: 1rem 0 1.5rem;
}

.rll-upgrade__actions .button-primary {
	background: linear-gradient(135deg, var(--rll-orange), var(--rll-orange-dark));
	border-color: var(--rll-orange-dark);
}

.rll-notice {
	padding: 0.85rem 1rem;
	border-left: 4px solid var(--rll-orange);
	border-radius: 8px;
	background: #fff7ed;
	color: var(--rll-navy);
}

.rll-notice--info {
	border-left-color: var(--rll-navy-mid);
	background: var(--rll-navy-soft);
}

/* ── Buttons in Lite screens ────────────────────────────────────────────── */

.rll-wrap .button-primary,
.rll-quote-form .rll-button {
	background: linear-gradient(135deg, var(--rll-orange), var(--rll-orange-dark));
	border-color: var(--rll-orange-dark);
	color: #fff;
	font-weight: 700;
	border-radius: 8px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rll-wrap .button-primary:hover,
.rll-quote-form .rll-button:hover {
	background: var(--rll-orange-dark);
	border-color: var(--rll-orange-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(249, 115, 22, 0.28);
}

.rll-wrap code {
	background: var(--rll-navy);
	color: #7dd3fc;
	padding: 0.35rem 0.6rem;
	border-radius: 6px;
	font-size: 12px;
}

/* ── Front-end quote form ───────────────────────────────────────────────── */

.rll-quote-form {
	max-width: 560px;
	margin: 2rem 0;
	font-family: var(--rll-font);
	border: 1px solid var(--rll-border);
	border-radius: var(--rll-radius);
	overflow: hidden;
	box-shadow: var(--rll-shadow);
	background: #fff;
}

.rll-quote-form__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: linear-gradient(135deg, var(--rll-navy), var(--rll-navy-mid));
	color: #fff;
}

.rll-quote-form__head .rll-signal-mark--sm {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rll-quote-form__brand {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 0.1rem;
}

.rll-quote-form__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

.rll-quote-form__body {
	padding: 1.25rem 1.25rem 1.35rem;
}

.rll-quote-form__intro {
	margin: 0 0 1rem;
	color: var(--rll-slate);
	font-size: 14px;
	line-height: 1.55;
}

.rll-quote-form__form p {
	margin: 0 0 0.9rem;
}

.rll-quote-form__form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 13px;
	font-weight: 700;
	color: var(--rll-navy);
}

.rll-quote-form__form .required {
	color: var(--rll-orange);
}

.rll-input,
.rll-textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--rll-border);
	border-radius: 8px;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rll-input:focus,
.rll-textarea:focus {
	outline: none;
	border-color: var(--rll-orange);
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.rll-button {
	cursor: pointer;
	padding: 0.65rem 1.25rem;
	width: 100%;
	font-size: 14px;
}

.rll-form-notice {
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 1rem;
}

.rll-form-notice--success {
	background: #dcfce7;
	color: #166534;
}

.rll-form-notice--error {
	background: #fee2e2;
	color: #991b1b;
}

.rll-quote-form__foot {
	padding: 0.65rem 1.25rem;
	border-top: 1px solid var(--rll-border);
	background: var(--rll-bg);
	font-size: 11px;
	color: var(--rll-slate-light);
	text-align: center;
}

@media (max-width: 782px) {
	.rll-brand-header {
		padding: 1.1rem 1.15rem;
	}

	.rll-brand-header h1.rll-brand-header__title,
	.rll-brand-header__title {
		font-size: 1.35rem;
	}
}
