/*
 * Product Layouts: Getting Started page.
 * Loaded after account.css, which supplies the color tokens, the hero and
 * the hero button (the wrapper carries .wpte-wpl-account and
 * .wpte-wpl-start). The header menu comes from admin.css and top-menu.css
 * like on the plugin's other pages.
 */

/* Filled hero button, also used at the end of Quick start. */
.wpte-wpl-start .wpte-wpl-acc-btn.is-primary {
	color: #ffffff;
	background: var(--wpl-brand);
	border-color: var(--wpl-brand);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 4px 12px rgba(81, 86, 252, 0.25);
}

.wpte-wpl-start .wpte-wpl-acc-btn.is-primary:hover,
.wpte-wpl-start .wpte-wpl-acc-btn.is-primary:focus {
	color: #ffffff;
	background: var(--wpl-brand-strong);
	border-color: var(--wpl-brand-strong);
}

/* Cards */

.wpte-wpl-start-card {
	background: var(--wpl-surface);
	border: 1px solid var(--wpl-line);
	border-radius: var(--wpl-radius);
	box-shadow: var(--wpl-shadow);
}

/* Video and Quick start */

.wpte-wpl-start-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.wpte-wpl-start-video {
	display: flex;
	padding: 12px;
}

.wpte-wpl-start-video-frame {
	position: relative;
	flex: 1;
	align-self: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0c0d2e;
	border-radius: 10px;
}

.wpte-wpl-start-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wpte-wpl-start-steps {
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.wpte-wpl-start .wpte-wpl-start-card-title {
	margin: 0 0 20px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wpl-ink);
}

.wpte-wpl-start .wpte-wpl-start-list {
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: wpl-start;
}

.wpte-wpl-start .wpte-wpl-start-list li {
	position: relative;
	margin: 0;
	padding: 0 0 20px 46px;
	counter-increment: wpl-start;
}

.wpte-wpl-start .wpte-wpl-start-list li:last-child {
	padding-bottom: 0;
}

/* Numbered dot, joined to the next step by a thin line. */
.wpte-wpl-start .wpte-wpl-start-list li::before {
	content: counter(wpl-start);
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--wpl-brand);
	background: var(--wpl-brand-soft);
	border-radius: 50%;
}

.wpte-wpl-start .wpte-wpl-start-list li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 34px;
	bottom: 4px;
	left: 14px;
	width: 2px;
	background: var(--wpl-line);
	border-radius: 1px;
}

.wpte-wpl-start .wpte-wpl-start-list strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 30px;
	color: var(--wpl-ink);
}

.wpte-wpl-start .wpte-wpl-start-list span {
	display: block;
	font-size: 13px;
	line-height: 1.55;
	color: var(--wpl-ink-3);
}

.wpte-wpl-start .wpte-wpl-start-list code {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	color: var(--wpl-brand-strong);
	background: var(--wpl-brand-soft);
	border-radius: 6px;
}

.wpte-wpl-start-steps .wpte-wpl-acc-btn {
	align-self: flex-start;
	margin-top: 24px;
}

/* Help and resources */

.wpte-wpl-start .wpte-wpl-start-heading {
	margin: 36px 0 16px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--wpl-ink);
}

.wpte-wpl-start-resources {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.wpte-wpl-start-resource {
	display: flex;
	flex-direction: column;
	padding: 22px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wpte-wpl-start-resource:hover {
	border-color: var(--wpl-brand-line);
	box-shadow: 0 8px 24px rgba(81, 86, 252, 0.1);
	transform: translateY(-2px);
}

.wpte-wpl-start-icon.dashicons {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--wpl-brand);
	background: var(--wpl-brand-soft);
	border-radius: 12px;
}

/* The orange accent on the bug and support cards. */
.wpte-wpl-start-resource:nth-child(n + 3) .wpte-wpl-start-icon {
	color: var(--wpl-accent-strong);
	background: var(--wpl-accent-soft);
}

.wpte-wpl-start .wpte-wpl-start-resource h3 {
	margin: 16px 0 6px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wpl-ink);
}

.wpte-wpl-start .wpte-wpl-start-resource p {
	flex: 1;
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--wpl-ink-3);
}

.wpte-wpl-start .wpte-wpl-start-resource a {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpl-brand-strong);
	text-decoration: none;
	border-radius: 4px;
}

.wpte-wpl-start .wpte-wpl-start-resource a .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	transition: transform 0.15s ease;
}

.wpte-wpl-start .wpte-wpl-start-resource a:hover .dashicons {
	transform: translateX(3px);
}

.wpte-wpl-start .wpte-wpl-start-resource a:focus {
	outline: none;
	box-shadow: 0 0 0 4px var(--wpl-brand-ring);
}

/* Responsive */

@media (max-width: 1280px) {
	.wpte-wpl-start-resources {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1100px) {
	.wpte-wpl-start-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {
	.wpte-wpl-start .wpte-wpl-acc-hero .wpte-wpl-acc-btn {
		order: 3;
	}

	.wpte-wpl-start-resources {
		grid-template-columns: minmax(0, 1fr);
	}
}
