/* ==========================================
   1. Konfiguracja globalna i Reset
   ========================================== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
  overflow: hidden;
}

/* ==========================================
   2. Komponenty Glassmorphism
   ========================================== */
.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

/* ==========================================
   3. Custom Scrollbar
   ========================================== */
::-webkit-scrollbar {
  width: 5px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.5);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(51, 65, 85, 0.5) rgba(15, 23, 42, 0.4);
}

/* ==========================================
   4. Przyciski interaktywne 3D (Map Triggers)
   ========================================== */
.light-trigger-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, left, top;
}

.light-trigger-btn:hover {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

/* ==========================================
   5. Popovery
   ========================================== */
.popover-card {
  position: absolute;
  transform: translate(-50%, -120%);
  pointer-events: auto;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, left, top, opacity;
  z-index: 30;
  min-width: 170px;
}

.popover-card::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
}