/* =============================================================
   PocketVibes — Homepage: Bento Grid v2
   Canvas: #F4F1EA · Cards: #FFFFFF / #EAEAEA · Accent: #D51016
   ============================================================= */

/* ── Full-bleed override: let the bento canvas fill the viewport ── */
body.pv-is-dashboard #content,
body.pv-is-dashboard .site-content,
body.pv-is-dashboard .ast-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
}

/* Keep Astra's entry-content wrapper out of the way */
body.pv-is-dashboard .entry-content,
body.pv-is-dashboard .ast-page-builder-template .entry-content {
	padding: 0 !important;
	max-width: 100% !important;
}

/* Bento home wrapper */
.pv-bento-home {
	width: 100%;
}

/* Utility: screen-reader only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Tailwind line-clamp polyfill (in case CDN is slow) */
.line-clamp-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- Hero --- */
.pv-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--pv-bg-0);
}

.pv-hero__ambient {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 75% 25%, rgba(var(--pv-mint-rgb), 0.07) 0%, transparent 65%),
		radial-gradient(ellipse 45% 45% at 15% 75%, rgba(60, 80, 160, 0.18) 0%, transparent 60%);
}

.pv-hero__content {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	padding: 128px var(--pv-gap-lg) 88px;
	width: 100%;
}

.pv-hero__status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.pv-hero__headline {
	font-size: clamp(2.6rem, 6.5vw, 5.5rem);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.04;
	margin: 0 0 24px;
	max-width: 820px;
}

.pv-hero__subline {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	color: var(--pv-text-2);
	max-width: 500px;
	line-height: 1.75;
	margin: 0 0 42px;
}

.pv-hero__cta-group {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* Animated scroll hint */
.pv-hero__scroll-hint {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--pv-text-3);
	font-family: var(--pv-font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	animation: pv-hint-bounce 2.4s ease-in-out infinite;
}
.pv-hero__scroll-hint svg { width: 16px; height: 16px; }

@keyframes pv-hint-bounce {
	0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
	50%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* --- Dashboard Bento Section --- */
.pv-dashboard-section {
	padding: 0 var(--pv-gap-lg) 96px;
	max-width: 1280px;
	margin: 0 auto;
}

/* Featured post cell */
.pv-featured-cell {
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-color: var(--pv-bg-2);
	background-size: cover;
	background-position: center;
	position: relative;
}

.pv-featured-cell__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 17, 23, 0.96) 30%, rgba(13, 17, 23, 0.1) 80%);
	border-radius: inherit;
}

.pv-featured-cell__body {
	position: relative;
	z-index: 1;
	padding: 28px;
}

.pv-featured-cell__title {
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	font-weight: 700;
	color: var(--pv-text-1) !important;
	letter-spacing: -0.025em;
	line-height: 1.3;
	margin: 10px 0 16px;
	-webkit-text-fill-color: var(--pv-text-1);
}

.pv-featured-cell__title a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Status widget */
.pv-status-widget {
	display: flex;
	flex-direction: column;
	gap: 0;
	height: 100%;
}

.pv-status-widget__heading {
	font-family: var(--pv-font-mono);
	font-size: 0.65rem;
	color: var(--pv-text-3);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 16px;
}

.pv-status-widget__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid var(--pv-border);
}
.pv-status-widget__row:last-child { border-bottom: none; }

.pv-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.pv-status-dot--green  { background: var(--pv-mint); }
.pv-status-dot--amber  { background: #F59E0B; }
.pv-status-dot--muted  { background: var(--pv-text-3); }

/* Metrics row */
.pv-metrics-row {
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	height: 100%;
	padding: 8px 0;
}

.pv-metrics-row__divider {
	width: 1px;
	height: 36px;
	background: var(--pv-border);
}

/* Recent posts mini-list */
.pv-post-list { display: flex; flex-direction: column; }

.pv-post-list__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--pv-border);
	text-decoration: none !important;
	transition: padding var(--pv-t-base) var(--pv-ease);
}
.pv-post-list__item:last-child  { border-bottom: none; }
.pv-post-list__item:hover       { padding-left: 4px; }

.pv-post-list__thumb {
	width: 56px;
	height: 56px;
	border-radius: var(--pv-r-sm);
	object-fit: cover;
	background: var(--pv-bg-3);
	flex-shrink: 0;
}

.pv-post-list__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--pv-text-1);
	line-height: 1.4;
	margin: 0 0 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pv-post-list__meta {
	font-family: var(--pv-font-mono);
	font-size: 0.7rem;
	color: var(--pv-text-3);
}

/* Newsletter widget */
.pv-newsletter {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pv-newsletter__form {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.pv-newsletter__input {
	flex: 1;
	min-width: 0;
}

/* --- Mobile --- */
@media (max-width: 640px) {
	.pv-hero          { min-height: 85vh; }
	.pv-hero__content { padding: 88px 16px 56px; }
	.pv-dashboard-section { padding: 0 16px 56px; }
	.pv-featured-cell { min-height: 300px; }
}
