/*
Theme Name: YDElabs
Theme URI: https://ydelabs.com
Author: YDElabs
Author URI: https://ydelabs.com
Description: A high-performance dark block theme built on the Precision Modernism design system. Engineered for software houses with kinetic monolith aesthetics, deep slate surfaces, and cobalt accents.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ydelabs
Tags: one-column, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks
*/

/* ========================================
   Material Symbols Icon Font
   ======================================== */
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
}

/* ========================================
   Glassmorphism Panel
   ======================================== */
.ydelabs-glass {
	background: rgba(19, 27, 46, 0.7);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
}

/* ========================================
   Scrollbar Hiding
   ======================================== */
.ydelabs-hide-scrollbar::-webkit-scrollbar { display: none; }
.ydelabs-hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ========================================
   Ghost Border (subtle, semi-transparent)
   ======================================== */
.ydelabs-ghost-border {
	border: 1px solid rgba(67, 70, 86, 0.2);
}

/* ========================================
   Ambient Shadow (soft glow)
   ======================================== */
.ydelabs-ambient-shadow {
	box-shadow: 0 0 40px -10px rgba(218, 226, 253, 0.06);
}

/* ========================================
   CTA Glow Shadow
   ======================================== */
.ydelabs-cta-glow .wp-block-button__link {
	box-shadow: 0 20px 50px rgba(46, 91, 255, 0.3);
}

/* ========================================
   Gradient CTA (135deg shimmer)
   ======================================== */
.ydelabs-gradient-cta {
	background: linear-gradient(135deg, #2e5bff 0%, #b8c3ff 100%);
}

/* ========================================
   Grayscale → Color Hover
   ======================================== */
.ydelabs-grayscale img {
	filter: grayscale(100%);
	transition: filter 0.7s ease, transform 0.7s ease;
}
.ydelabs-grayscale:hover img {
	filter: grayscale(0%);
}

/* ========================================
   Scale on Hover
   ======================================== */
.ydelabs-scale-hover {
	overflow: hidden;
}
.ydelabs-scale-hover img {
	transition: transform 0.7s ease;
}
.ydelabs-scale-hover:hover img {
	transform: scale(1.05);
}

/* ========================================
   Card Hover (bg color shift)
   ======================================== */
.ydelabs-card-hover {
	transition: background-color 0.3s ease, transform 0.3s ease;
}
.ydelabs-card-hover:hover {
	background-color: var(--wp--preset--color--surface-bright) !important;
}

/* ========================================
   Kinetic Bar (expand-on-hover bottom line)
   ======================================== */
.ydelabs-kinetic-bar {
	position: relative;
	overflow: hidden;
}
.ydelabs-kinetic-bar::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--primary);
	transition: width 0.5s ease;
}
.ydelabs-kinetic-bar:hover::after {
	width: 100%;
}

/* ========================================
   Pages Carousel (horizontal scroll)
   ======================================== */
.ydelabs-pages-carousel .wp-block-post-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	gap: 2rem;
	padding-bottom: 1rem;
	scroll-snap-type: x mandatory;
	-ms-overflow-style: none;
	scrollbar-width: none;
	justify-content: center; /* Centrato */
	align-items: stretch !important; /* Forza allineamento al top/stretch */
}
.ydelabs-pages-carousel .wp-block-post-template::-webkit-scrollbar {
	display: none;
}
.ydelabs-pages-carousel .wp-block-post-template > .wp-block-post {
	flex: 0 0 min(350px, 80vw);
	height: 550px; /* Altezza fissa */
	scroll-snap-align: center;
	margin: 0 !important; /* Rimuove margini di default che sfasano le card */
}
.ydelabs-pages-carousel .wp-block-post-template .ydelabs-card-hover {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.ydelabs-pages-carousel .wp-block-post-template .wp-block-post-featured-image {
	flex: 1 1 auto;
	height: 50%;
	min-height: 250px;
}
.ydelabs-pages-carousel .wp-block-post-template .wp-block-post-featured-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

/* ========================================
   Fixed Header (glassmorphism nav)
   ======================================== */
.ydelabs-fixed-header {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	background: rgba(11, 19, 38, 0.75) !important;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

/* ========================================
   Typography Utilities
   ======================================== */
.ydelabs-display {
	font-weight: 800 !important;
	letter-spacing: -0.04em;
	line-height: 1;
}
.ydelabs-label {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.ydelabs-label-wide {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
}

/* ========================================
   Status Chip (dot + label)
   ======================================== */
.ydelabs-chip-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	display: inline-block;
	flex-shrink: 0;
}

/* ========================================
   Ghost Text (decorative watermark)
   ======================================== */
.ydelabs-ghost-text {
	color: rgba(142, 144, 162, 0.1) !important;
	user-select: none;
	pointer-events: none;
}

/* ========================================
   Focus Styles
   ======================================== */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
	outline-color: var(--wp--preset--color--primary);
}

/* ========================================
   Link Styles
   ======================================== */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.15em;
}

/* ========================================
   Text Wrap
   ======================================== */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/* ========================================
   Body Padding for Fixed Header
   ======================================== */
body {
	padding-top: 80px;
}

/* ========================================
   Navigation Submenu Dark Styling
   ======================================== */
.wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface-container-high) !important;
	border: 1px solid rgba(67, 70, 86, 0.2) !important;
	border-radius: 4px !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
	.ydelabs-pages-carousel .wp-block-post-template > .wp-block-post {
		flex: 0 0 min(300px, 85vw);
	}
	body {
		padding-top: 70px;
	}
}
