/* ====== SCTNG ARTISTIC EFFECTS ====== */

/* PAGE LOADER - Video Game Style */
#sctng-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0a0a1a;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
#sctng-loader.loaded {
  opacity: 0;
  visibility: hidden;
}
#sctng-loader .loader-text {
  font-family: 'Orbitron', monospace;
  font-size: 1.8em;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 30px;
  animation: glitchText 2s infinite;
}
#sctng-loader .loader-bar-wrap {
  width: 300px;
  height: 6px;
  background: #1a1a3e;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.3);
}
#sctng-loader .loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff0080, #7928ca, #00d4ff);
  border-radius: 3px;
  animation: loadBar 2.5s ease-in-out forwards;
}
#sctng-loader .loader-pct {
  font-family: 'Rajdhani', sans-serif;
  color: #555;
  font-size: 0.9em;
  margin-top: 12px;
  letter-spacing: 3px;
}
@keyframes loadBar {
  0% { width: 0%; }
  30% { width: 35%; }
  60% { width: 70%; }
  80% { width: 88%; }
  100% { width: 100%; }
}
@keyframes glitchText {
  0% { text-shadow: 2px 0 #ff0080, -2px 0 #00d4ff; }
  25% { text-shadow: -2px -1px #ff0080, 2px 1px #00d4ff; }
  50% { text-shadow: 1px 2px #ff0080, -1px -2px #00d4ff; }
  75% { text-shadow: -1px 1px #ff0080, 1px -1px #00d4ff; }
  100% { text-shadow: 2px 0 #ff0080, -2px 0 #00d4ff; }
}

/* CRT SCANLINE OVERLAY */
.sctng-scanlines {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.03) 0px,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
}

/* NEON GLOW BORDERS */
.sctng-neon-box {
  border: 1px solid rgba(0,212,255,0.3);
  box-shadow: 0 0 8px rgba(0,212,255,0.15), inset 0 0 8px rgba(0,212,255,0.05);
  transition: box-shadow 0.3s;
}
.sctng-neon-box:hover {
  box-shadow: 0 0 20px rgba(0,212,255,0.4), inset 0 0 15px rgba(0,212,255,0.1);
}

/* GLITCH CORNER BLOCKS */
.sctng-glitch-corner {
  position: relative;
  overflow: hidden;
}
.sctng-glitch-corner::before,
.sctng-glitch-corner::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ff0080;
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: glitchCorner 3s infinite;
}
.sctng-glitch-corner::before {
  top: 0; left: 0;
}
.sctng-glitch-corner::after {
  bottom: 0; right: 0;
  background: #00d4ff;
  animation-delay: 1.5s;
}
@keyframes glitchCorner {
  0%, 90%, 100% { opacity: 0.6; transform: translate(0,0); }
  92% { opacity: 1; transform: translate(3px,-2px); }
  94% { opacity: 0.3; transform: translate(-2px,3px); }
  96% { opacity: 0.8; transform: translate(1px,1px); }
}

/* NEON RUNNING LINE */
.sctng-neon-line {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9997;
  background: linear-gradient(90deg, #ff0080, #7928ca, #00d4ff, #ff0080);
  background-size: 300% 100%;
  animation: neonSlide 4s linear infinite;
}
@keyframes neonSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* CYBERPUNK VIDEO BACKGROUND */
.sctng-video-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
}
.sctng-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: hue-rotate(180deg) saturate(1.5);
}

/* CYBERPUNK CONTAINER STYLE */
.sctng-cyber-container {
  background: rgba(10,10,26,0.85);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 4px;
  padding: 30px;
  position: relative;
  backdrop-filter: blur(5px);
}
.sctng-cyber-container::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

/* HEADING GLITCH EFFECT */
.sctng-glitch-heading {
  position: relative;
  display: inline-block;
}
.sctng-glitch-heading::before,
.sctng-glitch-heading::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.8;
}
.sctng-glitch-heading::before {
  color: #ff0080;
  z-index: -1;
  animation: glitchLeft 3s infinite;
}
.sctng-glitch-heading::after {
  color: #00d4ff;
  z-index: -1;
  animation: glitchRight 3s infinite;
}
@keyframes glitchLeft {
  0%, 90%, 100% { clip-path: inset(0); transform: translate(0); }
  92% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  94% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
}
@keyframes glitchRight {
  0%, 90%, 100% { clip-path: inset(0); transform: translate(0); }
  93% { clip-path: inset(40% 0 30% 0); transform: translate(3px, 0); }
  95% { clip-path: inset(10% 0 70% 0); transform: translate(-3px, 0); }
}

/* HOVER CARD TILT GLOW */
.sctng-card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(10,10,26,0.7);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 6px;
}
.sctng-card-hover:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0,212,255,0.2), 0 0 15px rgba(255,0,128,0.1);
}

/* PIXEL GRID DECORATIVE */
.sctng-pixel-grid {
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* RETRO BLINK CURSOR for text */
.sctng-blink::after {
  content: '_';
  animation: blink 1s step-end infinite;
  color: #00d4ff;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* SECTION DIVIDER - Circuit Line */
.sctng-circuit-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00d4ff 20%, #7928ca 50%, #ff0080 80%, transparent 100%);
  position: relative;
  margin: 40px 0;
}
.sctng-circuit-divider::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: #00d4ff;
  border-radius: 50%;
  top: -3px; left: 20%;
  box-shadow: 0 0 10px #00d4ff;
}
.sctng-circuit-divider::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: #ff0080;
  border-radius: 50%;
  top: -3px; right: 20%;
  box-shadow: 0 0 10px #ff0080;
}


/* HIDE DEFAULT HELLO ELEMENTOR HEADER - Using custom SCTNG header */
#site-header, .site-header {
    display: none !important;
}

/* Adjust sticky header when WP admin bar is present */
body.admin-bar #sctng-header {
    top: 32px;
}

/* Hide default Hello Elementor footer - Using custom SCTNG footer */
#site-footer, .site-footer {
    display: none !important;
}

/* Global body dark background */
body {
    background: #0a0a1a !important;
}

/* GAMES GRID - 3 equal columns */
.sctng-games-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  max-width: 1140px;
  margin: 0 auto;
}
.sctng-games-grid .sctng-game-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .sctng-games-grid {
    grid-template-columns: 1fr !important;
  }
}