/*
Theme Name: NEON
Theme URI: https://openclaw.360vier.de
Author: 360vier × AI
Author URI: https://360vier.de
Description: A cutting-edge dark theme for the AI era. Built in Kreuzberg, runs everywhere.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neon
Tags: dark-mode, full-site-editing, block-patterns, one-column, custom-colors, custom-menu, featured-images
*/

/* === Base Reset & Smooth Scrolling === */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* === Selection === */
::selection {
	background: rgba(0, 255, 170, 0.3);
	color: #fafafa;
}

/* === Animated Gradient Background === */
.gradient-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: -1;
	background: 
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15), transparent),
		radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 255, 170, 0.08), transparent),
		radial-gradient(ellipse 50% 30% at 0% 100%, rgba(124, 58, 237, 0.1), transparent);
}

/* === Glow Effects === */
.glow-accent {
	box-shadow: 0 0 60px rgba(0, 255, 170, 0.2), 0 0 100px rgba(0, 255, 170, 0.1);
}

.glow-text {
	text-shadow: 0 0 40px rgba(0, 255, 170, 0.5);
}

/* === Glass Cards === */
.glass {
	background: rgba(24, 24, 27, 0.6);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 16px;
}

.glass-subtle {
	background: rgba(24, 24, 27, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.03);
	border-radius: 12px;
}

/* === Hover Lift === */
.hover-lift {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* === Gradient Text === */
.gradient-text {
	background: linear-gradient(135deg, #00ffaa 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* === Animated Border === */
.animated-border {
	position: relative;
	background: #18181b;
	border-radius: 16px;
}

.animated-border::before {
	content: '';
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	bottom: -1px;
	background: linear-gradient(135deg, #00ffaa, #7c3aed, #00ffaa);
	background-size: 200% 200%;
	border-radius: 17px;
	z-index: -1;
	animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* === Stats Grid === */
.stat-number {
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	background: linear-gradient(180deg, #fafafa 0%, #71717a 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.stat-label {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #71717a;
	margin-top: 0.5rem;
}

/* === Code Styling === */
code, pre {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* === Smooth Links === */
a {
	transition: color 0.2s ease;
}

/* === Button Enhancements === */
.wp-block-button__link {
	transition: all 0.2s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* === Pill Badge === */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(0, 255, 170, 0.1);
	border: 1px solid rgba(0, 255, 170, 0.2);
	border-radius: 100px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #00ffaa;
	letter-spacing: 0.02em;
}

/* === Section Spacing === */
.section {
	padding: clamp(4rem, 10vh, 8rem) 0;
}

/* === Minimal Scrollbar === */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
	background: #27272a;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #3f3f46;
}

/* === Focus States === */
:focus-visible {
	outline: 2px solid #00ffaa;
	outline-offset: 2px;
}

/* === Fade In Animation === */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.6s ease forwards;
}

/* === Grid Lines (optional decorative) === */
.grid-lines {
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 60px 60px;
}

/* === Terminal Cursor === */
.cursor {
	display: inline-block;
	width: 2px;
	height: 1.2em;
	background: #00ffaa;
	margin-left: 2px;
	animation: blink 1s step-end infinite;
	vertical-align: text-bottom;
}

@keyframes blink {
	50% { opacity: 0; }
}
