/* Fix My Skill - Main CSS Design System (Lost Fellows Brutalist Editorial Aesthetic) */
:root {
  --bg-void: #050507;
  --bg-card: #0e0e14;
  --bg-card-hover: #12121c;
  --text-main: #ffffff;
  --text-inverse: #050507;
  --text-muted: #9a9ab0;
  --text-dim: #666678;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.28);
  --border-inverse: rgba(0, 0, 0, 0.2);
  --accent-dot: #2a2a35;
  --glow-color: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.04);
  --sound-bg: rgba(10, 10, 15, 0.92);
  --sound-border: rgba(255, 255, 255, 0.18);
  --cursor-border: rgba(255, 255, 255, 0.95);
  --cursor-dot: #ffffff;
  --cursor-hover-bg: rgba(255, 255, 255, 0.18);
  --cursor-text-bg: rgba(255, 255, 255, 0.12);
  --cursor-text-border: rgba(255, 255, 255, 0.9);
  --cursor-glow: 0 0 20px rgba(255, 255, 255, 0.25);
  --font-display: 'Syne', 'Unbounded', sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Mode Theme Option (Default Theme) */
[data-theme="light"] {
  --bg-void: #f8f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --text-main: #0a0a0f;
  --text-inverse: #ffffff;
  --text-muted: #3a3a4b;
  --text-dim: #666678;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-inverse: rgba(255, 255, 255, 0.2);
  --accent-dot: #d0d0d8;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.07);
  --sound-bg: rgba(248, 248, 250, 0.94);
  --sound-border: rgba(0, 0, 0, 0.14);
  --cursor-border: rgba(10, 10, 15, 0.95);
  --cursor-dot: #0a0a0f;
  --cursor-hover-bg: rgba(10, 10, 15, 0.15);
  --cursor-text-bg: rgba(10, 10, 15, 0.08);
  --cursor-text-border: rgba(10, 10, 15, 0.85);
  --cursor-glow: 0 0 15px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  background-color: var(--bg-void);
  cursor: crosshair;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease;
}

/* Lost Fellows Interactive Dot Matrix Canvas Layer */
.dot-matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* Ambient Background Mesh Glow Orbs */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: float-glow 14s infinite ease-in-out alternate;
}

.orb-1 {
  top: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: var(--glow-color);
}

.orb-2 {
  top: 40%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: var(--glow-color);
}

@keyframes float-glow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.08); }
  100% { transform: translateY(20px) scale(0.95); }
}

/* Halftone Matrix Overlay */
.halftone-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image: radial-gradient(rgba(120, 120, 120, 0.2) 1px, transparent 0);
  background-size: 4px 4px;
}

/* Main Container Layout */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .app-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 0 1.15rem;
  }
}

/* Lost Fellows Floating Translucent Glass Custom Scrollbar Engine (Right Edge Auto-Hide) */
.custom-glass-scrollbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 12px;
  height: 100vh;
  z-index: 999999;
  pointer-events: none;
}

.custom-glass-thumb {
  position: absolute;
  right: 3px;
  top: 0;
  width: 6px;
  min-height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: auto;
  cursor: grab;
  will-change: transform, opacity;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.2s ease, 
              background-color 0.2s ease;
}

[data-theme="light"] .custom-glass-thumb {
  background: rgba(10, 10, 15, 0.35);
  border-color: rgba(0, 0, 0, 0.15);
}

.custom-glass-thumb.visible {
  opacity: 1 !important;
}

.custom-glass-thumb:hover,
.custom-glass-thumb.dragging {
  width: 8px;
  background: rgba(255, 255, 255, 0.65);
  cursor: grabbing;
}

[data-theme="light"] .custom-glass-thumb:hover,
[data-theme="light"] .custom-glass-thumb.dragging {
  background: rgba(10, 10, 15, 0.65);
}

/* Hide native scrollbars cleanly */
::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
}
html {
  scrollbar-width: none !important;
}

/* Selection State */
::selection {
  background: var(--text-main);
  color: var(--bg-void);
}
