/*
Theme Name: Guyver.com
Theme URI: https://guyver.com/
Author: Guyver.com
Description: Dark, cinematic biomechanical-archive block theme for Guyver.com — an independent, unofficial Guyver fan & collector resource. Pair with the Guyver.com Core plugin (content types, Featured Blu-rays, directories).
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guyver
Tags: block-patterns, full-site-editing, dark, wide-blocks, accessibility-ready
*/

/* ---------- Base ---------- */
html { scroll-padding-top: 5rem; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
::selection { background: #a5c6a3; color: #0b1012; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--pale-green);
	outline-offset: 3px;
	border-radius: 1px;
}
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--pale-green);
	color: var(--wp--preset--color--near-black);
	font-weight: 700;
	z-index: 100000;
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--wp--preset--color--pale-green);
	border-color: var(--wp--preset--color--pale-green);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(165, 198, 163, .1); color: #fff; }
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

/* Technical label */
.gv-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .78rem !important;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--pale-green);
}
.gv-eyebrow::before { content: "// "; color: var(--wp--preset--color--bio-green); }
.gv-mono { font-family: var(--wp--preset--font-family--mono); letter-spacing: .04em; }

/* ---------- Header ---------- */
.gv-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 16, 18, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(165, 198, 163, .16);
}
.admin-bar .gv-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .gv-header { top: 0; position: relative; } }

/* Fixed typographic wordmark (independent of the Site Title setting). */
.gv-wordmark {
	margin: 0 !important; line-height: 1;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800; font-size: 1.6rem; letter-spacing: .14em; text-transform: uppercase;
}
.gv-wordmark a, .wp-block-site-title a { text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: .55rem; }
.gv-wordmark a::before, .wp-block-site-title a::before {
	/* Wordmark glyph: solid white dot inside a white ring. */
	content: ""; width: 1.15em; height: 1.15em; flex: none; box-sizing: border-box;
	border: 2px solid #fff;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0 34%, transparent 37%);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.gv-wordmark a:hover::before, .gv-wordmark a:focus-visible::before,
.wp-block-site-title a:hover::before, .wp-block-site-title a:focus-visible::before {
	box-shadow: 0 0 8px 2px rgba(165, 198, 163, .85), 0 0 22px 6px rgba(84, 118, 91, .6);
}
.gv-wordmark a:hover, .wp-block-site-title a:hover { color: var(--wp--preset--color--pale-green); }

.gv-header .wp-block-navigation a { text-decoration: none; }
.gv-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--pale-green); }
.gv-header .wp-block-navigation .current-menu-item > a,
.gv-header .wp-block-navigation [aria-current="page"] { color: var(--wp--preset--color--pale-green); text-decoration: underline; text-underline-offset: .35em; }

/* Balanced, distinct pathway links in the nav */
.gv-nav-official > .wp-block-navigation-item__content,
.gv-nav-fan > .wp-block-navigation-item__content { padding: .3em .7em !important; border-radius: 2px; }
.gv-nav-official > .wp-block-navigation-item__content { border: 1px solid var(--wp--preset--color--pale-green); }
.gv-nav-fan > .wp-block-navigation-item__content { border: 1px dashed var(--wp--preset--color--light-gray); }

.wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid rgba(165, 198, 163, .25) !important;
	color: var(--wp--preset--color--light-gray) !important;
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--near-black) !important;
	color: var(--wp--preset--color--light-gray) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; padding: .35em 0; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; }

.gv-header .wp-block-search__button { min-width: 44px; min-height: 44px; background: transparent; color: var(--wp--preset--color--light-gray); border: 1px solid var(--wp--preset--color--gunmetal); }
.gv-header .wp-block-search__input { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--light-gray); border: 1px solid var(--wp--preset--color--gunmetal); min-height: 44px; }
.wp-block-search__input { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--light-gray); border: 1px solid var(--wp--preset--color--gunmetal); }

/* ---------- Hero ---------- */
.gv-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(82vh, 760px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		radial-gradient(70% 90% at 78% 40%, rgba(84, 118, 91, .34), transparent 62%),
		radial-gradient(50% 60% at 10% 100%, rgba(38, 52, 58, .9), transparent 70%),
		linear-gradient(180deg, #0b1012 0%, #0e1518 100%);
	border-bottom: 1px solid rgba(165, 198, 163, .18);
}
.gv-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: url("assets/images/bio-pattern.svg") right center / cover no-repeat;
	opacity: .85;
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.gv-hero::after {
	/* fine scan lines */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(217, 226, 224, .025) 0 1px, transparent 1px 4px);
}
.gv-hero__title {
	font-size: clamp(3rem, 10vw, 7.5rem) !important;
	line-height: .9 !important;
	letter-spacing: .01em !important;
	margin: .2em 0 .25em !important;
	text-shadow: 0 0 40px rgba(165, 198, 163, .18);
}
.gv-hero__title .gv-accent { color: var(--wp--preset--color--pale-green); }
.gv-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem) !important; max-width: 38em; color: var(--wp--preset--color--light-gray); }
.gv-hero__fine { font-size: .8rem !important; color: var(--wp--preset--color--muted); font-family: var(--wp--preset--font-family--mono); }
@media (max-width: 600px) {
	.gv-hero::before { opacity: .35; mask-image: none; -webkit-mask-image: none; }
	.gv-hero { min-height: 0; }
}

/* ---------- Section frames ---------- */
.gv-section { position: relative; }
.gv-section--rule { border-top: 1px solid rgba(165, 198, 163, .14); }
.gv-section-title { margin-top: 0 !important; }

/* Pathway cards (Official vs Fan) */
.gv-path {
	position: relative; height: 100%;
	padding: clamp(1.25rem, 3vw, 2.25rem) !important;
	border: 1px solid rgba(165, 198, 163, .3);
	border-radius: 3px;
	background: linear-gradient(160deg, rgba(38, 52, 58, .7), rgba(11, 16, 18, .95));
}
.gv-path--fan { border-style: dashed; border-color: rgba(217, 226, 224, .45); background: linear-gradient(160deg, rgba(38, 52, 58, .45), rgba(11, 16, 18, .95)); }
.gv-path h3 { margin-top: .25rem !important; font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important; }
.gv-path__label {
	display: inline-block; font-family: var(--wp--preset--font-family--mono); font-size: .72rem !important;
	letter-spacing: .1em; text-transform: uppercase; padding: .25em .6em; border-radius: 2px;
}
.gv-path--official .gv-path__label { background: var(--wp--preset--color--pale-green); color: var(--wp--preset--color--near-black); font-weight: 700; }
.gv-path--fan .gv-path__label { border: 1px dashed var(--wp--preset--color--light-gray); color: var(--wp--preset--color--light-gray); }
.gv-path .wp-block-list { padding-left: 1.1rem; }
.wp-block-columns.gv-paths { align-items: stretch !important; }
.wp-block-columns.gv-paths > .wp-block-column { display: flex; flex-direction: column; }

/* Guide / article cards in query loops */
.gv-post-cards .wp-block-post {
	border: 1px solid rgba(165, 198, 163, .2); border-radius: 3px; overflow: hidden;
	background: linear-gradient(180deg, rgba(38, 52, 58, .5), rgba(18, 26, 29, .9));
	display: flex; flex-direction: column;
}
.gv-post-cards .wp-block-post-featured-image { margin: 0; }
.gv-post-cards .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.gv-post-cards .gv-post-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.gv-post-cards .wp-block-post-title { font-size: 1.45rem !important; margin: .35rem 0 .5rem; }
.gv-post-cards .wp-block-post-title a { text-decoration: none; color: #fff; }
.gv-post-cards .wp-block-post-title a:hover { color: var(--wp--preset--color--pale-green); text-decoration: underline; }
.gv-post-cards .wp-block-post-excerpt { color: var(--wp--preset--color--light-gray); font-size: .95rem; }
.gv-post-cards .wp-block-post-excerpt__more-link { color: var(--wp--preset--color--pale-green); }

/* Fan archive feature band */
.gv-archive-band {
	background:
		repeating-linear-gradient(135deg, rgba(84, 118, 91, .06) 0 2px, transparent 2px 18px),
		var(--wp--preset--color--surface);
	border-block: 1px solid rgba(165, 198, 163, .14);
}

/* Filmmaker spotlight (external, non-affiliate) */
.gv-spotlight {
	border: 1px solid rgba(165, 198, 163, .3); border-left: 3px solid var(--wp--preset--color--pale-green);
	border-radius: 3px; gap: 1.25rem !important;
	background: linear-gradient(120deg, rgba(38, 52, 58, .7), rgba(11, 16, 18, .95));
}
.gv-spotlight .wp-block-heading { margin: .2rem 0 .4rem; }
.gv-spotlight p:last-child { margin-bottom: 0; }
.gv-spotlight__btn {
	display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: .65em 1.25em;
	border: 1px solid var(--wp--preset--color--pale-green); border-radius: 2px;
	color: var(--wp--preset--color--pale-green) !important; text-decoration: none;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.05rem;
	letter-spacing: .06em; text-transform: uppercase; background: transparent;
}
.gv-spotlight__btn:hover { background: rgba(165, 198, 163, .1); color: #fff !important; }

/* Editorial draft box (seeded content) */
.gv-verify {
	border: 2px dashed var(--wp--preset--color--amber);
	background: rgba(226, 184, 92, .07);
	color: var(--wp--preset--color--amber);
	padding: 1rem 1.25rem !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .85rem;
}

/* ---------- Single / article ---------- */
.gv-article-meta { gap: .75rem !important; }
.gv-article .wp-block-post-content > * + * { margin-top: 1.2em; }
.gv-article .wp-block-post-content :where(h2, h3) { margin-top: 2em; }
.gv-sidebar { position: sticky; top: 6rem; }
@media (max-width: 781px) { .gv-sidebar { position: static; } }
.wp-block-post-terms a { font-family: var(--wp--preset--font-family--mono); font-size: .78rem; text-decoration: none; border: 1px solid var(--wp--preset--color--gunmetal); padding: .25em .6em; display: inline-block; margin: 0 .25em .25em 0; }

.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wp--preset--color--gunmetal); padding: .55em .75em; }
.wp-block-table thead { background: var(--wp--preset--color--surface); border-bottom: 2px solid var(--wp--preset--color--bio-green); }
.wp-block-table { overflow-x: auto; }

.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers {
	display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
	border: 1px solid var(--wp--preset--color--gunmetal); text-decoration: none; padding: 0 .75rem;
}
.wp-block-query-pagination .current { background: var(--wp--preset--color--gunmetal); border-color: var(--wp--preset--color--pale-green); }

/* ---------- Footer ---------- */
.gv-footer {
	background: #080c0d;
	border-top: 1px solid rgba(165, 198, 163, .18);
	font-size: .9rem;
}
.gv-footer a { color: var(--wp--preset--color--light-gray); }
.gv-footer a:hover { color: var(--wp--preset--color--pale-green); }
.gv-footer-links { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .35rem; }
.gv-footer-links a { text-decoration: none; display: inline-block; padding: .2rem 0; }
.gv-footer-links a:hover { text-decoration: underline; }
.gv-footer__fine { color: var(--wp--preset--color--muted); font-size: .8rem !important; line-height: 1.6; }
.gv-footer__required { font-family: var(--wp--preset--font-family--mono); font-size: .8rem !important; color: var(--wp--preset--color--light-gray); border: 1px solid var(--wp--preset--color--gunmetal); padding: .5rem .75rem; display: inline-block; }

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