/*
Arch UI Base Styles
Updated: 08/05/2025
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
	margin-bottom: 10px;
}

a {
	color: #66c000;
	text-decoration: none;
}

a:visited {
	color: #66c000;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Roboto Light', Arial, sans-serif;
  font-size: 18px;
  background-color: #f5f7fa;
  color: #ccc;
}

@media screen and (width <= 850px) {
html, body {
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: auto !important;
}
}

hr.thin {
    border: none;
    border-top: 1px solid #ccc;
    margin-top: 10px;
    margin-bottom: 10px;
}

hr.dashed {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 1rem 0;
}

.no-highlight {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.arch-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arch-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.arch-list li a {
    text-decoration:none;
    color:#79b92e;
}


.arch-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #79b92e; /* Your brand green */
    font-size: 1.2rem;
    line-height: 1;
}

/*===== Arch Icons =====*/
.icon {
    display: block;
    height: 100%;
    fill: #f1f3f4;
}
.icon svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    fill: inherit;
}

.at-icon {
    width: 1em;
    height: 1em;
    visibility: hidden;
}

.error {
    color: #ff6b6b;
}

code {
    background-color: #0000003d;
    padding: 0px 8px;
}



/* BUILDER OVERLAY AND ANIMATION */
#builder-overlay {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: #1c2833;
	z-index: 9999;
	opacity: 0;
	transition: opacity 1.0s ease;
}
#builder-overlay.active {
	opacity: 1;
}

@media screen and (width <= 850px) {
#builder-overlay {
	height: 100svh;
	min-height: 100svh;
}
}

.builder-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #1c2833;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	z-index: 1;
	transition: opacity 1.2s ease;
}

.logo-wrap {
	position: relative;
	overflow: visible;
	width: 160px;
	height: 160px;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Base logo outline */
.archtronics-logo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: none;
	stroke: rgb(102 192 0 / 10%);
	stroke-width: 6;
	stroke-linejoin: round;
	stroke-linecap: round;
	animation: logoReveal 0.8s ease-out forwards;
}

.builder-loader.complete .archtronics-logo.front {
	stroke: rgb(102 192 0 / 100%);
	animation: logoComplete 3.0s ease-out forwards;
}

@keyframes logoReveal {
	from {
		opacity: 0;
		transform: scale(0.3);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes logoComplete {
	from {
		stroke-dasharray: 1200;
		stroke-dashoffset: 1200;
	}
	to {
		stroke-dasharray: 1200;
		stroke-dashoffset: 0;
	}
}

/* Glowing fill pulse */
.pulse {
	position: absolute;
	inset: 0;
	transform: scale(1);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0,183,255,0.25) 0%, transparent 70%);
	animation: pulseWave 1.5s ease-in-out infinite;
	filter: blur(20px);
	transition: transform 2s ease-in-out, filter 3s ease;
}

.pulse-complete {
	opacity: 1;
	filter: brightness(3.5) saturate(0.1) blur(15px);
	transform: scale(20);
}

@keyframes pulseWave {
	0% {
		transform: scale(0.5);
		opacity: 0.4;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.8;
	}
	100% {
		transform: scale(0.5);
		opacity: 0.4;
	}
}

/* Add subtle internal glow to the logo */
.archtronics-logo {
	filter: drop-shadow(0 0 8px rgba(0,183,255,0.6));
}

.loading-text {
	margin-top: 2rem;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: rgba(255,255,255,0.75);
	text-transform: uppercase;
}

.loading-text.text-pulse {
	animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
	0%, 100% { opacity: 0.6; }
	50% { opacity: 1; }
}
