/**
 * 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}

/**
 * Fallback :root — nilai default sama dengan theme inc/global-css.php.
 * Dibutuhkan agar kanvas editor (iframe, via block_editor_settings_all)
 * dan frontend tanpa irhyt-global tetap resolve var(--...).
 * Bila theme aktif, irhyt-global di-enqueue SETELAH file ini sehingga
 * nilai Options user tetap menang (cascade).
 */
:root{
--color-primary:#059669;--color-primary-hover:#047857;--color-primary-active:#065f46;
--color-primary-alpha:rgba(5,150,105,0.12);--color-primary-glow:rgba(5,150,105,0.25);
--color-ink:#0f172a;--color-ink-secondary:#334155;--color-muted:#64748b;--color-muted-light:#94a3b8;
--color-base:#ffffff;--color-surface:#f8fafc;--color-surface-elevated:#ffffff;--color-surface-glass:rgba(255,255,255,0.85);
--color-accent:#f59e0b;--color-accent-hover:#d97706;--color-accent-alpha:rgba(245,158,11,0.15);
--color-success:#10b981;--color-success-alpha:rgba(16,185,129,0.12);
--color-border:#e2e8f0;--color-border-subtle:#f1f5f9;--color-border-strong:#cbd5e1;
--color-ink-alpha:rgba(15,23,42,0.04);--color-ink-alpha-hover:rgba(15,23,42,0.08);
--color-code-bg:#0f172a;--color-code-text:#e2e8f0;--color-wa:#25D366;--color-wa-alpha:rgba(37,211,102,0.15);
--status-danger:#ef4444;--status-danger-alpha:rgba(239,68,68,0.12);
--font-sans:'Inter',system-ui,-apple-system,sans-serif;--font-display:'Plus Jakarta Sans',system-ui,sans-serif;--font-mono:'JetBrains Mono',monospace;
--text-xs:0.75rem;--text-sm:0.875rem;--text-base:1rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:1.875rem;--text-4xl:2.5rem;--text-5xl:3.5rem;--text-6xl:4.25rem;
--fw-regular:400;--fw-medium:500;--fw-semibold:600;--fw-bold:700;--fw-extrabold:800;
--leading-tight:1.05;--leading-snug:1.15;--leading-normal:1.4;--leading-relaxed:1.6;
--tracking-tight:-0.03em;--tracking-snug:-0.02em;--tracking-wide:0.05em;--tracking-wider:0.08em;
--space-10:0.25rem;--space-20:0.5rem;--space-30:0.75rem;--space-40:1rem;--space-50:1.5rem;--space-60:2rem;--space-80:4rem;--space-100:6rem;--space-120:8rem;
--max-width:1280px;--irhyt-max-width:1280px;--header-height:76px;
--z-content:10;--z-floating:20;--z-header:50;--z-overlay:100;--z-modal:101;
--radius-xs:4px;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px;--radius-pill:9999px;
--shadow-subtle:0 2px 8px rgba(15,23,42,0.04);--shadow-soft:0 10px 30px -10px rgba(15,23,42,0.08);--shadow-hover:0 20px 40px -15px rgba(15,23,42,0.14);--shadow-elevated:0 25px 50px -12px rgba(15,23,42,0.25);--shadow-glow:0 0 40px rgba(5,150,105,0.2);
--transition-fast:all 0.15s cubic-bezier(0.4,0,0.2,1);--transition-base:all 0.25s cubic-bezier(0.4,0,0.2,1);--transition-smooth:all 0.4s cubic-bezier(0.16,1,0.3,1);
--color-base-rgb:255,255,255;--color-surface-rgb:248,250,252;color-scheme:light;
}
.block-editor-iframe__html body {background-color: var(--color-base);}
.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;
}
@media screen and (max-width: 991px) {
.section-header-row {
    text-align: unset;
    flex-direction: column;
    align-items: flex-start;
}
}
.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); } }