/* ============================================
   ACTIVE SKILLS PANEL - SPORE STYLE
   Панель активных навыков в стиле Spore
   ВРЕМЕННО СКРЫТА - требует доработки
   ============================================ */

/* Скрываем панель до полной доработки */
.active-skills-panel,
.skills-panel-show-btn {
  display: none !important;
}

/* Основной контейнер панели */
.active-skills-panel {
  position: fixed;
  top: 50px;
  left: 10px;
  z-index: 150;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Скрытое состояние */
.active-skills-panel.collapsed {
  transform: translateX(-100%);
}

/* Заголовок панели */
.skills-panel-header {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 200, 0.15) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px 12px 0 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
}

.skills-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.skills-panel-title-icon {
  font-size: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Кнопка toggle */
.skills-panel-toggle-btn {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #00d4ff;
  font-size: 12px;
}

.skills-panel-toggle-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Тело панели */
.skills-panel-body {
  background: linear-gradient(180deg, rgba(20, 25, 35, 0.95) 0%, rgba(15, 20, 30, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 8px;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Отдельный навык */
.skill-item {
  background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(25, 30, 40, 0.8) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-item:hover {
  background: linear-gradient(135deg, rgba(40, 45, 55, 0.9) 0%, rgba(35, 40, 50, 0.9) 100%);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  transform: translateX(2px);
}

/* Навык на кулдауне */
.skill-item.on-cooldown {
  opacity: 0.6;
  cursor: not-allowed;
}

.skill-item.on-cooldown:hover {
  transform: none;
}

/* Навык готов - пульсация */
.skill-item.ready {
  animation: skillReady 1.5s ease-in-out infinite;
  border-color: rgba(0, 255, 100, 0.4);
}

@keyframes skillReady {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 100, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 100, 0.5); }
}

/* Верхняя часть навыка */
.skill-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skill-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

/* Иконка навыка */
.skill-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 200, 0.2) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

/* Название навыка */
.skill-name {
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Хоткей */
.skill-hotkey {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #00d4ff;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 0 5px rgba(0, 212, 255, 0.2);
}

/* Прогресс-бар кулдауна */
.skill-cooldown-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.skill-cooldown-progress {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff 0%, #00a8cc 100%);
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Текст кулдауна */
.skill-cooldown-text {
  font-size: 10px;
  color: #00d4ff;
  text-align: right;
  margin-top: 2px;
  font-weight: 500;
}

/* Кнопка показа скрытой панели */
.skills-panel-show-btn {
  position: fixed;
  top: 50px;
  left: 10px;
  z-index: 150;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 200, 0.15) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.2);
  display: none;
}

.skills-panel-show-btn.visible {
  display: block;
}

.skills-panel-show-btn:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 150, 200, 0.25) 100%);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  transform: translateX(2px);
}

.skills-panel-show-btn-icon {
  font-size: 16px;
  color: #00d4ff;
}

/* Пустое состояние */
.skills-panel-empty {
  text-align: center;
  padding: 20px 10px;
  color: #888;
  font-size: 12px;
}

.skills-panel-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .active-skills-panel {
    top: 40px;
    left: 5px;
  }
  
  .skills-panel-body {
    min-width: 180px;
    max-width: 220px;
  }
  
  .skill-item {
    padding: 6px 8px;
  }
  
  .skill-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .skill-name {
    font-size: 12px;
  }
  
  .skill-hotkey {
    font-size: 10px;
    padding: 2px 5px;
  }
}

/* Анимация появления */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.active-skills-panel {
  animation: slideIn 0.3s ease-out;
}
