/* ==========================================================================
   LTD SYSTEMS ARCHITECTURE - CYBER-STUDIO EDITORIAL DESIGN SYSTEM
   Theme: Obsidian & Electric Cyber Cyan / Meteors & Geometric Squares
   Author: Hoàng Hải Long (LTD)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --obsidian-dark: #090D14;
  --obsidian-card: #0F1622;
  --obsidian-surface: #15202F;
  --obsidian-border: #1E2D42;
  --cyber-cyan: #00F0FF;
  --cyber-cyan-glow: rgba(0, 240, 255, 0.25);
  --cyber-teal: #06B6D4;
  --electric-blue: #3B82F6;
  --neon-emerald: #10B981;
  --canvas-bg: #EAEFF5;
  --canvas-card: #FFFFFF;
  --ink-primary: #090D14;
  --text-muted: #64748B;
  --pure-white: #FFFFFF;
  --font-hero: 'Space Grotesk', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--canvas-bg);
  color: var(--ink-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--canvas-bg);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--obsidian-surface);
}

/* Graphic Outline Text */
.text-outline-white {
  color: transparent !important;
  -webkit-text-stroke: 2px #FFFFFF;
  text-stroke: 2px #FFFFFF;
}

.text-outline-cyan {
  color: transparent !important;
  -webkit-text-stroke: 2px var(--cyber-cyan);
  text-stroke: 2px var(--cyber-cyan);
}

.text-outline-dark {
  color: transparent !important;
  -webkit-text-stroke: 2px var(--obsidian-dark);
  text-stroke: 2px var(--obsidian-dark);
}

/* Vertical Text Utilities */
.vertical-text-rl {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ==========================================================================
   METEOR / SHOOTING STARS & GEOMETRIC SQUARES (BACKGROUND EFFECTS)
   ========================================================================== */

/* Fixed background layers */
.meteor-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.canvas-grid-pattern {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(rgba(15, 22, 34, 0.08) 1.5px, transparent 1.5px),
    radial-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  z-index: 0;
}

/* HIGH-CONTRAST METEORS / SHOOTING STARS (SAO BĂNG RÕ NÉT CHẠY LIÊN TỤC) */
.meteor {
  position: absolute;
  width: 280px;
  height: 3.5px;
  background: linear-gradient(90deg, #0284C7 0%, #00F0FF 60%, rgba(0, 240, 255, 0) 100%);
  transform-origin: left top;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.95));
}

.meteor::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -2px;
  width: 9.5px;
  height: 9.5px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 0 14px 4px #00F0FF, 0 0 24px 8px rgba(2, 132, 199, 0.9);
}

@keyframes meteor-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(-42deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate3d(-800px, 800px, 0) rotate(-42deg);
    opacity: 0;
  }
  100% {
    transform: translate3d(-800px, 800px, 0) rotate(-42deg);
    opacity: 0;
  }
}

.meteor-1 { top: -20px; right: 10%; animation: meteor-fall 4s linear infinite; animation-delay: 0s; width: 280px; }
.meteor-2 { top: 80px; right: 3%; animation: meteor-fall 4.8s linear infinite; animation-delay: 1.2s; width: 220px; }
.meteor-3 { top: 25%; right: 18%; animation: meteor-fall 4.4s linear infinite; animation-delay: 2.4s; width: 300px; }
.meteor-4 { top: 45%; right: 6%; animation: meteor-fall 5s linear infinite; animation-delay: 3.6s; width: 240px; }
.meteor-5 { top: 65%; right: 22%; animation: meteor-fall 4.2s linear infinite; animation-delay: 0.6s; width: 290px; }
.meteor-6 { top: 80%; right: 8%; animation: meteor-fall 4.6s linear infinite; animation-delay: 1.8s; width: 230px; }

/* AMBIENT FLOATING CYBER WIREFRAME SQUARES (KHUNG VUÔNG TRANG TRÍ RÕ RÀNG NỔI BẬT) */
.ambient-cyber-square {
  position: fixed;
  pointer-events: none;
  border-radius: 4px;
  z-index: 2;
}

.square-cyan-1 {
  top: 70px;
  left: 20px;
  width: 110px;
  height: 110px;
  border: 2px solid #06B6D4;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 15px rgba(0, 240, 255, 0.1);
  animation: float-ambient-1 9s ease-in-out infinite alternate;
}

.square-cyan-1::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px dashed rgba(6, 182, 212, 0.6);
}

.square-cyan-1::after {
  content: '+';
  position: absolute;
  top: -12px;
  right: -9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: #00F0FF;
  font-weight: 900;
  text-shadow: 0 0 8px #00F0FF;
}

.square-dark-1 {
  top: 110px;
  right: 25px;
  width: 130px;
  height: 130px;
  border: 2px solid #0F1622;
  background: rgba(15, 22, 34, 0.06);
  box-shadow: 0 8px 24px rgba(15, 22, 34, 0.15);
  animation: float-ambient-2 12s ease-in-out infinite alternate;
}

.square-dark-1::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1.5px solid #06B6D4;
  opacity: 0.7;
}

.square-dark-1::after {
  content: '+';
  position: absolute;
  bottom: -11px;
  left: -8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #0F1622;
  font-weight: 900;
}

.square-cyan-2 {
  top: 45%;
  left: 15px;
  width: 120px;
  height: 120px;
  border: 2px solid #00F0FF;
  background: rgba(0, 240, 255, 0.07);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  animation: float-ambient-2 11s ease-in-out infinite alternate;
}

.square-cyan-2::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(6, 182, 212, 0.5);
}

.square-cyan-2::after {
  content: '◈';
  position: absolute;
  bottom: -10px;
  left: -8px;
  font-size: 13px;
  color: #00F0FF;
  text-shadow: 0 0 8px #00F0FF;
}

.square-dark-2 {
  top: 52%;
  right: 20px;
  width: 140px;
  height: 140px;
  border: 2px solid #0F1622;
  background: rgba(15, 22, 34, 0.05);
  box-shadow: 0 8px 25px rgba(15, 22, 34, 0.14);
  animation: float-ambient-1 14s ease-in-out infinite alternate;
}

.square-dark-2::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgba(6, 182, 212, 0.5);
}

.square-cyan-3 {
  top: 75%;
  left: 25px;
  width: 100px;
  height: 100px;
  border: 2px solid #06B6D4;
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  animation: float-ambient-1 8s ease-in-out infinite alternate;
}

.square-dark-3 {
  top: 82%;
  right: 25px;
  width: 110px;
  height: 110px;
  border: 2px solid #0F1622;
  background: rgba(15, 22, 34, 0.05);
  animation: float-ambient-2 10s ease-in-out infinite alternate;
}

@keyframes float-ambient-1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
  100% { transform: translateY(12px) rotate(-4deg); }
}

@keyframes float-ambient-2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(16px) rotate(-6deg); }
  100% { transform: translateY(-14px) rotate(3deg); }
}

/* Local Floating Cyber Squares inside spreads */
.cyber-square {
  position: absolute;
  border: 1px solid rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.02);
  pointer-events: none;
  z-index: 0 !important;
  animation: float-square 12s ease-in-out infinite alternate;
}

.cyber-square-dark {
  position: absolute;
  border: 1px solid rgba(15, 22, 34, 0.12);
  background: rgba(15, 22, 34, 0.015);
  pointer-events: none;
  z-index: 0 !important;
  animation: float-square-rev 14s ease-in-out infinite alternate;
}

@keyframes float-square {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-18px) rotate(8deg); }
}

@keyframes float-square-rev {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(18px) rotate(-6deg); }
}

/* ALL DECORATIVE LINES & SHAPES ARE FORCED TO BEHIND CONTENT (z-index: 0) */
.diagonal-slash-cyan {
  position: absolute;
  height: 8px;
  background: var(--cyber-cyan);
  transform: rotate(-35deg);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0 !important;
  opacity: 0.8;
}

.diagonal-slash-dark {
  position: absolute;
  height: 8px;
  background: var(--obsidian-border);
  transform: rotate(-35deg);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0 !important;
  opacity: 0.5;
}

/* Geometric Wireframe Circles */
.wireframe-circle {
  position: absolute;
  border-radius: 9999px;
  border: 1.5px solid rgba(0, 240, 255, 0.28);
  pointer-events: none;
  z-index: 0 !important;
}

.wireframe-circle-dark {
  position: absolute;
  border-radius: 9999px;
  border: 1.5px solid rgba(15, 22, 34, 0.12);
  pointer-events: none;
  z-index: 0 !important;
}

/* Cross Grid Patterns */
.pattern-cross-cyan {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 5h2v14h-2zM5 11h14v2H5z' fill='rgba(0,240,255,0.3)'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  z-index: 0 !important;
}

/* Spread Container */
.lookbook-spread {
  background: #FFFFFF;
  box-shadow: 0 15px 40px -10px rgba(9, 13, 20, 0.1), 0 0 0 1px rgba(9, 13, 20, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lookbook-spread:hover {
  box-shadow: 0 20px 50px -10px rgba(9, 13, 20, 0.16);
}

/* Floating Navigation */
.cyber-nav {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 13, 20, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35), 0 0 15px var(--cyber-cyan-glow);
}

/* Pulsing Status Dot */
@keyframes ping-glow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.6); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
.live-dot {
  animation: ping-glow 2s infinite;
}

/* Syntax Highlighting */
.json-key { color: #00F0FF; font-weight: bold; }
.json-string { color: #A5F3FC; }
.json-number { color: #FCD34D; }
.json-boolean { color: #34D399; font-weight: bold; }
