/*
Theme Name: WPDesignVault Premium
Theme URI: https://wpdesignvault.com
Author: WPDesignVault
Author URI: https://wpdesignvault.com
Description: An ultra-premium, dark-mode-native Full Site Editing (FSE) block theme for WPDesignVault — a digital marketplace for design assets. Features glassmorphism navigation, glowing gradient accents, a Bento Box grid, and Vercel/Linear-inspired micro-interactions. Built theme.json-first; this stylesheet only covers what theme.json cannot: backdrop-filter glass, glow shadows, hover transforms and keyframe animation.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpdesignvault
Tags: full-site-editing, block-patterns, dark, e-commerce, portfolio, one-column
*/

/* ==========================================================================
   1. BASE / RESET
   ========================================================================== */

* {
	box-sizing: border-box;
}

body {
	background-color: var(--wp--preset--color--base);
	position: relative;
	overflow-x: hidden;
}

/* Faint ambient grid texture across the whole app, sits behind everything */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

img {
	border-radius: inherit;
}

/* ==========================================================================
   2. GLASSMORPHISM
   ========================================================================== */

.wpdv-glass {
	background: rgba(255, 255, 255, 0.03);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   3. FLOATING GLASS NAVBAR (parts/header.html)
   ========================================================================== */

.wpdv-header {
	position: sticky;
	top: 0;
	z-index: 999;
	padding-top: 16px;
	padding-bottom: 16px;
}

.wpdv-header-inner {
	background: rgba(17, 24, 39, 0.55);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 9999px;
	padding: 12px 12px 12px 28px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.wpdv-header-inner:hover {
	border-color: rgba(139, 92, 246, 0.25);
}

.wpdv-header .wp-block-navigation {
	--wp--style--root--padding: 0;
}

.wpdv-header .wp-block-navigation-item a {
	padding: 8px 16px !important;
	border-radius: 9999px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.wpdv-header .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--contrast) !important;
	background-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.wp-block-button__link {
	position: relative;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-position 0.4s ease;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
	background-size: 160% 160%;
	background-position: 0% 50%;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: scale(1.02);
	background-position: 100% 50%;
	box-shadow: 0 0 24px rgba(139, 92, 246, 0.45), 0 0 48px rgba(59, 130, 246, 0.2);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:active {
	transform: scale(0.98);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid #374151;
	background: transparent;
	color: #e5e7eb;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #3b82f6;
	color: #f9fafb;
	transform: translateY(-2px);
	box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
	background: rgba(59, 130, 246, 0.06);
}

/* Ghost ("View Pro Pass") variant */
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--muted-2, #e5e7eb);
	padding-left: 8px;
	padding-right: 8px;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	color: var(--wp--preset--color--contrast);
	transform: translateX(4px);
}

/* ==========================================================================
   5. GRADIENT TEXT + GLOW ORB (hero)
   ========================================================================== */

.wpdv-gradient-text {
	background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.wpdv-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.wpdv-hero::before {
	content: "";
	position: absolute;
	top: -220px;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	height: 620px;
	max-width: 160vw;
	z-index: -1;
	background: radial-gradient(circle, rgba(139, 92, 246, 0.55) 0%, rgba(59, 130, 246, 0.28) 45%, rgba(3, 7, 18, 0) 72%);
	filter: blur(10px);
	animation: wpdv-orb-float 10s ease-in-out infinite;
}

@keyframes wpdv-orb-float {
	0%, 100% {
		transform: translateX(-50%) translateY(0) scale(1);
		opacity: 0.9;
	}
	50% {
		transform: translateX(-48%) translateY(24px) scale(1.06);
		opacity: 1;
	}
}

.wpdv-social-proof img,
.wpdv-social-proof .wp-block-image {
	opacity: 0.5;
	filter: grayscale(100%);
	transition: opacity 0.25s ease, filter 0.25s ease;
}

.wpdv-social-proof img:hover {
	opacity: 0.9;
	filter: grayscale(0%);
}

/* ==========================================================================
   6. CARDS ("Vault" items)
   ========================================================================== */

.wpdv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #111827;
	border: 1px solid #1f2937;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpdv-card:hover {
	transform: translateY(-4px);
	border-color: #3b82f6;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.wpdv-card:hover .wpdv-card-media img {
	transform: scale(1.04);
}

.wpdv-card-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(160deg, #1f2937 0%, #111827 100%);
}

.wpdv-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
	display: block;
}

.wpdv-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.wpdv-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--medium);
	margin: 0;
}

.wpdv-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
}

/* ==========================================================================
   7. BENTO GRID (front-page product loop)
   ========================================================================== */

.wpdv-bento-grid.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 260px;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpdv-bento-grid.wp-block-post-template > li {
	list-style: none;
	margin: 0;
	height: 100%;
}

.wpdv-bento-grid .wpdv-card {
	width: 100%;
}

/* Featured bento tiles: 1st item large square, 4th item wide banner */
.wpdv-bento-grid.wp-block-post-template > li:nth-child(6n + 1) {
	grid-column: span 2;
	grid-row: span 2;
}

.wpdv-bento-grid.wp-block-post-template > li:nth-child(6n + 4) {
	grid-column: span 2;
}

.wpdv-bento-grid.wp-block-post-template > li:nth-child(6n + 1) .wpdv-card-media,
.wpdv-bento-grid.wp-block-post-template > li:nth-child(6n + 4) .wpdv-card-media {
	aspect-ratio: auto;
	height: 60%;
}

@media (max-width: 1024px) {
	.wpdv-bento-grid.wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 240px;
	}
}

@media (max-width: 600px) {
	.wpdv-bento-grid.wp-block-post-template {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}
	.wpdv-bento-grid.wp-block-post-template > li,
	.wpdv-bento-grid.wp-block-post-template > li:nth-child(6n + 1),
	.wpdv-bento-grid.wp-block-post-template > li:nth-child(6n + 4) {
		grid-column: span 1;
		grid-row: span 1;
	}
	.wpdv-bento-grid .wpdv-card-media {
		aspect-ratio: 16 / 10 !important;
		height: auto !important;
	}
}

/* ==========================================================================
   8. THE VAULT — ARCHIVE (sticky sidebar + 3-col grid)
   ========================================================================== */

.wpdv-vault-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	align-items: start;
}

.wpdv-sidebar {
	position: sticky;
	top: 110px;
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wpdv-sidebar-heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0 0 4px;
}

.wpdv-sidebar .wp-block-categories-list,
.wpdv-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wpdv-sidebar .wp-block-categories-list a,
.wpdv-sidebar ul a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted-2);
	transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.wpdv-sidebar .wp-block-categories-list a:hover,
.wpdv-sidebar ul a:hover {
	background-color: rgba(139, 92, 246, 0.1);
	color: var(--wp--preset--color--contrast);
	padding-left: 16px;
}

.wpdv-product-grid.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpdv-product-grid.wp-block-post-template > li {
	list-style: none;
	margin: 0;
}

@media (max-width: 1100px) {
	.wpdv-vault-layout {
		grid-template-columns: 220px 1fr;
		gap: 24px;
	}
	.wpdv-product-grid.wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 782px) {
	.wpdv-vault-layout {
		grid-template-columns: 1fr;
	}
	.wpdv-sidebar {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.wpdv-product-grid.wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.wpdv-product-grid.wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   9. SINGLE PRODUCT — SPLIT SCREEN DOWNLOAD PAGE
   ========================================================================== */

.wpdv-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	align-items: start;
}

.wpdv-split-media {
	position: sticky;
	top: 0;
	height: 100vh;
	padding: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(ellipse at top, #111827 0%, #030712 70%);
	border-right: 1px solid #1f2937;
}

.wpdv-split-media figure {
	margin: 0;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid #1f2937;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.wpdv-split-media img {
	width: 100%;
	display: block;
}

.wpdv-split-content {
	padding: 64px 56px;
	max-width: 720px;
}

@media (max-width: 900px) {
	.wpdv-split {
		grid-template-columns: 1fr;
	}
	.wpdv-split-media {
		position: relative;
		height: auto;
		padding: 32px 24px;
		border-right: none;
		border-bottom: 1px solid #1f2937;
	}
	.wpdv-split-content {
		padding: 40px 24px;
		max-width: 100%;
	}
}

/* Sticky "Download" CTA card inside the content column */
.wpdv-cta-card {
	background: rgba(255, 255, 255, 0.03);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid #1f2937;
	border-radius: 16px;
	padding: 28px;
}

.wpdv-price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

/* Terminal / code preview window */
.wpdv-terminal {
	background: #0b0f19;
	border: 1px solid #1f2937;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.wpdv-terminal-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #111827;
	border-bottom: 1px solid #1f2937;
}

.wpdv-terminal-bar span {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
	background: #374151;
}

.wpdv-terminal-bar span:nth-child(1) {
	background: #f87171;
}

.wpdv-terminal-bar span:nth-child(2) {
	background: #fbbf24;
}

.wpdv-terminal-bar span:nth-child(3) {
	background: #34d399;
}

.wpdv-terminal pre,
.wpdv-terminal code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	line-height: 1.7;
	color: #9ca3af;
	margin: 0;
	padding: 20px;
	overflow-x: auto;
	white-space: pre;
	display: block;
}

.wpdv-terminal .tok-key { color: #93c5fd; }
.wpdv-terminal .tok-string { color: #86efac; }
.wpdv-terminal .tok-punct { color: #6b7280; }

/* ==========================================================================
   10. BADGES / TAGS
   ========================================================================== */

.wpdv-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 9999px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	width: fit-content;
	white-space: nowrap;
}

.wpdv-badge--pro {
	background: rgba(139, 92, 246, 0.1);
	color: #8b5cf6;
	border: 1px solid rgba(139, 92, 246, 0.25);
}

.wpdv-badge--free {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.25);
}

.wpdv-badge--warning {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	border: 1px solid rgba(245, 158, 11, 0.25);
}

.wpdv-card-media .wpdv-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	background-color: rgba(3, 7, 18, 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.wpdv-footer {
	border-top: 1px solid #1f2937;
	background: #030712;
}

.wpdv-footer a {
	color: var(--wp--preset--color--muted);
	transition: color 0.2s ease;
}

.wpdv-footer a:hover {
	color: var(--wp--preset--color--contrast);
}

.wpdv-footer-bottom {
	border-top: 1px solid #1f2937;
}

/* ==========================================================================
   12. UTILITIES
   ========================================================================== */

.wpdv-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-purple);
}

.wpdv-muted {
	color: var(--wp--preset--color--muted);
}

.wpdv-fade-border-top {
	position: relative;
}

.wpdv-fade-border-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, #1f2937 50%, transparent 100%);
}

/* ==========================================================================
   13. ACCESSIBILITY
   ========================================================================== */

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

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-blue);
	outline-offset: 2px;
}
