/* ═══════════════════════════════════════════════════
   GTICKX — NEURAL LOADER + SKELETON SHIMMER
   ═══════════════════════════════════════════════════ */

/* ── Page Loader Overlay ── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: pulseText 1.5s ease-in-out infinite;
}

.loader-logo .logo-g  { color: #fff; }
.loader-logo .logo-tick { color: #2563EB; }
.loader-logo .logo-x  { color: #06b6d4; }

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.loader-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #4b5563;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeLabel 2s ease-in-out infinite;
}

@keyframes fadeLabel {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ── Neural Network Canvas ── */
#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Hero Neural Network ── */
#hero-neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

/* ── Skeleton Shimmer System ── */
.sk-wrap {
  pointer-events: none;
}

.sk {
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
}

.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.06) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

[data-theme="light"] .sk {
  background: #e8edf5;
}

[data-theme="light"] .sk::after {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.55) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Skeleton shapes ── */
.sk-text  { height: 14px; }
.sk-title { height: 28px; }
.sk-h1    { height: 48px; }
.sk-img   { height: 200px; }
.sk-avatar { width: 52px; height: 52px; border-radius: 50%; }
.sk-btn   { height: 44px; width: 140px; border-radius: 12px; }
.sk-badge { height: 28px; width: 120px; border-radius: 100px; }

/* Skeleton card wrapper */
.sk-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Page content fade-in after load ── */
.page-content {
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

.page-content.visible {
  opacity: 1;
}
