/**
 * GetWaveResume Companion — Chrome Web Store CTA (gwr-child 1.3.1).
 * Uses the live 1.3.0 design tokens when present, with solid fallbacks
 * so the same file still works on the older teal-wave theme.
 * No external fonts, images or scripts.
 */

.gwr-chrome-cta,
.gwr-chrome-cta * {
	box-sizing: border-box;
}

.gwr-chrome-cta {
	font-family: var(--gwr-font, "Manrope", ui-sans-serif, system-ui, sans-serif);
	-webkit-font-smoothing: antialiased;
}

.gwr-chrome-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	width: min(1120px, calc(100% - 2.5rem));
	margin: 0 auto;
}

.gwr-chrome-cta__text {
	margin: 0;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.gwr-chrome-cta__hint {
	margin: 0.2rem 0 0;
	font-size: 0.9rem;
	line-height: 1.45;
	font-weight: 500;
	opacity: 0.85;
}

.gwr-chrome-cta__copy {
	flex: 1 1 16rem;
	min-width: 0;
}

.gwr-chrome-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.6rem;
	padding: 0.55rem 1.15rem;
	border: 1px solid transparent;
	border-radius: var(--gwr-r-pill, 999px);
	background: var(--gwr-sun, #ffd166);
	color: var(--gwr-deep, #062a3d) !important;
	font: 750 0.95rem/1.2 var(--gwr-font, "Manrope", ui-sans-serif, system-ui, sans-serif);
	letter-spacing: -0.01em;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 8px 18px -10px rgba(255, 196, 64, 0.7);
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s, color .18s, border-color .18s;
}

.gwr-chrome-cta__btn:hover {
	background: var(--gwr-sun-hi, #ffdf8f);
	transform: translateY(-1px);
	color: var(--gwr-deep, #062a3d) !important;
}

.gwr-chrome-cta__btn:focus-visible {
	outline: 3px solid var(--gwr-aqua, #3dd6c3);
	outline-offset: 3px;
}

.gwr-chrome-cta__icon {
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 1.15em;
}

.gwr-chrome-cta__mobile {
	display: none;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	font-weight: 550;
}

/* -------------------------------------------------------------------------
   Footer bar (every page), flush above the site footer.
   ------------------------------------------------------------------------- */
.gwr-chrome-cta--footer {
	margin: 0;
	padding: 0.7rem 0;
	background: var(--gwr-ocean, #0a4f68);
	color: #f3fafa;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-site-blocks > .gwr-chrome-cta--footer {
	margin-block-start: 0 !important;
}

.gwr-chrome-cta--footer .gwr-chrome-cta__text {
	font-size: 0.98rem;
	color: #f3fafa;
}

.gwr-chrome-cta--footer .gwr-chrome-cta__btn {
	background: var(--gwr-sun, #ffd166);
	color: var(--gwr-deep, #062a3d) !important;
}

/* -------------------------------------------------------------------------
   Homepage hero: sits under the two existing CTAs, does not replace them.
   ------------------------------------------------------------------------- */
.gwr-chrome-cta--hero {
	margin: -1.15rem 0 1.75rem;
}

.gwr-chrome-cta--hero .gwr-chrome-cta__btn--hero {
	background: rgba(61, 214, 195, 0.16);
	border-color: rgba(61, 214, 195, 0.55);
	color: #f3fafa !important;
	box-shadow: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.gwr-chrome-cta--hero .gwr-chrome-cta__btn--hero:hover {
	background: rgba(61, 214, 195, 0.28);
	border-color: rgba(167, 243, 230, 0.8);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.gwr-chrome-cta--hero .gwr-chrome-cta__mobile {
	color: rgba(232, 247, 248, 0.8);
	text-align: inherit;
}

@media (max-width: 960px) {
	.gwr-chrome-cta--hero {
		display: flex;
		justify-content: center;
		margin-top: -1rem;
	}
}

/* -------------------------------------------------------------------------
   Resume builder page: card between the intro and the builder.
   ------------------------------------------------------------------------- */
.gwr-chrome-cta--builder {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	background: var(--gwr-foam, #f3fafa);
	border: 1px solid var(--gwr-line, #d6e5e8);
	border-radius: var(--gwr-r-md, 16px);
	color: var(--gwr-text, #1c3342);
}

.gwr-chrome-cta--builder .gwr-chrome-cta__inner {
	width: 100%;
}

.gwr-chrome-cta--builder .gwr-chrome-cta__text {
	color: var(--gwr-heading, #0b1f2e);
	font-size: 1.05rem;
}

.gwr-chrome-cta--builder .gwr-chrome-cta__btn--builder {
	flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   Dark mode (tokens set on <html data-theme> by the 1.3.0 theme script).
   ------------------------------------------------------------------------- */
@media screen {
	html[data-theme="dark"] .gwr-chrome-cta--builder {
		background: #0f3340;
		border-color: rgba(95, 217, 200, 0.28);
		color: #e8f7f8;
	}

	html[data-theme="dark"] .gwr-chrome-cta--builder .gwr-chrome-cta__text {
		color: #f3fafa;
	}

	html[data-theme="dark"] .gwr-chrome-cta--footer {
		background: #0a3d52;
	}
}

/* -------------------------------------------------------------------------
   Mobile / narrow viewports: hide the install button (extensions are
   desktop-only) and show a softer note instead.
   ------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.gwr-chrome-cta__btn {
		display: none !important;
	}

	.gwr-chrome-cta__mobile {
		display: block;
	}

	.gwr-chrome-cta--footer {
		padding: 0.65rem 0;
	}

	.gwr-chrome-cta--footer .gwr-chrome-cta__inner {
		width: calc(100% - 2rem);
	}

	.gwr-chrome-cta--footer .gwr-chrome-cta__text {
		display: none;
	}

	.gwr-chrome-cta--hero {
		margin: -0.5rem 0 1.25rem;
	}

	.gwr-chrome-cta--builder .gwr-chrome-cta__hint {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gwr-chrome-cta__btn,
	.gwr-chrome-cta__btn:hover {
		transition: none;
		transform: none;
	}
}

@media print {
	.gwr-chrome-cta {
		display: none !important;
	}
}
