/* Premium Content frontend styles. */

/* Inline fragments stay inline; block fragments (multiple paragraphs) are block. */
.wpc-premium-placeholder[data-block] {
	display: block;
	margin: 1em 0;
}

/* ---- Shared inline icons ---------------------------------------------- */
.wpc-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.wpc-ico svg { width: 100%; height: 100%; display: block; }

/* ---- Inline teaser (shown in place of each gated fragment) ------------ */
.wpc-teaser {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	border: 1px solid rgba( 27, 58, 107, 0.18 );
	border-radius: 10px;
	padding: 11px 14px;
	background: linear-gradient( 90deg, #f4f7fb, #eaf0fc );
	color: #10254a;
	font-weight: 600;
	line-height: 1.3;
	transition: box-shadow 0.15s ease;
}
.wpc-teaser:hover,
.wpc-teaser:focus {
	box-shadow: 0 4px 16px rgba( 27, 58, 107, 0.18 );
	outline: none;
}
.wpc-teaser__lock { width: 18px; height: 18px; color: #ce2127; flex: 0 0 auto; }
.wpc-teaser__label { flex: 1 1 auto; }
.wpc-teaser__cta {
	flex: 0 0 auto;
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	color: #fff;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.85em;
	font-weight: 700;
}

/* ---- InfoCons "Membru Simpatizant" membership popover ----------------- */
.wpc-modal.wpc-membership {
	max-width: 560px;
	padding: 0;
	overflow: hidden;
	color: #eaf0fc;
	background: linear-gradient( 160deg, #1b3a6b 0%, #10254a 60%, #0c1e3f 100% );
	border: 1px solid rgba( 255, 255, 255, 0.08 );
}
.wpc-membership .wpc-modal__close { color: rgba( 255, 255, 255, 0.7 ); z-index: 2; }
.wpc-membership .wpc-modal__close:hover { color: #fff; }

.wpc-membership__ribbon {
	text-align: center;
	font-size: 0.82em;
	font-weight: 600;
	color: #cdddf5;
	padding: 12px 44px;
	background: rgba( 255, 255, 255, 0.04 );
	border-bottom: 1px solid rgba( 255, 255, 255, 0.12 );
}

.wpc-membership__body { padding: 18px 24px 22px; }

.wpc-membership__head {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.wpc-membership__logo {
	display: block;
	width: 168px;
	height: 52px;
	background-color: #fff;
	border-radius: 8px;
	background-image: url( ../img/infocons-logo.png );
	background-repeat: no-repeat;
	background-position: center;
	background-size: 146px auto;
}
.wpc-membership__pill {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 700;
	color: #fff;
	background: linear-gradient( 180deg, rgba( 54, 112, 222, 0.45 ), rgba( 46, 91, 176, 0.55 ) );
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 999px;
	padding: 6px 14px;
}
.wpc-membership__title {
	margin: 0 0 14px;
	font-size: 1.35em;
	line-height: 1.2;
	font-weight: 800;
	color: #fff;
}

.wpc-line { display: flex; align-items: flex-start; gap: 9px; font-weight: 600; line-height: 1.35; }
.wpc-membership__intro { margin-bottom: 10px; color: #eaf0fc; }
.wpc-ico--check {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	color: #fff;
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	border-radius: 6px;
}
.wpc-ico--check svg { width: 14px; height: 14px; margin: auto; }

.wpc-benefits {
	list-style: none;
	margin: 0 0 14px;
	padding: 12px 16px;
	color: #1c2733;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.18 );
}
.wpc-benefits__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #eef2f7;
}
.wpc-benefits__item:last-child { border-bottom: none; }
.wpc-benefits__ico { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; color: #244f93; }
.wpc-benefits__item:first-child .wpc-benefits__ico { color: #e8413f; }
.wpc-benefits__text { font-size: 0.92em; line-height: 1.35; }

.wpc-trial { margin-bottom: 14px; color: #eaf0fc; }

.wpc-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 6px;
	background: rgba( 255, 255, 255, 0.06 );
	border: 1px solid rgba( 255, 255, 255, 0.12 );
	border-radius: 10px;
}
.wpc-price__label { font-weight: 700; color: #fff; }
.wpc-price__monthly { font-weight: 700; color: #fff; }
.wpc-price__sep { color: rgba( 255, 255, 255, 0.4 ); }
.wpc-price__old { text-decoration: line-through; color: #9fb6de; }
.wpc-price__year { font-weight: 800; color: #fff; }
.wpc-price__badge {
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	color: #fff;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 0.8em;
	font-weight: 800;
}
.wpc-price__note { font-size: 0.82em; color: #9fb6de; margin-bottom: 16px; }

/* Scoped under .wpc-membership so these win over the generic .wpc-btn / .wpc-link
   rules defined later in this file (equal specificity → source order). */
.wpc-membership .wpc-membership__cta {
	display: block;
	width: 100%;
	padding: 14px 18px;
	font-size: 1.05em;
	font-weight: 800;
	color: #fff;
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	border: none;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba( 206, 33, 39, 0.4 );
	cursor: pointer;
}
/* Re-assert the red gradient on hover — the generic .wpc-btn:hover gray
   would otherwise win on source order (equal specificity). */
.wpc-membership .wpc-membership__cta:hover {
	filter: brightness( 1.05 );
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
}

.wpc-membership__signin { margin-top: 14px; text-align: center; font-size: 0.9em; color: #cdddf5; }
.wpc-membership .wpc-membership__signin-link {
	display: inline;
	width: auto;
	padding: 0;
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
}

@media ( max-width: 560px ) {
	.wpc-membership__body { padding: 16px; }
	.wpc-membership__ribbon { padding: 10px 38px; font-size: 0.76em; }
	.wpc-membership__title { font-size: 1.15em; }
}

/* Pricing modal (doubled selector so max-width beats the generic .wpc-modal) */
.wpc-modal.wpc-pricing { max-width: 420px; text-align: center; }
.wpc-features {
	list-style: none;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid #eee;
	text-align: left;
}
.wpc-features li {
	position: relative;
	padding: 6px 6px 6px 28px;
	border-bottom: 1px solid #f0f0f0;
}
.wpc-features li::before {
	content: '✓';
	position: absolute;
	left: 6px;
	color: #1aa251;
	font-weight: 700;
}
.wpc-plans { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
/* Doubled selector (.wpc-btn.wpc-plan) so these survive the generic .wpc-btn
   reset (border: none, radius, padding) defined later in this file. */
.wpc-btn.wpc-plan {
	display: inline-flex;
	flex-direction: column;
	flex: 1 1 0;
	align-items: center;
	gap: 4px;
	position: relative;
	background: #fff;
	color: #1a1d21;
	border: 2px solid #d7dbe0;
	border-radius: 10px;
	padding: 12px 18px;
	cursor: pointer;
	font: inherit;
	text-align: center;
}
.wpc-btn.wpc-plan:hover { border-color: #b9bfc6; background: #fff; }
/* Selected = primary (brand blue) border + corner checkmark, nothing else. */
.wpc-btn.wpc-plan--selected,
.wpc-btn.wpc-plan--selected:hover { border-color: #1a73e8; }
.wpc-plan__check {
	display: none;
	position: absolute;
	top: 6px;
	right: 6px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #1a73e8;
	color: #fff;
	align-items: center;
	justify-content: center;
}
.wpc-plan__check svg { width: 11px; height: 11px; }
.wpc-plan--selected .wpc-plan__check { display: inline-flex; }
.wpc-plan__name { font-weight: 700; font-size: 0.9em; }
.wpc-plan__price { font-weight: 600; }
.wpc-plan__old { text-decoration: line-through; opacity: 0.6; margin-right: 6px; }
.wpc-plan__badge {
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	color: #fff;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 0.8em;
	font-weight: 700;
}
.wpc-plans__note { font-size: 13px; color: #555; margin: 0 0 10px; }
.wpc-plans__confirm { margin-top: 16px; }
@media ( max-width: 480px ) {
	.wpc-plans { flex-direction: column; }
	.wpc-btn.wpc-plan { flex: 1 1 auto; width: 100%; }
}

/* Account-page inline placement of the shared plan tiles. */
.wpc-plans-inline { justify-content: flex-start; margin: 12px 0; max-width: 560px; }

span.wpc-revealed { display: inline; }
div.wpc-revealed { display: block; }

.wpc-btn {
	font: inherit;
	cursor: pointer;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	background: #f1f3f4;
	color: #1a1d21;
}
.wpc-btn:hover { background: #e4e7ea; }
.wpc-btn--primary { background: #1a73e8; color: #fff; }
.wpc-btn--primary:hover { background: #1666cf; }
.wpc-btn[disabled] { opacity: 0.6; cursor: default; }

/* Modal */
.wpc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}
.wpc-modal {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 28px 24px 24px;
	width: 92%;
	max-width: 360px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.3 );
}
.wpc-modal__title { margin: 0 0 16px; font-size: 1.2em; }
.wpc-modal__close {
	position: absolute; top: 8px; right: 12px;
	background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: #888;
}
.wpc-input {
	display: block; width: 100%; box-sizing: border-box;
	margin-bottom: 12px; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font: inherit;
}
.wpc-modal .wpc-btn--primary { width: 100%; }
.wpc-modal__error { color: #c0392b; min-height: 18px; margin-bottom: 8px; font-size: 0.9em; }
.wpc-link { background: none; border: none; color: #1a73e8; cursor: pointer; padding: 12px 0 0; display: block; width: 100%; font: inherit; }


/* Full-benefits dialog ("Vezi toate beneficiile"): roomier than the generic
   modal — 12 rows to read. */
.wpc-modal.wpc-benefits-modal { max-width: 640px; }
.wpc-benefits-all { max-height: 70vh; overflow-y: auto; margin: 12px 0; }
.wpc-benefits-all__item { display: flex; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #eee; }
.wpc-benefits-all__item:last-child { border-bottom: none; }
.wpc-benefits-all__ico { width: 26px; height: 26px; flex: 0 0 auto; margin-top: 1px; color: #244f93; }
.wpc-benefits-all__title { font-weight: 700; font-size: 1.02em; }
.wpc-benefits-all__desc { font-size: 13.5px; color: #555; margin-top: 3px; line-height: 1.45; }
.wpc-benefits-all__close { margin-top: 12px; }

/* "See all" row inside the popover's white benefits card. */
.wpc-benefits__item--all { justify-content: center; padding-top: 11px; }
.wpc-membership .wpc-benefits__all {
	display: inline;
	width: auto;
	padding: 0;
	font-weight: 700;
	text-decoration: underline;
}

/* Social sign-in */
.wpc-social { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.wpc-social__btn {
	width: 100%;
	color: #fff;
	font-weight: 600;
	text-align: center;
}
.wpc-social__btn--google { background: #ea4335; }
.wpc-social__btn--google:hover { background: #d23a2d; }
.wpc-social__btn--apple { background: #000; }
.wpc-social__btn--apple:hover { background: #222; }
.wpc-social__btn--facebook { background: #1877f2; }
.wpc-social__btn--facebook:hover { background: #1466d6; }

.wpc-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999;
	font-size: 0.85em;
	margin: 6px 0 12px;
}
.wpc-divider::before,
.wpc-divider::after { content: ''; flex: 1; border-bottom: 1px solid #e3e3e3; }
.wpc-divider::before { margin-right: 10px; }
.wpc-divider::after { margin-left: 10px; }

/* End-of-article membership hero (popover branding: navy gradient, red CTA) */
#wpc-promo { margin: 40px 0 0; }
.wpc-promo__hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 26px 28px;
	border-radius: 14px;
	background: linear-gradient( 160deg, #1b3a6b 0%, #10254a 60%, #0c1e3f 100% );
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	color: #eaf0fc;
	cursor: pointer;
}
.wpc-promo__hero:hover .wpc-promo__cta { filter: brightness( 1.05 ); }
.wpc-promo__hero:focus { outline: 2px solid #1a73e8; outline-offset: 2px; }
.wpc-promo__cta:focus { outline: 2px solid #fff; outline-offset: 2px; }
.wpc-promo__pill {
	display: inline-block;
	font-size: 0.8em;
	font-weight: 700;
	color: #fff;
	background: linear-gradient( 180deg, rgba( 54, 112, 222, 0.45 ), rgba( 46, 91, 176, 0.55 ) );
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 999px;
	padding: 6px 14px;
}
.wpc-promo__title {
	margin: 0;
	font-size: 1.35em;
	line-height: 1.2;
	font-weight: 800;
	color: #fff;
}
.wpc-promo__trial { margin: 0; font-size: 0.92em; color: #cdddf5; }
.wpc-promo__cta {
	margin-top: 4px;
	padding: 13px 26px;
	font: inherit;
	font-size: 1em;
	font-weight: 800;
	color: #fff;
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	border: none;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba( 206, 33, 39, 0.4 );
	cursor: pointer;
}

@media ( max-width: 560px ) {
	.wpc-promo__hero { padding: 20px; }
	.wpc-promo__title { font-size: 1.15em; }
	.wpc-promo__cta { width: 100%; }
}

.wpc-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient( 180deg, #e8413f, #ce2127 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex: none;
}

/* ---- Dev-only membership override panel (cfg.devtools) ----------------- */
#wpc-devtools {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 99997;
	background: #1a1d21;
	color: #e5e7eb;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 12px;
	max-width: 240px;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.3 );
}
.wpc-devtools__title { font-weight: 700; margin: 0 0 6px; }
.wpc-devtools__select {
	display: block;
	width: 100%;
	background: #0f1113;
	color: #e5e7eb;
	border: 1px solid #3a3f46;
	border-radius: 6px;
	padding: 4px 6px;
	font-size: 12px;
}
.wpc-devtools__hint { margin: 6px 0 0; font-size: 10.5px; color: #9ca3af; }

/* ---- Account page ([premium_account] shortcode) ------------------------ */
.wpc-account__title { margin: 0 0 16px; font-size: 1.4em; }
.wpc-account__card {
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 20px;
	max-width: 560px;
	background: #fff;
}
.wpc-account__note { margin: 0 0 12px; }
.wpc-account__error { color: #c0392b; }
.wpc-btn--danger { background: #fff; color: #c0392b; border: 1px solid #c0392b; }
.wpc-btn--danger:hover { background: #fbeeec; }
.wpc-account__confirm { border: 1px solid #e3e3e3; border-radius: 8px; padding: 12px; margin: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wpc-account__confirm p { flex: 1 1 100%; margin: 0; }
.wpc-account__hint { font-size: 12px; color: #777; margin-top: 4px; }

/* Profile header (mobile app / extension popup parity). */
.wpc-account__profile {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 14px;
	max-width: 560px;
	background: #fff;
}
.wpc-account__profile-meta { display: flex; flex-direction: column; min-width: 0; }
.wpc-account__profile-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpc-account__profile-email { font-size: 13px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Member/free status pill, extension popup parity. */
.wpc-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: auto; }
.wpc-pill--member { background: #d8f3e0; color: #0a7d39; }
.wpc-pill--free { background: #eef1f4; color: #41474f; }

/* Green benefits box (non-member upsell), extension popup parity. */
.wpc-benefits-box {
	background: #eafaf0;
	border: 1px solid #c7ebd5;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 12px 0;
	max-width: 560px;
}
.wpc-benefits-box__title {
	font-size: 11px;
	font-weight: 700;
	color: #0a7d39;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
}
.wpc-benefits-box__list { list-style: none; margin: 0; padding: 0; }
.wpc-benefits-box__list li { font-size: 13px; padding: 3px 0 3px 22px; position: relative; color: #1a1d21; }
.wpc-benefits-box__list li::before { content: '✓'; position: absolute; left: 2px; color: #0a7d39; font-weight: 800; }
.wpc-benefits-box__all { margin: 6px 0 0; text-align: left; width: auto; display: inline-block; padding: 0; font-size: 13px; }

#wpc-account .wpc-plans__note { max-width: 560px; }

/* Primary full-width CTA under the inline upsell plans. */
.wpc-account__cta { display: block; width: 100%; max-width: 560px; margin-top: 12px; }

/* Status card (mobile manage-subscription parity). */
.wpc-account__status {
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 14px;
	max-width: 560px;
	background: #fff;
}
.wpc-account__status-line { display: flex; align-items: center; gap: 8px; font-size: 1.05em; margin-bottom: 8px; }
.wpc-account__status-line .wpc-ico { width: 18px; height: 18px; color: #1aa251; }
.wpc-account__warn { color: #c0392b; font-weight: 600; }
.wpc-account__email-row { display: flex; gap: 6px; align-items: baseline; font-size: 13px; color: #666; margin-top: 8px; }
.wpc-account__email-label { font-weight: 600; color: #41474f; }

/* Stacked, full-width action buttons (mobile pattern). */
.wpc-account__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 560px; }

/* Billing-portal card, tappable like the mobile app's row. */
.wpc-account__portalcard {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 14px 16px;
	margin-top: 14px;
	max-width: 560px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.wpc-account__portalcard:hover,
.wpc-account__portalcard:focus { border-color: #1a73e8; outline: none; }
.wpc-account__portalcard-ico { width: 22px; height: 22px; color: #1a73e8; flex: 0 0 auto; }
.wpc-account__portalcard-title { font-weight: 700; }

/* Outline button (bottom sign-out, mobile pattern). */
.wpc-btn--outline { background: #fff; border: 1px solid #ccc; color: #333; }
.wpc-btn--outline:hover { background: #f5f6f7; }
.wpc-account__logout { display: block; width: 100%; max-width: 560px; margin-top: 16px; }

@media ( max-width: 600px ) {
	.wpc-account__card { padding: 16px; }
}
