/*
 * Wing Popup - overview / welcome screen.
 *
 * Loaded only on the Overview page (see WDPOP_Admin::enqueue_styles). The
 * options screens keep the framework's own look; this stylesheet gives the
 * one hand-built page a card-based, gradient-accented design that matches
 * the promo popup and the Pro report screens.
 */

/*
 * Contents
 *   1. Hero
 *   2. Buttons
 *   3. Stats
 *   4. Tabs
 *   5. Panels
 *   6. Motion
 *   7. Responsive
 */

.wdpop-dash {
	--wdpop-ink: #0f172a;
	--wdpop-muted: #64748b;
	--wdpop-line: #e2e8f0;
	--wdpop-card: #ffffff;
	--wdpop-bg: #f8fafc;
	--wdpop-brand: #7c3aed;
	--wdpop-brand-2: #4f46e5;
	--wdpop-radius: 16px;
	--wdpop-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.06);
	max-width: 1280px;
	margin-right: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--wdpop-ink);
}

.wdpop-dash h1,
.wdpop-dash h2,
.wdpop-dash h3 {
	color: var(--wdpop-ink);
}

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

/* Hero ---------------------------------------------------------------------- */

.wdpop-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
	overflow: hidden;
	margin: 16px 0 20px;
	padding: 40px 44px;
	border-radius: 22px;
	background: linear-gradient(120deg, #6d28d9 0%, #4f46e5 55%, #7c3aed 100%);
	color: #fff;
	box-shadow: 0 24px 60px rgba(79, 70, 229, 0.35);
	animation: wdpop-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wdpop-hero__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(40px);
	opacity: 0.55;
	pointer-events: none;
	animation: wdpop-float 14s ease-in-out infinite;
}
.wdpop-hero__blob--1 { width: 340px; height: 340px; right: -80px; top: -120px; background: #f472b6; }
.wdpop-hero__blob--2 { width: 260px; height: 260px; left: 35%; bottom: -160px; background: #22d3ee; animation-delay: -6s; }

.wdpop-hero__content {
	position: relative;
	z-index: 1;
}

.wdpop-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 6px 12px 6px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.wdpop-hero__eyebrow .dashicons { font-size: 16px; width: 16px; height: 16px; }
.wdpop-hero__version {
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 11px;
	text-transform: none;
}
.wdpop-hero__pro {
	padding: 1px 8px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #ef4444);
	font-size: 11px;
}

/* Both selectors carry the .wdpop-dash prefix: the generic `.wdpop-dash h1`
   colour rule above would otherwise outrank the block class and paint the
   hero title ink-dark on the purple gradient. */
.wdpop-dash .wdpop-hero__title {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.6px;
	color: #fff;
}

.wdpop-dash .wdpop-hero__lead {
	max-width: 560px;
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

.wdpop-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Mock popup illustration */
.wdpop-hero__art {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wdpop-hero__mock {
	position: relative;
	width: 230px;
	padding: 26px 22px 22px;
	border-radius: 18px;
	background: #fff;
	color: var(--wdpop-ink);
	text-align: center;
	box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
	transform: rotate(-3deg);
	animation: wdpop-bob 6s ease-in-out infinite;
}
.wdpop-hero__mock-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 18px;
	line-height: 26px;
}
.wdpop-hero__mock-gift {
	width: 74px;
	height: 74px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
	font-size: 36px;
	line-height: 74px;
}
.wdpop-hero__mock-title { font-size: 12px; letter-spacing: 2px; color: #475569; }
.wdpop-hero__mock-big { margin: 2px 0; font-size: 30px; font-weight: 900; color: #f97316; letter-spacing: -1px; }
.wdpop-hero__mock-text { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.wdpop-hero__mock-btn {
	display: inline-block;
	padding: 7px 20px;
	border-radius: 999px;
	background: #22d3ee;
	color: #0f172a;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
}

/* Buttons ------------------------------------------------------------------ */

.wdpop-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.wdpop-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.wdpop-btn:hover { transform: translateY(-1px); }
.wdpop-btn--light { background: #fff; color: #4f46e5 !important; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2); }
.wdpop-btn--ghost { background: rgba(255, 255, 255, 0.14); color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.3); }
.wdpop-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
.wdpop-btn--gold { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff !important; box-shadow: 0 10px 24px rgba(249, 115, 22, 0.4); }
.wdpop-btn--primary { background: linear-gradient(135deg, var(--wdpop-brand), var(--wdpop-brand-2)); color: #fff !important; box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35); }

/* Stats --------------------------------------------------------------------- */

.wdpop-stats {
	display: grid;
	/* Six cards: two even rows of three. */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.wdpop-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--wdpop-line);
	border-radius: var(--wdpop-radius);
	background: var(--wdpop-card);
	box-shadow: var(--wdpop-shadow);
	text-decoration: none;
	color: var(--wdpop-ink);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	animation: wdpop-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wdpop-stat:nth-child(2) { animation-delay: 0.05s; }
.wdpop-stat:nth-child(3) { animation-delay: 0.1s; }
.wdpop-stat:nth-child(4) { animation-delay: 0.15s; }
.wdpop-stat:nth-child(5) { animation-delay: 0.2s; }
.wdpop-stat:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1); }

.wdpop-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	flex: 0 0 auto;
}
.wdpop-stat__icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
.wdpop-stat--violet .wdpop-stat__icon { background: #ede9fe; color: #6d28d9; }
.wdpop-stat--green  .wdpop-stat__icon { background: #dcfce7; color: #15803d; }
.wdpop-stat--amber  .wdpop-stat__icon { background: #fef3c7; color: #b45309; }
.wdpop-stat--blue   .wdpop-stat__icon { background: #dbeafe; color: #1d4ed8; }
.wdpop-stat--pink   .wdpop-stat__icon { background: #fce7f3; color: #be185d; }
.wdpop-stat--red    .wdpop-stat__icon { background: #fee2e2; color: #b91c1c; }

.wdpop-stat__label { display: block; font-size: 12px; color: var(--wdpop-muted); }
.wdpop-stat__value { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.wdpop-stat__value small { font-size: 13px; font-weight: 600; color: var(--wdpop-muted); }

/* Tabs ---------------------------------------------------------------------- */

.wdpop-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 18px;
	padding: 5px;
	border: 1px solid var(--wdpop-line);
	border-radius: 999px;
	background: var(--wdpop-card);
	box-shadow: var(--wdpop-shadow);
}

.wdpop-tabs button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wdpop-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
/* position/top pinned: other plugins restyle `.dashicons-editor-help` (the FAQ
   icon) globally as a tooltip marker, nudging it out of line with its siblings. */
.wdpop-tabs button .dashicons { position: static; top: auto; font-size: 16px; width: 16px; height: 16px; }
.wdpop-tabs button:hover { background: #f1f5f9; color: var(--wdpop-ink); }
.wdpop-tabs button.is-active {
	background: linear-gradient(135deg, var(--wdpop-brand), var(--wdpop-brand-2));
	color: #fff;
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

/* Panels -------------------------------------------------------------------- */

.wdpop-panel {
	display: none;
	padding: 26px 28px;
	border: 1px solid var(--wdpop-line);
	border-radius: var(--wdpop-radius);
	background: var(--wdpop-card);
	box-shadow: var(--wdpop-shadow);
}
.wdpop-panel.is-active {
	display: block;
	animation: wdpop-fade 0.3s ease both;
}

.wdpop-h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
}
.wdpop-h2 .dashicons { position: static; top: auto; color: var(--wdpop-brand); }

.wdpop-grid--main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 26px;
	margin-bottom: 30px;
}

/* Feature cards */
.wdpop-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.wdpop-feature {
	padding: 18px;
	border: 1px solid var(--wdpop-line);
	border-radius: 14px;
	background: var(--wdpop-bg);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.wdpop-feature:hover {
	transform: translateY(-3px);
	border-color: #c4b5fd;
	box-shadow: 0 14px 30px rgba(79, 70, 229, 0.12);
}
.wdpop-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
	border-radius: 11px;
	background: linear-gradient(135deg, #ede9fe, #e0e7ff);
	color: var(--wdpop-brand);
}
.wdpop-feature__icon .dashicons { font-size: 20px; width: 20px; height: 20px; }
.wdpop-feature h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.wdpop-feature p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--wdpop-muted); }
.wdpop-feature__state { margin-left: 4px; font-size: 12px; color: #15803d; }
.wdpop-feature__state--lock { color: #b45309; }

/* Side cards */
.wdpop-card {
	margin-bottom: 16px;
	padding: 18px 20px;
	border: 1px solid var(--wdpop-line);
	border-radius: 14px;
	background: var(--wdpop-card);
	box-shadow: var(--wdpop-shadow);
}
.wdpop-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
}

.wdpop-actions { margin: 0; padding: 0; list-style: none; }
.wdpop-actions li { margin: 0 0 6px; }
.wdpop-actions a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--wdpop-line);
	border-radius: 11px;
	background: var(--wdpop-bg);
	color: var(--wdpop-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.wdpop-actions a:hover { border-color: #c4b5fd; background: #faf5ff; transform: translateX(2px); }
.wdpop-actions__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
}
.wdpop-actions__icon .dashicons { font-size: 16px; width: 16px; height: 16px; }
.wdpop-actions__icon--violet { background: #ede9fe; color: #6d28d9; }
.wdpop-actions__icon--blue   { background: #dbeafe; color: #1d4ed8; }
.wdpop-actions__icon--amber  { background: #fef3c7; color: #b45309; }
.wdpop-actions__icon--green  { background: #dcfce7; color: #15803d; }
.wdpop-actions__icon--pink   { background: #fce7f3; color: #be185d; }
.wdpop-actions__arrow { margin-left: auto; color: #94a3b8; font-size: 18px; }

.wdpop-checklist { margin: 0; padding: 0; list-style: none; }
.wdpop-checklist li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 24px;
	font-size: 13px;
	line-height: 1.45;
	color: #334155;
}
.wdpop-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #dcfce7;
	color: #15803d;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

/* Pills */
.wdpop-pill {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}
.wdpop-pill--green { background: #dcfce7; color: #15803d; }
.wdpop-pill--amber { background: #fef3c7; color: #b45309; }
.wdpop-pill--blue  { background: #dbeafe; color: #1d4ed8; }

/* Pro section */
.wdpop-pro-section {
	padding: 24px 26px;
	border-radius: var(--wdpop-radius);
	background: linear-gradient(135deg, #faf5ff, #eef2ff);
	border: 1px solid #e9d5ff;
}
.wdpop-pro-section__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}
.wdpop-pro-section__head .wdpop-h2 { margin-bottom: 6px; }
.wdpop-pro-section__head .wdpop-h2 .dashicons { color: #f59e0b; }
.wdpop-pro-section__head p { margin: 0; font-size: 13px; }
.wdpop-pro-section__offer {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}
.wdpop-pro-section__old { color: #94a3b8; text-decoration: line-through; }
.wdpop-pro-section__price { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.wdpop-features--pro .wdpop-feature { background: #fff; }

/* Getting started */
.wdpop-steps {
	counter-reset: wdpop-step;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}
.wdpop-steps li {
	position: relative;
	padding: 20px 20px 18px 64px;
	border: 1px solid var(--wdpop-line);
	border-radius: 14px;
	background: var(--wdpop-bg);
}
.wdpop-steps li::before {
	counter-increment: wdpop-step;
	content: counter(wdpop-step);
	position: absolute;
	left: 18px;
	top: 18px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--wdpop-brand), var(--wdpop-brand-2));
	color: #fff;
	font-weight: 800;
	line-height: 32px;
	text-align: center;
}
.wdpop-steps h3 { margin: 0 0 6px; font-size: 14px; }
.wdpop-steps p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--wdpop-muted); }

.wdpop-callout {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 16px;
	border-left: 3px solid var(--wdpop-brand);
	border-radius: 0 12px 12px 0;
	background: #f5f3ff;
}
.wdpop-callout .dashicons { color: var(--wdpop-brand); }
.wdpop-callout p { margin: 0; font-size: 13px; }

/* FAQ */
.wdpop-faq details {
	margin: 0 0 8px;
	border: 1px solid var(--wdpop-line);
	border-radius: 12px;
	background: var(--wdpop-bg);
	overflow: hidden;
}
.wdpop-faq summary {
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.wdpop-faq summary::-webkit-details-marker { display: none; }
.wdpop-faq summary::before {
	content: "+";
	display: inline-block;
	width: 20px;
	color: var(--wdpop-brand);
	font-weight: 800;
}
.wdpop-faq details[open] summary::before { content: "\2212"; }
.wdpop-faq details[open] summary { background: #fff; border-bottom: 1px solid var(--wdpop-line); }
.wdpop-faq p { margin: 0; padding: 14px 18px 16px 38px; font-size: 13px; line-height: 1.55; color: #334155; }

/* Link cards */
.wdpop-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.wdpop-link-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--wdpop-line);
	border-radius: 14px;
	background: var(--wdpop-bg);
	color: var(--wdpop-ink);
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.wdpop-link-card:hover { transform: translateY(-3px); border-color: #c4b5fd; box-shadow: 0 14px 30px rgba(79, 70, 229, 0.12); }
.wdpop-link-card .dashicons { color: var(--wdpop-brand); font-size: 22px; width: 22px; height: 22px; }
.wdpop-link-card strong { font-size: 14px; }
.wdpop-link-card span:last-child { font-size: 13px; color: var(--wdpop-muted); }

/* Roadmap */
.wdpop-roadmap { margin: 0; padding: 0; list-style: none; }
.wdpop-roadmap li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--wdpop-line);
	font-size: 13.5px;
}
.wdpop-roadmap li:last-child { border-bottom: 0; }

/* Footer */
.wdpop-dash__footer {
	margin: 22px 0 10px;
	font-size: 12px;
	color: var(--wdpop-muted);
	text-align: center;
}

/* Motion -------------------------------------------------------------------- */

@keyframes wdpop-rise {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}
@keyframes wdpop-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}
@keyframes wdpop-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50%      { transform: translate(-30px, 20px) scale(1.08); }
}
@keyframes wdpop-bob {
	0%, 100% { transform: rotate(-3deg) translateY(0); }
	50%      { transform: rotate(-3deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
	.wdpop-dash *,
	.wdpop-dash *::before,
	.wdpop-dash *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 1200px) {
	.wdpop-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.wdpop-hero { grid-template-columns: 1fr; padding: 30px 26px; }
	.wdpop-hero__art { display: none; }
	.wdpop-grid--main { grid-template-columns: 1fr; }
	.wdpop-pro-section__head { flex-direction: column; }
}
@media (max-width: 640px) {
	.wdpop-stats { grid-template-columns: 1fr 1fr; }
	.wdpop-dash { margin-right: 10px; }
	.wdpop-panel { padding: 18px; }
	.wdpop-dash .wdpop-hero__title { font-size: 26px; }
}

/* Changelog tab: the list reads in two columns where there is room. */
.wdpop-checklist--columns {
	columns: 2;
	column-gap: 40px;
}
.wdpop-checklist--columns li {
	break-inside: avoid;
}
@media (max-width: 960px) {
	.wdpop-checklist--columns { columns: 1; }
}

/* Clear air between what the free plugin includes and the Pro section, so the
   Pro block reads as its own chapter and not as more of the same list. */
.wdpop-dash .wdpop-pro-section {
	margin-top: 120px;
}
