/**
 * IRHYT design tokens — fallback companion + local fonts.
 * Loaded ONLY when IRHYT theme is NOT active. When theme active (IRHYT_THEME_VERSION
 * + irhyt_get_option), plugin follows theme's tokens (irhyt-global) via wprh_theme_provides_tokens().
 * Variables identical to theme inc/global-css.php :root/.dark — block styles use var(--token).
 * Local fonts (Inter, Plus Jakarta Sans, JetBrains Mono) in assets/fonts/ — no Google CDN.
 */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('./fonts/Inter.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600 800;font-display:swap;src:url('./fonts/PlusJakartaSans.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url('./fonts/JetBrainsMono.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

.section {
	padding: var(--space-100) 0;
}

@media (max-width: 768px) {
	.section {
		padding: var(--space-80) 0;
	}
}

.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--space-50);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-20);
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	cursor: pointer;
	transition: transform var(--transition-smooth), background-color var(--transition-base), box-shadow var(--transition-base), color var(--transition-base), border-color var(--transition-base);
	border: 1.5px solid transparent;
	white-space: nowrap;
	text-decoration: none;
}

.btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.btn-primary {
	background-color: var(--color-primary);
	color: #ffffff;
	box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
	background-color: var(--color-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px var(--color-primary-glow);
}

.btn-primary:active {
	transform: translateY(0);
	background-color: var(--color-primary-active);
}

.btn-secondary {
	background-color: var(--color-surface-elevated);
	color: var(--color-ink);
	border-color: var(--color-border);
	box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
	background-color: var(--color-primary-alpha);
	transform: translateY(-2px);
}

.btn-ghost {
	background-color: transparent;
	color: var(--color-ink-secondary);
}

.btn-ghost:hover {
	background-color: var(--color-ink-alpha);
	color: var(--color-ink);
}

/**
 * Shared cross-block components — used by 2+ blocks, so they live here
 * instead of being duplicated in every block's style.css.
 */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.badge-primary {
	background-color: var(--color-primary-alpha);
	color: var(--color-primary);
	border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-accent {
	background-color: var(--color-accent-alpha);
	color: var(--color-accent);
	border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-success {
	background-color: var(--color-success-alpha);
	color: var(--color-success);
}

.section-header {
	max-width: 640px;
	margin: 0 auto var(--space-80);
	text-align: center;
}

.section-header .badge {
	margin-bottom: var(--space-30);
}

.section-title {
	font-size: var(--text-4xl);
	font-weight: var(--fw-extrabold);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	margin-bottom: var(--space-30);
}

.section-subtitle {
	font-size: var(--text-lg);
	color: var(--color-muted);
	line-height: var(--leading-relaxed);
}

.section-header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-50);
	margin-bottom: var(--space-80);
	text-align: left;
}

.section-header-row .section-title {
	margin-bottom: var(--space-20);
}

.section-header-row .section-subtitle {
	font-size: var(--text-base);
}

.section-header-row-link {
	flex-shrink: 0;
	font-size: var(--text-sm);
	font-weight: var(--fw-semibold);
	color: var(--color-primary);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-bottom: 6px;
}

.section-eyebrow-plain {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--text-xs);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	color: var(--color-primary);
	margin-bottom: var(--space-30);
}

.section-eyebrow-plain::before {
	content: '';
	width: 18px;
	height: 2px;
	background-color: var(--color-primary);
}

.link-arrow {
	display: inline-block;
	transition: transform var(--transition-fast);
}

.pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
	display: inline-block;
}

/**
 * Editor-only: shared "repeater card" look for block sidebars/inline
 * repeater UIs (feature items, testimonials, products, posts, FAQ, etc).
 * Modern enterprise-grade, minimalist: bordered card, generous spacing.
 */
.wprh-repeater-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-40);
	margin-bottom: var(--space-30);
	background-color: var(--color-surface-elevated);
}

.wprh-repeater-item + .wprh-repeater-add {
	margin-top: var(--space-20);
}

.wprh-repeater-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-20);
	font-size: var(--text-xs);
	font-weight: var(--fw-semibold);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
	color: var(--color-muted);
}

/**
 * Shared empty / error / loading states — polished enterprise UX for all auto-loop blocks.
 * Used by youtube-shorts, post-grid, product-grid (cache 2-7 hari, auto/selected modes).
 */
.wprh-empty-state {
	border: 1.5px dashed var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-60) var(--space-40);
	text-align: center;
	background-color: var(--color-surface);
	max-width: 560px;
	margin: 0 auto;
}

.wprh-empty-state--error {
	border-style: solid;
	border-color: var(--color-border);
	background-color: var(--color-surface-elevated);
	box-shadow: var(--shadow-subtle);
}

.wprh-empty-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	background-color: var(--color-surface-elevated);
	border: 1px solid var(--color-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	margin-bottom: var(--space-30);
	color: var(--color-muted);
}

.wprh-empty-state--error .wprh-empty-icon {
	background-color: var(--color-accent-alpha);
	color: var(--color-accent);
	border-color: rgba(245,158,11,0.2);
}

.wprh-empty-title {
	font-size: var(--text-base);
	font-weight: var(--fw-bold);
	color: var(--color-ink);
	margin-bottom: var(--space-20);
}

.wprh-empty-desc {
	font-size: var(--text-sm);
	color: var(--color-muted);
	line-height: var(--leading-relaxed);
	max-width: 420px;
	margin: 0 auto var(--space-40);
}

.wprh-empty-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-30);
	flex-wrap: wrap;
}

.wprh-empty-actions .btn {
	font-size: var(--text-sm);
}

.wprh-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-40);
}

.wprh-skeleton-card {
	height: 220px;
	border-radius: var(--radius-md);
	background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border-subtle) 37%, var(--color-surface) 63%);
	background-size: 400% 100%;
	animation: wprh-shimmer 1.2s ease-in-out infinite;
	border: 1px solid var(--color-border);
}

@keyframes wprh-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (max-width: 1024px) { .wprh-skeleton-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px) { .wprh-skeleton-grid { grid-template-columns: repeat(2,1fr); } }