/*!
 * Influenzic Gen 2 — Extensions Archive, Category & Single Pages
 *
 * @package influenzic
 */

/* ── Archive & Category Hero (Features-Style Light Glowing Hero) ── */
.g2-ext-hero-light {
	padding: 124px 0 56px;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(640px 420px at 88% 24%, rgba(var(--g2-primary-rgb), 0.16), transparent 68%),
		radial-gradient(560px 380px at 10% 82%, rgba(var(--g2-secondary-rgb), 0.14), transparent 68%),
		radial-gradient(460px 320px at 50% 0%, rgba(var(--g2-tertiary-rgb), 0.08), transparent 70%),
		linear-gradient(135deg, #eef2ff 0%, #e8edf7 50%, #f1f5f9 100%);
	border-bottom: 1px solid var(--g2-border);
}

.g2-ext-hero-light__inner {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}

.g2-ext-hero-light .g2-hero__title {
	font-size: var(--g2-text-hero);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--g2-text-heading);
	margin: 0 0 16px;
}

.g2-ext-hero-light .g2-hero__accent {
	color: var(--g2-primary);
}

.g2-ext-hero-light .g2-hero__sub {
	font-size: var(--g2-text-lead);
	line-height: 1.6;
	color: var(--g2-text-body);
	margin: 0 auto 28px;
	max-width: 640px;
}

.g2-ext-hero-light .g2-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.g2-btn--outline-light {
	background: #ffffff;
	color: var(--g2-text-heading);
	border: 1px solid var(--g2-border);
	box-shadow: var(--g2-shadow-sm);
}

.g2-btn--outline-light:hover {
	border-color: var(--g2-primary);
	color: var(--g2-primary);
	transform: translateY(-1px);
}

/* ── Inclusion Notice Strip (Animated .g2-demo-strip) ── */
.g2-ext-notice {
	padding: 18px 0;
	text-align: center;
}

.g2-ext-notice__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.94);
}

.g2-ext-notice__text strong {
	color: #ffffff;
	font-weight: 700;
	margin-right: 6px;
}

.g2-ext-notice__link {
	color: #ffffff;
	font-weight: 700;
	margin-left: 8px;
	text-decoration: underline;
}

.g2-ext-notice__link:hover {
	color: var(--g2-secondary);
}

/* ── Extension Archive Grid ── */
.inzc-ext-cat-block {
	margin-bottom: 56px;
}

.inzc-ext-cat-block:last-child {
	margin-bottom: 0;
}

.inzc-ext-cat-block__heading {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--g2-text-heading);
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--g2-border);
}

.inzc-ext-cat-block__desc {
	font-size: 0.9375rem;
	color: var(--g2-text-body);
	margin: 10px 0 24px;
}

.inzc-ext-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.inzc-ext-card {
	display: flex;
	flex-direction: column;
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
	border-radius: var(--g2-radius-lg);
	padding: 24px;
	text-decoration: none;
	transition: border-color var(--g2-transition-fast), box-shadow var(--g2-transition-fast), transform var(--g2-transition-fast);
	box-shadow: var(--g2-shadow-sm);
}

.inzc-ext-card:hover {
	box-shadow: var(--g2-shadow-md);
	border-color: rgba(var(--g2-primary-rgb), 0.28);
	transform: translateY(-2px);
	text-decoration: none;
}

.inzc-ext-card__head {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.inzc-ext-card__title-block {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.inzc-ext-card__logo-wrap {
	flex-shrink: 0;
	height: 24px;
	display: flex;
	align-items: center;
}

.inzc-ext-card__logo-img {
	max-height: 24px;
	width: auto;
	object-fit: contain;
}

.inzc-ext-card__name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--g2-text-heading);
	margin: 0;
}

.inzc-ext-card__excerpt {
	font-size: 0.875rem;
	color: var(--g2-text-body);
	line-height: 1.6;
	flex: 1;
	margin: 0 0 16px;
}

.inzc-ext-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--g2-border);
	padding-top: 12px;
	margin-top: auto;
}

.inzc-ext-card__price {
	font-size: 0.9375rem;
	color: var(--g2-text-heading);
}

.inzc-ext-card__price strong {
	font-weight: 700;
}

.inzc-ext-card__badge {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 6px;
}

.inzc-ext-card__badge--core {
	color: var(--g2-primary);
	background: rgba(var(--g2-primary-rgb), 0.09);
}

.inzc-ext-card__badge--free {
	color: #059669;
	background: rgba(16, 185, 129, 0.11);
}

.inzc-ext-card__link-text {
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--g2-primary);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: transform 0.2s ease, color 0.2s ease;
}

.inzc-ext-card:hover .inzc-ext-card__link-text {
	color: var(--g2-primary-hover);
	transform: translateX(3px);
}

.inzc-ext-archive__empty {
	text-align: center;
	color: var(--g2-text-muted);
	padding: 60px 0;
}

/* ── Single Extension Hero Shell & Breadcrumb (Matches Light Glowing Hero) ── */
.g2-ext-hero-shell {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(640px 420px at 88% 24%, rgba(var(--g2-primary-rgb), 0.16), transparent 68%),
		radial-gradient(560px 380px at 10% 82%, rgba(var(--g2-secondary-rgb), 0.14), transparent 68%),
		radial-gradient(460px 320px at 50% 0%, rgba(var(--g2-tertiary-rgb), 0.08), transparent 70%),
		linear-gradient(135deg, #eef2ff 0%, #e8edf7 50%, #f1f5f9 100%);
	border-bottom: 1px solid var(--g2-border);
}

/* ── Single Extension Quick-Specs & Trust Strip ── */
.g2-ext-specs-strip__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 32px;
}

.g2-ext-specs-strip__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
}

.g2-ext-specs-strip__item svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--g2-secondary);
}

.g2-ext-breadcrumb-bar {
	position: relative;
	z-index: 1;
	background: transparent;
	border-bottom: 1px solid rgba(15, 23, 42, 0.07);
	padding: 86px 0 12px;
}

.has-inzc-promo .g2-ext-breadcrumb-bar {
	padding-top: 136px;
}

.g2-ext-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.825rem;
	font-weight: 500;
	color: var(--g2-text-muted);
}

.g2-ext-breadcrumb a,
.g2-ext-breadcrumb a:visited {
	color: var(--g2-text-body);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}

.g2-ext-breadcrumb a:hover {
	color: var(--g2-primary);
}

.g2-ext-breadcrumb svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	opacity: 0.55;
}

.g2-ext-breadcrumb span[aria-current],
.g2-ext-breadcrumb span:last-child {
	color: var(--g2-text-heading);
	font-weight: 600;
}

/* ── Single Extension Hero ── */
.inzc-ext-hero {
	position: relative;
	z-index: 1;
	background: transparent;
	padding: 36px 0 56px;
}

.inzc-ext-hero__inner {
	position: relative;
}

.inzc-ext-hero__grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.inzc-ext-hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.inzc-ext-hero__title {
	font-size: clamp(2rem, 4.5vw, 2.85rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--g2-text-heading);
	margin: 0 0 8px;
	line-height: 1.15;
}

.inzc-ext-hero__pricing-box {
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
	border-radius: 14px;
	padding: 20px 24px;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 20px;
	max-width: 100%;
	box-shadow: var(--g2-shadow-md);
	flex-wrap: wrap;
}

.inzc-ext-hero__pricing-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.inzc-ext-hero__pricing-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--g2-text-muted);
}

.inzc-ext-hero__pricing-num {
	font-size: 2.35rem;
	font-weight: 800;
	color: var(--g2-text-heading);
	line-height: 1.05;
}

.inzc-ext-hero__pricing-num--free {
	color: #059669;
}

.inzc-ext-hero__pricing-period {
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--g2-text-body);
}

.inzc-ext-hero__icon-box {
	border: 1px solid #dcfce7;
	background: #f0fdf4;
	border-radius: 12px;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.inzc-ext-hero__icon-badge {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.inzc-ext-hero__icon-badge svg {
	width: 18px;
	height: 18px;
}

.inzc-ext-hero__inclusion-text {
	font-size: 0.85rem;
	font-weight: 600;
	color: #15803d;
	line-height: 1.35;
	text-align: left;
}

.inzc-ext-hero__inclusion-line {
	display: block;
}

.inzc-ext-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (min-width: 992px) {
	.inzc-ext-hero__grid {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 40px;
	}

	.inzc-ext-hero__brand {
		flex: 1;
		min-width: 0;
	}

	.inzc-ext-hero__title {
		margin-bottom: 0;
	}

	.inzc-ext-hero__purchase {
		flex-shrink: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		text-align: right;
	}

	.inzc-ext-hero__actions {
		justify-content: flex-end;
	}
}

/* ── Single Extension Content + Sidebar Layout ── */
.inzc-ext-layout {
	background: var(--g2-bg-white);
	padding: 60px 0;
}

.inzc-ext-layout__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 48px;
	align-items: start;
}

.inzc-ext-content__body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--g2-text-body);
}

.inzc-ext-content__body h2,
.inzc-ext-content__body h3,
.inzc-ext-content__body h4 {
	color: var(--g2-text-heading);
	font-weight: 800;
	line-height: 1.3;
	margin: 1.75em 0 0.65em;
}

.inzc-ext-content__body h2:first-child,
.inzc-ext-content__body h3:first-child {
	margin-top: 0;
}

.inzc-ext-content__body p,
.inzc-ext-content__body ul,
.inzc-ext-content__body ol {
	margin: 0 0 1.15em;
}

.inzc-ext-content__body ul,
.inzc-ext-content__body ol {
	padding-left: 1.35em;
}

.inzc-ext-content__body li {
	margin-bottom: 0.45em;
}

.inzc-ext-compat {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--g2-text-muted);
	border-top: 1px solid var(--g2-border);
	margin-top: 40px;
	padding-top: 20px;
}

.inzc-ext-compat svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.inzc-ext-sidebar {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.inzc-ext-sidebar__box {
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
	border-radius: var(--g2-radius-lg);
	padding: 24px;
	box-shadow: var(--g2-shadow-sm);
}

.inzc-ext-sidebar__box--cta {
	border-color: var(--g2-primary);
	border-width: 2px;
}

.inzc-ext-sidebar__box-heading {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--g2-text-heading);
	margin: 0 0 16px;
}

.inzc-ext-sidebar__price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0 12px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.88rem;
	color: #64748b;
	margin-bottom: 12px;
}

.inzc-ext-sidebar__price-row strong {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
}

.inzc-ext-sidebar__icon-box {
	border: 1px solid #dcfce7;
	background: #f0fdf4;
	border-radius: 12px;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.inzc-ext-sidebar__icon-badge {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #dcfce7;
	border: 1px solid #bbf7d0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.inzc-ext-sidebar__icon-badge svg {
	width: 18px;
	height: 18px;
}

.inzc-ext-sidebar__inclusion-text {
	font-size: 0.83rem;
	color: #475569;
	line-height: 1.35;
	text-align: left;
}

.inzc-ext-sidebar__inclusion-text strong {
	font-weight: 700;
	color: #15803d;
}

.inzc-ext-sidebar__inclusion-line {
	display: block;
}

.inzc-ext-sidebar__btn {
	display: flex;
	width: 100%;
	justify-content: center;
	text-align: center;
	margin-top: 16px;
}

.inzc-ext-sidebar__pricing-link {
	display: block;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--g2-text-muted);
	margin-top: 10px;
	text-decoration: none;
}

.inzc-ext-sidebar__pricing-link:hover {
	color: var(--g2-primary);
}

.inzc-ext-sidebar__details {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
}

.inzc-ext-sidebar__details li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--g2-border);
	color: var(--g2-text-body);
}

.inzc-ext-sidebar__details li:last-child {
	border-bottom: none;
}

.inzc-ext-sidebar__details strong {
	color: var(--g2-text-heading);
	text-align: right;
}

.inzc-ext-sidebar__related {
	list-style: none;
	margin: 0;
	padding: 0;
}

.inzc-ext-sidebar__related li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--g2-border);
	font-size: 0.8125rem;
}

.inzc-ext-sidebar__related li:last-child {
	border-bottom: none;
}

.inzc-ext-sidebar__related a {
	color: var(--g2-text-heading);
	text-decoration: none;
}

.inzc-ext-sidebar__related a:hover {
	color: var(--g2-primary);
}

.inzc-ext-sidebar__related span {
	color: var(--g2-text-muted);
	font-weight: 600;
	flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
	.inzc-ext-layout__inner {
		grid-template-columns: 1fr;
	}

	.inzc-ext-sidebar {
		position: static;
	}

	.inzc-ext-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.g2-ext-hero-light {
		padding: 108px 0 44px;
	}

	.has-inzc-promo .g2-ext-hero-light {
		padding-top: 205px;
	}

	.g2-ext-hero-light__inner {
		text-align: left;
	}

	.g2-ext-hero-light .g2-hero__sub {
		margin: 0 0 24px;
	}

	.g2-ext-hero-light .g2-hero__actions {
		justify-content: flex-start;
	}

	.g2-ext-notice {
		text-align: left;
	}

	.g2-ext-specs-strip__list {
		justify-content: flex-start;
		gap: 10px 20px;
	}

	.g2-ext-notice .g2-demo-strip__deco {
		opacity: 0.32;
	}
}

@media (max-width: 575px) {
	.inzc-ext-grid {
		grid-template-columns: 1fr;
	}
}
