/* Octzen Showcase: plugins grid widget + single plugin page */

/* ------------------------------------------------------------ single page */
.ocs-pd { --ocs-gap: 20px; background: var(--ocs-bg); color: var(--ocs-text); }
.ocs-pd .ocs-pd__wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--ocs-gutter); }

.ocs-pd .ocs-pd__hero {
	padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
	border-bottom: 1px solid var(--ocs-line);
	background: radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--ocs-accent) 14%, transparent), transparent 70%), var(--ocs-bg);
}

.ocs-pd a.ocs-pd__back { display: inline-block; margin-bottom: 22px; font-size: 0.92rem; color: var(--ocs-muted); }
.ocs-pd a.ocs-pd__back:hover { color: var(--ocs-text); }
.ocs-pd .ocs-pd__head { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.ocs-pd .ocs-pd__icon { flex: 0 0 auto; width: clamp(72px, 10vw, 112px); aspect-ratio: 1; overflow: hidden; border: 1px solid var(--ocs-line-strong); border-radius: 26px; background: var(--ocs-surface-2); }
.ocs-pd .ocs-pd__icon img { width: 100%; height: 100%; object-fit: cover; }
.ocs-pd .ocs-pd__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

.ocs-pd .ocs-chip, .ocs-pg .ocs-chip {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid color-mix(in srgb, var(--ocs-accent) 55%, transparent);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ocs-accent);
}

.ocs-pd .ocs-chip--soft, .ocs-pg .ocs-chip--soft { border-color: var(--ocs-line-strong); color: var(--ocs-muted); }
.ocs-pd .ocs-pd__title { font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; color: var(--ocs-text); }
.ocs-pd .ocs-pd__tagline { max-width: 56ch; margin-top: 12px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ocs-muted); }

.ocs-pd .ocs-pd__meta { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 48px); margin: 28px 0 0; padding: 0; list-style: none; }
.ocs-pd .ocs-pd__meta li { display: grid; margin: 0; list-style: none; }
.ocs-pd .ocs-pd__meta b { font-weight: 700; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
.ocs-pd .ocs-pd__meta span { font-size: 0.82rem; color: var(--ocs-muted); }
.ocs-pd .ocs-pd__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ocs-pd .ocs-pd__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(32px, 5vw, 64px); }
.ocs-pd .ocs-pd__main { min-width: 0; }
.ocs-pd .ocs-pd__sec + .ocs-pd__sec { margin-top: clamp(36px, 5vw, 60px); }
.ocs-pd .ocs-pd__sec { scroll-margin-top: calc(var(--ocs-offset) + 20px); }
.ocs-pd .ocs-pd__h { margin-bottom: 18px; font-weight: 650; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--ocs-text); }
.ocs-pd .ocs-pd__content { color: var(--ocs-muted); font-size: 1.05rem; }
.ocs-pd .ocs-pd__content > * + * { margin-top: 1em; }
.ocs-pd .ocs-pd__content a { color: var(--ocs-accent); text-decoration: underline; }
.ocs-pd .ocs-pd__content h2, .ocs-pd .ocs-pd__content h3 { color: var(--ocs-text);}
.ocs-pd .ocs-pd__content img { border-radius: 14px; }

/* video */
.ocs-pd .ocs-vid__stage {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--ocs-line-strong);
	border-radius: 22px;
	background: #000 center / cover no-repeat;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.ocs-pd .ocs-vid__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ocs-pd .ocs-vid__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--ocs-accent); color: var(--ocs-accent-ink); box-shadow: 0 0 0 10px color-mix(in srgb, var(--ocs-accent) 25%, transparent); transition: transform 0.35s var(--ocs-ease); }
.ocs-pd .ocs-vid__stage:hover .ocs-vid__play { transform: scale(1.08); }
.ocs-pd .ocs-vid__list { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.ocs-pd .ocs-vid__list li { flex: 0 0 auto; margin: 0; }
.ocs-pd button.ocs-vid__thumb { position: relative; display: block; width: 132px; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid transparent; border-radius: 12px; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.ocs-pd button.ocs-vid__thumb.is-on { border-color: var(--ocs-accent); opacity: 1; }
.ocs-pd .ocs-vid__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ocs-pd .ocs-vid__thumb span { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); font-size: 0.72rem; }

.ocs-pd .ocs-pd__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ocs-pd .ocs-pd__features li { display: flex; gap: 12px; margin: 0; padding: 16px 18px; border: 1px solid var(--ocs-line); border-radius: 16px; background: var(--ocs-surface); list-style: none; }
.ocs-pd .ocs-pd__features svg { flex: 0 0 auto; margin-top: 3px; color: var(--ocs-accent); }
.ocs-pd .ocs-pd__features b { display: block; font-weight: 600; line-height: 1.35; }
.ocs-pd .ocs-pd__features p { margin-top: 4px; font-size: 0.92rem; line-height: 1.5; color: var(--ocs-muted); }

.ocs-pd .ocs-pd__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ocs-pd .ocs-pd__shots li { margin: 0; list-style: none; }
.ocs-pd .ocs-pd__shots a { display: block; overflow: hidden; border: 1px solid var(--ocs-line); border-radius: 16px; background: var(--ocs-surface); }
.ocs-pd .ocs-pd__shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.5s var(--ocs-ease); }
.ocs-pd .ocs-pd__shots a:hover img { transform: scale(1.04); }

.ocs-pd .ocs-pd__rel { border-bottom: 1px solid var(--ocs-line); }
.ocs-pd .ocs-pd__rel summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.ocs-pd .ocs-pd__rel ul { margin: 0 0 14px; padding-left: 20px; color: var(--ocs-muted); list-style: disc; }

/* sidebar */
.ocs-pd .ocs-pd__aside { display: grid; align-self: start; gap: 18px; min-width: 0; }
.ocs-pd.is-sticky .ocs-pd__aside { position: sticky; top: calc(var(--ocs-offset) + var(--ocs-gap)); }
.ocs-pd .ocs-side { padding: 22px; border: 1px solid var(--ocs-line); border-radius: 22px; background: var(--ocs-surface); }
.ocs-pd .ocs-side__dl .ocs-btn { width: 100%; min-height: 54px; }
.ocs-pd .ocs-side__dl p { margin-top: 10px; text-align: center; font-size: 0.9rem; color: var(--ocs-muted); }
.ocs-pd .ocs-side__dl b { color: var(--ocs-text); }
.ocs-pd .ocs-side__facts { display: grid; gap: 10px; margin: 18px 0 0; }
.ocs-pd .ocs-side__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.ocs-pd .ocs-side__facts dt { color: var(--ocs-muted); }
.ocs-pd .ocs-side__facts dd { margin: 0; font-weight: 600; text-align: right; }
.ocs-pd a.ocs-side__link { display: inline-block; margin-top: 16px; font-size: 0.92rem; font-weight: 600; color: var(--ocs-accent); }

.ocs-pd .ocs-bcta, .ocs-pg .ocs-bcta {
	display: grid;
	gap: 12px;
	padding: 26px;
	border: 1px solid color-mix(in srgb, var(--ocs-accent) 50%, transparent);
	border-radius: 24px;
	background: radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--ocs-accent) 20%, transparent), transparent 65%), var(--ocs-surface);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ocs-bcta .ocs-bcta__eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ocs-accent); }
.ocs-bcta .ocs-bcta__title { font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; color: var(--ocs-text); }
.ocs-bcta .ocs-bcta__text { color: var(--ocs-muted); font-size: 0.95rem; }
.ocs-bcta .ocs-btn { width: 100%; min-height: 52px; }

.ocs-pd .ocs-pdbar { display: none; }

/* lightbox */
.ocs-lb { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 10, 0.92); }
.ocs-lb img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.ocs-lb button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.4rem; }

@media (max-width: 1024px) {
	.ocs-pd .ocs-pd__layout { grid-template-columns: minmax(0, 1fr); }
	.ocs-pd.is-sticky .ocs-pd__aside { position: static; transform: none !important; }
}

@media (max-width: 767px) {
	.ocs-pd .ocs-pd__head { align-items: flex-start; }
	.ocs-pd .ocs-pd__features { grid-template-columns: minmax(0, 1fr); }
	.ocs-pd .ocs-pd__actions .ocs-btn { flex: 1 1 100%; }
	.ocs-pd .ocs-vid__stage { border-radius: 16px; }
	.ocs-pd .ocs-vid__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
	.ocs-pd { padding-bottom: 80px; }
	.ocs-pd .ocs-pdbar {
		position: fixed;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		left: 12px;
		z-index: 9970;
		display: flex;
		gap: 8px;
		padding: 8px;
		border: 1px solid var(--ocs-line-strong);
		border-radius: 999px;
		background: rgba(14, 17, 24, 0.97);
		box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transform: translate3d(0, 24px, 0);
		transition: opacity 0.35s, transform 0.5s var(--ocs-ease), visibility 0s linear 0.35s;
	}
	.ocs-pd .ocs-pdbar.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.ocs-pd .ocs-pdbar .ocs-btn { flex: 1; min-height: 46px; padding: 0 14px; }
}

/* ------------------------------------------------------------ grid widget */
.ocs-pg { --pg-cols: 3; --pg-gap: 20px; width: 100%; max-width: 1320px; margin: 0 auto; }
.ocs-pg .ocs-pg__filters { display: flex; gap: 8px; margin-bottom: 24px; padding: 4px 0; overflow-x: auto; scrollbar-width: none; }
.ocs-pg .ocs-pg__filters::-webkit-scrollbar { display: none; }

.ocs-pg button.ocs-pg__f {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--ocs-line-strong);
	border-radius: 999px;
	font-weight: 550; font-size: 0.9rem; line-height: 1;
	color: var(--ocs-muted);
	white-space: nowrap;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.ocs-pg button.ocs-pg__f:hover { color: var(--ocs-text); }
.ocs-pg button.ocs-pg__f.is-on { border-color: var(--ocs-accent); background: var(--ocs-accent); color: var(--ocs-accent-ink); }

.ocs-pg .ocs-pg__grid { display: grid; grid-template-columns: repeat(var(--pg-cols), minmax(0, 1fr)); gap: var(--pg-gap); margin: 0; padding: 0; list-style: none; }
.ocs-pg .ocs-pg__grid > li { margin: 0; list-style: none; }
.ocs-pg .ocs-pg__grid > li[hidden] { display: none; }

.ocs-pg .ocs-pcard {
	--c: var(--ocs-accent);
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--ocs-line);
	border-radius: 24px;
	background: radial-gradient(80% 60% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 65%), var(--ocs-surface);
	transition: border-color 0.3s, transform 0.45s var(--ocs-ease);
}

.ocs-pg .ocs-pcard:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-4px); }
.ocs-pg .ocs-pcard__cover { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--ocs-surface-2); }
.ocs-pg .ocs-pcard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ocs-ease); }
.ocs-pg .ocs-pcard:hover .ocs-pcard__cover img { transform: scale(1.05); }
.ocs-pg .ocs-pcard__ph { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 3rem; line-height: 1; color: color-mix(in srgb, var(--c) 70%, #fff); background: radial-gradient(70% 90% at 20% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), var(--ocs-surface-2); }
.ocs-pg .ocs-pcard__demo { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(8, 10, 15, 0.85); font-size: 0.78rem; font-weight: 600; color: var(--ocs-text); }
.ocs-pg .ocs-pcard__demo svg { color: var(--c); }
.ocs-pg .ocs-pcard__body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.ocs-pg .ocs-pcard__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; }
.ocs-pg .ocs-pcard__stat { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 0.82rem; color: var(--ocs-muted); white-space: nowrap; }
.ocs-pg .ocs-pcard__stat b { color: var(--ocs-text); font-weight: 600; }
.ocs-pg .ocs-pcard__stat i { font-style: normal; padding-left: 8px; margin-left: 3px; border-left: 1px solid var(--ocs-line-strong); }
.ocs-pg .ocs-pcard__stat svg { flex: none; }
.ocs-pg .ocs-pcard .ocs-chip { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); }
.ocs-pg .ocs-pcard .ocs-chip--soft { border-color: var(--ocs-line-strong); color: var(--ocs-muted); }
.ocs-pg .ocs-pcard__title { margin: 0; padding: 0; font-weight: 650; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--ocs-text); }
.ocs-pg .ocs-pcard__title a { color: inherit; }
.ocs-pg .ocs-pcard__text { margin: 8px 0 0; padding: 0; font-size: 0.95rem; line-height: 1.5; color: var(--ocs-muted); }
.ocs-pg .ocs-pcard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 0.84rem; color: var(--ocs-muted); }
.ocs-pg .ocs-pcard__meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; list-style: none; }
.ocs-pg .ocs-pcard__meta b { color: var(--ocs-text); font-weight: 600; }
.ocs-pg .ocs-pcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 24px; }
.ocs-pg .ocs-pcard__actions .ocs-btn { min-height: 42px; padding: 0 12px; font-size: 0.9rem; --btn-accent: var(--c); }
.ocs-pg .ocs-pcard__actions .ocs-btn:only-child { grid-column: 1 / -1; }

.ocs-pg .ocs-pg__custom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 20px 40px; padding: clamp(24px, 4vw, 44px); }
.ocs-pg .ocs-pg__custom .ocs-bcta__title { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.ocs-pg .ocs-pg__custom .ocs-bcta__acts { display: grid; gap: 10px; min-width: 240px; }
.ocs-pg .ocs-pg__empty { padding: 40px; text-align: center; color: var(--ocs-muted); }

@media (max-width: 1024px) { .ocs-pg { --pg-cols: 2; } }
@media (max-width: 767px) {
	.ocs-pg { --pg-cols: 1; }
	.ocs-pg .ocs-pg__custom { grid-template-columns: minmax(0, 1fr); }
	.ocs-pg .ocs-pcard:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ocs-pd .ocs-pdbar, .ocs-pg .ocs-pcard, .ocs-pg .ocs-pcard__cover img { transition-duration: 0.01s; }
}

.ocs-pd .ocs-pd__aside.is-pinjs { position: relative !important; will-change: transform; }

@media (max-width: 767px) {
	.ocs-pd .ocs-side__dl .ocs-btn { min-height: 46px; }
	.ocs-bcta .ocs-btn { min-height: 46px; }
}
