/* YouWall admin pages. */

.youwall-admin {
	--youwall-red: #e00000;
	--youwall-red-dark: #b80000;
	--youwall-text: #1d2327;
	--youwall-muted: #646970;
	--youwall-line: #e2e4e7;
	margin: 0 0 0 -20px;
	color: var(--youwall-text);
}

.youwall-admin .youwall-icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

/* ── Header ───────────────────────────────────────────────────────── */

.youwall-header {
	background: linear-gradient(135deg, #b80000 0%, #e00000 50%, #ff3b3b 100%);
	color: #fff;
}

.youwall-header__inner,
.youwall-nav__inner,
.youwall-content {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 28px;
}

.youwall-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 76px;
}

.youwall-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.youwall-brand__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.youwall-brand__name {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.youwall-brand__version {
	display: block;
	font-size: 12px;
	opacity: 0.8;
}

.youwall-header__right {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
}

.youwall-badge {
	padding: 4px 12px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.22);
	font-weight: 600;
}

.youwall-byline a {
	color: #fff;
}

.youwall-byline a:focus {
	box-shadow: 0 0 0 2px #fff;
	outline: 0;
}

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

.youwall-nav {
	border-bottom: 1px solid var(--youwall-line);
	background: #fff;
}

.youwall-nav__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.youwall-nav__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 16px 13px;
	border-bottom: 3px solid transparent;
	color: #3c434a;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.youwall-nav__tab:hover {
	color: var(--youwall-red);
}

.youwall-nav__tab:focus {
	box-shadow: inset 0 0 0 2px var(--youwall-red);
	outline: 0;
}

.youwall-nav__tab.is-active {
	border-bottom-color: var(--youwall-red);
	color: var(--youwall-red);
	font-weight: 600;
}

/* ── Content ──────────────────────────────────────────────────────── */

.youwall-content {
	padding-top: 24px;
	padding-bottom: 40px;
}

.youwall-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 20px;
}

.youwall-card {
	position: relative;
	margin: 0 0 20px;
	padding: 6px 24px 20px;
	border: 1px solid var(--youwall-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.youwall-grid .youwall-card {
	margin: 0;
}

.youwall-grid + .youwall-card {
	margin-top: 20px;
}

.youwall-card h2 {
	margin: 18px 0 8px;
	font-size: 17px;
}

.youwall-muted {
	color: var(--youwall-muted);
}

.youwall-admin .button-primary {
	border-color: var(--youwall-red-dark);
	background: var(--youwall-red);
	color: #fff;
}

.youwall-admin .button-primary:hover,
.youwall-admin .button-primary:focus {
	border-color: var(--youwall-red-dark);
	background: var(--youwall-red-dark);
	color: #fff;
}

.youwall-admin .button-primary:focus {
	box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--youwall-red);
}

.youwall-admin .button .youwall-icon {
	margin: -2px 2px 0 -2px;
}

/* Setup steps */

.youwall-steps {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.youwall-steps li {
	display: flex;
	gap: 14px;
	margin: 0 0 16px;
}

.youwall-steps p {
	margin: 2px 0 8px;
	color: var(--youwall-muted);
}

.youwall-steps__num {
	display: flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fde8e8;
	color: var(--youwall-red);
	font-weight: 700;
}

.youwall-steps .is-done .youwall-steps__num {
	background: #e6f4ea;
	color: #00813a;
}

/* Shortcode builder */

.youwall-builder {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: flex-end;
	margin-top: 12px;
}

.youwall-builder p {
	margin: 0;
}

.youwall-builder label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.youwall-b-output {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.youwall-b-output label {
	flex: 1 1 100%;
}

.youwall-b-output input {
	flex: 1;
	min-width: 220px;
	background: #f6f7f7;
}

/* Layout cards */

.youwall-layouts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 12px;
}

.youwall-layout {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border: 1px solid var(--youwall-line);
	border-radius: 8px;
}

.youwall-layout span:last-child {
	color: var(--youwall-muted);
	font-size: 13px;
}

.youwall-layout__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 6px;
	border-radius: 8px;
	background: #fde8e8;
	color: var(--youwall-red);
}

/* Connect */

.youwall-guide {
	margin: 0 0 12px;
	padding: 12px 16px;
	border-left: 4px solid var(--youwall-red);
	border-radius: 0 6px 6px 0;
	background: #fff5f5;
}

.youwall-guide summary {
	font-weight: 600;
	cursor: pointer;
}

.youwall-guide ol {
	margin: 10px 0 8px 20px;
}

.youwall-guide li {
	margin-bottom: 6px;
}

.youwall-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.youwall-result {
	font-weight: 600;
}

.youwall-result.is-ok {
	color: #00813a;
}

.youwall-result.is-error {
	color: #d63638;
}

/* Notices sit above the header (after .wp-header-end). */

.youwall-admin > .notice,
.youwall-admin > .settings-error {
	margin: 12px 20px 12px 20px;
}

.youwall-pro {
	border-left: 4px solid var(--youwall-red);
}

.youwall-pro .notice-dismiss {
	top: 4px;
	right: 4px;
}

@media (max-width: 782px) {
	.youwall-admin {
		margin-left: -10px;
	}

	.youwall-header__inner,
	.youwall-nav__inner,
	.youwall-content {
		padding: 0 14px;
	}

	.youwall-content {
		padding-top: 16px;
	}

	.youwall-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Pro tiles and page (shown only when a Pro link is set or Pro is active). */

.youwall-layout--pro {
	border-style: dashed;
	color: inherit;
	text-decoration: none;
}

.youwall-layout--pro:hover,
.youwall-layout--pro:focus {
	border-color: var(--youwall-red);
	color: inherit;
}

.youwall-layout--pro:focus {
	box-shadow: 0 0 0 2px var(--youwall-red);
	outline: 0;
}

.youwall-pro-tag {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	border-radius: 99px;
	background: var(--youwall-red);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	vertical-align: 1px;
}

.youwall-pro-list {
	display: grid;
	gap: 14px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.youwall-pro-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.youwall-pro-list .youwall-layout__icon {
	margin: 0;
}

.youwall-pro-list strong,
.youwall-pro-list .youwall-muted {
	display: block;
}

.youwall-pro-page .button .youwall-icon {
	margin: -2px 0 0 4px;
}
