/* Pi9CN — Base listing page styles (shared across all templates) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
	--pi9cn-primary: #6366f1;
	--pi9cn-secondary: #a855f7;
	--pi9cn-font: 'Inter', system-ui, -apple-system, sans-serif;
}

body.pi9cn-listing-page {
	font-family: var(--pi9cn-font);
	-webkit-font-smoothing: antialiased;
}

/* ---- Countdown ---- */
.pi9cn-countdown {
	display: flex;
	align-items: center;
	gap: 8px;
	font-variant-numeric: tabular-nums;
}

.pi9cn-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
}

.pi9cn-cd-num {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
}

.pi9cn-cd-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.7;
	margin-top: 4px;
}

.pi9cn-countdown-sep {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 18px;
	opacity: 0.5;
}

/* ---- Lead form ---- */
.pi9cn-lead-form-wrap {
	width: 100%;
}

.pi9cn-lead-label {
	margin-bottom: 12px;
	opacity: 0.8;
}

.pi9cn-lead-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pi9cn-lead-row input[type="text"],
.pi9cn-lead-row input[type="email"] {
	flex: 1;
	min-width: 180px;
	padding: 12px 16px;
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 8px;
	background: rgba(255,255,255,0.08);
	color: inherit;
	font-size: 0.9rem;
	font-family: inherit;
}

.pi9cn-lead-row input::placeholder { opacity: 0.5; }

.pi9cn-lead-submit {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: var(--pi9cn-primary);
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.pi9cn-lead-submit:hover { opacity: 0.85; }

.pi9cn-lead-consent {
	display: block;
	margin-top: 10px;
	font-size: 0.8rem;
	opacity: 0.6;
	cursor: pointer;
}

.pi9cn-lead-consent input { margin-right: 6px; }

.pi9cn-lead-feedback {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 0.9rem;
}

.pi9cn-lead-feedback.success { background: rgba(34,197,94,0.15); color: #4ade80; }
.pi9cn-lead-feedback.error   { background: rgba(239,68,68,0.15);  color: #f87171; }

/* ---- Social links ---- */
.pi9cn-social-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.pi9cn-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: inherit;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.pi9cn-social-link:hover {
	background: rgba(255,255,255,0.2);
	transform: translateY(-2px);
}

/* ---- FAQ ---- */
.pi9cn-faq { width: 100%; }

.pi9cn-faq-heading {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.pi9cn-faq-item {
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pi9cn-faq-question {
	width: 100%;
	background: none;
	border: none;
	color: inherit;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	padding: 16px 0;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.pi9cn-faq-icon {
	flex-shrink: 0;
	font-size: 1.2rem;
	transition: transform 0.2s;
}

.pi9cn-faq-question[aria-expanded="true"] .pi9cn-faq-icon {
	transform: rotate(45deg);
}

.pi9cn-faq-answer {
	padding: 0 0 16px;
	opacity: 0.8;
	line-height: 1.7;
}

/* ---- Utilities ---- */
.pi9cn-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

@media (max-width: 640px) {
	.pi9cn-container { padding: 0 16px; }
	.pi9cn-lead-row { flex-direction: column; }
	.pi9cn-lead-submit { width: 100%; }
	.pi9cn-countdown { gap: 4px; }
	.pi9cn-countdown-unit { min-width: 52px; }
}

/* ---- Share bar ---- */
.pi9cn-share-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-right: 14px;
}

.pi9cn-share-bar--fixed {
	position: fixed;
	top: 12px;
	right: 24px;
	z-index: 9999;
	margin-right: 0;
}

.pi9cn-share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.12);
	text-decoration: none;
	flex-shrink: 0;
	transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.pi9cn-share-btn:hover {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.85);
	transform: translateY(-1px);
}

.pi9cn-share-btn svg {
	display: block;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.pi9cn-share-bar { gap: 6px; margin-right: 10px; }
	.pi9cn-share-btn { width: 26px; height: 26px; }
	.pi9cn-share-btn svg { width: 12px; height: 12px; }
	.pi9cn-share-bar--fixed { top: 8px; right: 12px; }
}

/* ---- Website link ---- */
.pi9cn-website-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: inherit;
	opacity: 0.55;
	font-size: 0.85rem;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: opacity 0.2s;
	word-break: break-all;
}

.pi9cn-website-link:hover {
	opacity: 1;
	color: inherit;
}
