/**
 * Blue Frame Films: components.css
 *
 * Purpose:  Reusable pieces: buttons, cards, review tags, labels, icons, "more" links, the
 *           call-to-action band and the video placeholder box.
 * Used by:  Every section.
 * To edit:  Button look: .btn*. Review tags (hidden when review tags are switched off):
 *           .draft, .perm, .concept. Permanent labels: .ctag, .otag, .fan.
 */

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .9rem 1.5rem;
	border-radius: 10px;
	font-weight: 700;
	font-size: .95rem;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.btn-primary {
	background: var(--elec);
	color: #fff;
	box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset,0 12px 32px -10px var(--glow);
}

.btn-ghost {
	border: 1px solid rgba(0,194,255,.5);
	color: var(--text);
	background: transparent;
}

/* ==========================================================================
   Review tags (printed by blueframe_review_tag())
   ========================================================================== */
.draft {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #1a1200;
	background: var(--draft);
	padding: 4px 9px;
	border-radius: 5px;
	vertical-align: middle;
	white-space: nowrap;
}

.draft::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1a1200;
}

.head .draft {
	margin-bottom: 14px;
}

/* ==========================================================================
   Video placeholder box (showreel, cards without media)
   ========================================================================== */
.video {
	position: relative;
	aspect-ratio: 16/9;
	border-radius: var(--r);
	overflow: hidden;
	border: 1px solid rgba(30,123,255,.35);
	background: radial-gradient(circle at 50% 50%,rgba(30,123,255,.22),transparent 60%),repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 2px,transparent 2px 6px),linear-gradient(160deg,#0d1a36,#060a14);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--muted);
	text-align: center;
	padding: 16px;
}

.video .play {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	border: 2px solid var(--elec2);
	display: grid;
	place-items: center;
	box-shadow: 0 0 30px rgba(0,194,255,.35);
	flex: none;
}

.video .play::before {
	content: "";
	border-left: 18px solid var(--elec2);
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	margin-left: 5px;
}

.video .lbl {
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: .78rem;
	color: #cfe0ff;
}

.video .tl {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 34px;
	background: linear-gradient(transparent,rgba(0,0,0,.6));
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	font-size: .7rem;
	color: var(--muted);
}

.video .tl i {
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,.15);
	position: relative;
}

.video .tag {
	position: absolute;
	top: 12px;
	left: 12px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 24px 22px;
}

.card .num {
	font-size: .75rem;
	font-weight: 800;
	color: var(--elec);
	letter-spacing: .1em;
}

.card h3 {
	font-size: 1.08rem;
	margin: .6rem 0 .45rem;
}

.card p {
	color: var(--muted);
	font-size: .9rem;
}

/* ==========================================================================
   Labels and tags on cards
   ========================================================================== */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ctag {
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--elec2);
	border: 1px solid rgba(0,194,255,.4);
	padding: 3px 7px;
	border-radius: 4px;
}

.perm,
.otag,
.fan {
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
	line-height: 1.3;
}

.perm {
	color: var(--draft);
	border: 1px solid rgba(255,176,32,.55);
	background: rgba(255,176,32,.08);
}

.otag {
	color: #b9a4ff;
	border: 1px solid rgba(185,164,255,.5);
	background: rgba(185,164,255,.08);
}

.fan {
	color: #ff7a8a;
	border: 1px solid rgba(255,122,138,.6);
	background: rgba(255,122,138,.1);
}

.concept {
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
	line-height: 1.3;
	color: #cfd6e6;
	border: 1px dashed rgba(207,214,230,.6);
}

.sub {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   Social links (icon + label, template-parts/components/social-links.php)
   ========================================================================== */
.bf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bf-social a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: .4rem .85rem .4rem .7rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font-weight: 700;
	font-size: .82rem;
	line-height: 1;
	text-decoration: none;
	transition: border-color .15s ease,background .15s ease;
}

.bf-social a:hover,
.bf-social a:focus-visible {
	border-color: var(--elec2);
	background: rgba(0,194,255,.1);
}

.bf-social-icon {
	flex: none;
	color: var(--elec2);
}

/* ==========================================================================
   Icons (blueframe_icon() in inc/helpers.php) and "more" links
   ========================================================================== */
.bf-icon {
	display: inline-block;
	vertical-align: middle;
	flex: none;
}

.more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--elec2);
	font-weight: 700;
	font-size: .92rem;
}

.more .bf-icon {
	transition: transform .2s ease;
}

.more:hover .bf-icon,
.more:focus-visible .bf-icon {
	transform: translateX(3px);
}

/* Focus ring for buttons/links everywhere (keyboard only) */
.btn:focus-visible,
.more:focus-visible,
button:focus-visible {
	outline: 2px solid var(--elec2);
	outline-offset: 3px;
}

/* ==========================================================================
   Call-to-action band (template-parts/components/cta-band.php)
   ========================================================================== */
.cta-band {
	background: radial-gradient(ellipse at 15% 0%,rgba(30,123,255,.18),transparent 60%),var(--bg2);
}

.cta-band .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px 48px;
	flex-wrap: wrap;
}

.cta-band h2 {
	font-size: clamp(1.5rem,2.8vw,2.1rem);
	max-width: 620px;
}

.cta-band .lead {
	font-size: .98rem;
}

.cta-band .cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion:reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms!important;
		animation-duration: .01ms!important;
		scroll-behavior: auto!important;
	}
}

/* ==========================================================================
   Painted card media (blueframe_media_attrs() in inc/portfolio-videos.php)
   The tile's image is a CSS background from --bf-img, so it shows without JavaScript
   and without waiting for a lazy <img>. The lazy <img> on top uses the same geometry.
   Both box types are the containing block of that absolutely positioned <img> (v2.2.1):
   without position:relative the img sized itself to the page (it covered the home hero)
   and snapped into the whole card only while a hover/focus transform was applied.
   ========================================================================== */
.bf-cover {
	position: relative;
	isolation: isolate;
	background: var(--bf-img) center / cover no-repeat, #02040a;
}

.bf-framed {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: #02040a;
}

.bf-framed::before,
.bf-framed::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: var(--bf-img) center / contain no-repeat;
}

/* Blurred, darkened copy filling the box behind the portrait art */
.bf-framed::before {
	inset: -24px;
	background-size: cover;
	filter: blur(18px) brightness(.55);
}

.bf-framed .bf-vfg,
.bf-cover .bf-vposter {
	position: absolute;
	z-index: 1;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bf-cover .bf-vposter {
	object-fit: cover;
}

.bf-framed > video {
	z-index: 1;
}

