/* THEME CSS - Lil.Wide.Codes V3 | Purpose: Ambient backgrounds, glowing animations, tech highlights */

/* Ambient Grid Backdrop */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(var(--grid-color, rgba(255, 255, 255, 0.015)) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color, rgba(255, 255, 255, 0.015)) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

body {
  --grid-color: rgba(255, 255, 255, 0.015);
}

body.light-theme {
  --grid-color: rgba(0, 0, 0, 0.025);
}

body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(0, 242, 254, 0.03) 0%,
    rgba(123, 97, 255, 0.03) 30%,
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
}

body.light-theme::after {
  background: radial-gradient(
    circle at 20% 30%,
    rgba(0, 150, 200, 0.04) 0%,
    rgba(123, 97, 255, 0.03) 30%,
    transparent 60%
  );
}

/* Glowing Border highlights */
.glow-card {
  position: relative;
}

.glow-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), transparent, rgba(123, 97, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

body.light-theme .glow-card::after {
  background: linear-gradient(135deg, rgba(0, 150, 200, 0.3), transparent, rgba(123, 97, 255, 0.3));
}

/* Text links custom states */
.text-link {
  color: var(--color-accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--color-accent-blue);
}

.text-link:hover::after {
  transform: translateX(4px);
}
