/*
Theme Name: Upluggit Modern Theme
Author: Upluggit
Description: Acid Terminal — a dark, high-contrast WordPress theme for Upluggit, a plugin development company. Chartreuse accents on deep black with bold Syne typography and dot-grid textures.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: upluggit-modern
Tags: block-theme, full-site-editing, dark, modern
*/

/* ── Reset & Base ─────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ── Dot-Grid Texture Utility ─────────────────── */

.dot-grid::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(#C8F400 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.04;
	pointer-events: none;
	z-index: 0;
}

.dot-grid {
	position: relative;
}

.dot-grid > * {
	position: relative;
	z-index: 1;
}

/* ── Glow Button ──────────────────────────────── */

.wp-block-button.is-style-glow .wp-block-button__link {
	box-shadow: 0 0 30px rgba(200, 244, 0, 0.25);
	transition: all 0.3s ease;
}

.wp-block-button.is-style-glow .wp-block-button__link:hover {
	box-shadow: 0 0 50px rgba(200, 244, 0, 0.45);
	transform: translateY(-2px);
}

/* ── Outline Button ───────────────────────────── */

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: #C8F400 !important;
	border: 2px solid #C8F400;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #C8F400 !important;
	color: #0D0D0D !important;
}

/* ── Card Equal Heights ───────────────────────── */

.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}

/* ── Plugin Card ──────────────────────────────── */

.plugin-card {
	background: #1A1A1A;
	border: 1px solid #2A2A2A;
	border-radius: 12px;
	padding: 2.5rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.plugin-card:hover {
	border-color: rgba(200, 244, 0, 0.3);
	box-shadow: 0 0 40px rgba(200, 244, 0, 0.08);
	transform: translateY(-4px);
}

/* ── Feature Card ─────────────────────────────── */

.feature-card {
	background: #141414;
	border: 1px solid #2A2A2A;
	border-radius: 8px;
	padding: 2rem;
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
	border-color: rgba(200, 244, 0, 0.2);
	transform: translateY(-2px);
}

/* ── Section Accent Line ──────────────────────── */

.accent-line {
	width: 48px;
	height: 3px;
	background: #C8F400;
	border: none;
	margin: 0;
}

/* ── Scroll Reveal Animation ──────────────────── */

@keyframes revealUp {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.reveal {
	opacity: 0;
	transform: translateY(32px);
}

.reveal.revealed {
	animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }

/* ── Mono Label ───────────────────────────────── */

.mono-label {
	font-family: 'Space Mono', 'Courier New', monospace;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #C8F400;
}

/* ── Hero Cover Overrides ─────────────────────── */

.hero-cover .wp-block-cover__image-background {
	opacity: 0.12 !important;
	mix-blend-mode: luminosity;
	filter: contrast(1.2) brightness(0.8);
}

/* ── Navigation Styling ───────────────────────── */

.site-header .wp-block-navigation a {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #FFFFFF;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-header .wp-block-navigation a:hover {
	color: #C8F400;
}

/* ── Stats Counter ────────────────────────────── */

.stat-number {
	font-family: 'Syne', 'Impact', sans-serif;
	font-weight: 800;
	font-size: clamp(2rem, 4vw, 3rem);
	color: #C8F400;
	line-height: 1;
}

/* ── Gradient Overlay Utility ─────────────────── */

.gradient-left::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #0D0D0D 0%, rgba(13, 13, 13, 0.2) 100%);
	pointer-events: none;
	z-index: 0;
}

.gradient-left > * {
	position: relative;
	z-index: 1;
}

/* ── Footer ───────────────────────────────────── */

.site-footer a {
	color: #A0A0A0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer a:hover {
	color: #C8F400;
}

/* ── Scrollbar ────────────────────────────────── */

::-webkit-scrollbar {
	width: 8px;
}

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

::-webkit-scrollbar-thumb {
	background: #2A2A2A;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #C8F400;
}

/* ── Header Sticky ────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(13, 13, 13, 0.85);
}

/* ── Global Smooth Scroll ─────────────────────── */

html {
	scroll-behavior: smooth;
}

/* ── Responsive ───────────────────────────────── */

/* Prevent horizontal overflow globally */
html,
body {
	overflow-x: hidden;
}

/* Ensure all images and embeds respect container width */
img,
video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

/* Word break for long text on small screens */
h1, h2, h3, h4, h5, h6, p {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* ── Navigation overlay (hamburger) styling ───── */

.wp-block-navigation__responsive-container.is-menu-open {
	background: #0D0D0D !important;
	padding: 2rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 2rem;
	align-items: flex-start;
	padding-top: 3rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-size: 1.25rem;
	color: #FFFFFF;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
	color: #C8F400;
}

/* Hamburger button color */
.wp-block-navigation__responsive-container-open {
	color: #C8F400 !important;
}

.wp-block-navigation__responsive-container-close {
	color: #C8F400 !important;
}

/* Tablets and below */
@media (max-width: 1024px) {
	.plugin-card {
		padding: 2rem;
	}

	.feature-card {
		padding: 1.5rem;
	}
}

/* Mobile: 782px and below (WP responsive breakpoint) */
@media (max-width: 782px) {
	/* Hide navigation on mobile */
	.site-header .wp-block-navigation {
		display: none !important;
	}

	/* Header stays as flex row */
	.site-header {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* Hero heading scale */
	.hero-cover h1 {
		font-size: clamp(2.5rem, 10vw, 5rem) !important;
	}

	/* Hero section padding */
	.hero-cover .wp-block-cover__inner-container .wp-block-group {
		padding-top: 7rem !important;
		padding-bottom: 4rem !important;
	}

	/* Section headings: remove <br> visual effect and scale down */
	h2 br {
		display: inline;
	}

	h2 br::after {
		content: " ";
	}

	/* Stat numbers scale down */
	.stat-number {
		font-size: clamp(1.75rem, 6vw, 2.5rem);
	}

	/* All columns stack on mobile */
	.wp-block-columns {
		flex-direction: column !important;
		flex-wrap: wrap !important;
	}

	.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Plugin and feature cards */
	.equal-cards {
		flex-direction: column !important;
	}

	.equal-cards > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	.plugin-card {
		padding: 1.75rem;
	}

	/* Footer columns stack */
	.site-footer .wp-block-columns {
		flex-direction: column !important;
		gap: 2rem !important;
	}

	.site-footer .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	/* Reduce heavy section padding */
	.wp-block-group.alignfull {
		padding-left: 1.25rem !important;
		padding-right: 1.25rem !important;
	}

	/* Stats section center text on mobile */
	.wp-block-columns > .wp-block-column .stat-number {
		text-align: center;
	}

	.wp-block-columns > .wp-block-column .stat-number + p {
		text-align: center;
	}

	/* Buttons wrap on mobile */
	.wp-block-buttons {
		flex-wrap: wrap !important;
		flex-direction: column !important;
	}

	.wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.wp-block-buttons .wp-block-button .wp-block-button__link {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	/* CTA card reduce padding */
	.wp-block-group.has-card-surface-background-color {
		padding: 2rem 1.5rem !important;
	}

	/* Cover block min-height on mobile */
	.hero-cover {
		min-height: 85vh !important;
	}

	.hero-cover .wp-block-cover {
		min-height: 85vh !important;
	}

	/* Footer bottom bar stack */
	.site-footer .wp-block-group[style*="justify-content"] {
		flex-direction: column !important;
		gap: 0.5rem;
		text-align: center;
		align-items: center !important;
	}
}

/* Small phones: 480px and below */
@media (max-width: 480px) {
	/* Tighten padding further */
	.wp-block-group.alignfull {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* Hero heading even smaller */
	.hero-cover h1 {
		font-size: clamp(2rem, 9vw, 3.5rem) !important;
	}

	.plugin-card {
		padding: 1.5rem;
	}

	.feature-card {
		padding: 1.25rem;
	}

	/* Mono label smaller */
	.mono-label {
		font-size: 0.6875rem;
	}

	/* Section headings smaller */
	h2.wp-block-heading {
		font-size: clamp(1.5rem, 5vw, 2rem) !important;
	}

	/* Stats section tighten */
	.stat-number {
		font-size: clamp(1.5rem, 8vw, 2rem);
	}

	/* CTA card even tighter */
	.wp-block-group.has-card-surface-background-color {
		padding: 1.5rem 1rem !important;
	}

	/* Header site title smaller */
	.site-header .wp-block-site-title {
		font-size: 1rem !important;
	}
}