/* 
  =============================================================================
  GRANDKASTEN 10k BUDGET UI - INSANE FEATURES (MORE!!!)
  =============================================================================
*/

/* --- 1. CUSTOM CONTEXT MENU (macOS Style) --- */
#gk-context-menu {
  position: fixed;
  z-index: 100000;
  width: 220px;
  background: rgba(30, 30, 32, 0.7);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.2);
  padding: 6px;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: top left;
}

#gk-context-menu.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.gk-cm-item {
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.1s;
}

.gk-cm-item:hover {
  background: var(--gk-accent-blue);
  color: #fff;
}

.gk-cm-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  opacity: 0.8;
}

.gk-cm-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

/* --- 2. LIVE THEME CUSTOMIZER WIDGET --- */
.gk-theme-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
}

.gk-theme-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gk-theme-btn:hover {
  transform: scale(1.1) rotate(45deg);
}

.gk-theme-btn i {
  font-size: 20px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: pulse-icon 2s infinite;
}

.gk-theme-panel {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 250px;
  background: rgba(30,30,32,0.85);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom left;
}

.gk-theme-widget.open .gk-theme-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.gk-theme-panel h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  text-align: center;
}
