/* ========================================= */
/* SKILLS / INVENTORY (Dynamic Colors)      */
/* ========================================= */

.skill-item {
  background: color-mix(in srgb, var(--hero-color) 3%, transparent);

  border: 1px solid color-mix(in srgb, var(--hero-color) 20%, transparent);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      color-mix(in srgb, var(--hero-color) 10%, transparent),
      transparent);

  transition: left 0.5s ease;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  background: color-mix(in srgb, var(--hero-color) 8%, transparent);
  border-color: var(--hero-color);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--hero-shadow);
}

/* Seção de Experiência (Mission Log) */
.mission-log {
  border-left: 2px solid #1a3a1a;
  position: relative;
}

.mission-log::before {
  content: "●";
  position: absolute;
  left: -8px;
  top: 0;
  color: var(--hero-color);
  /* Atualizado */
  font-size: 14px;
}

/* Footer (dica do fogo) */
.fire-hint {
  cursor: pointer;
  transition: all 0.3s ease;
}

.fire-hint:hover {
  text-shadow: 0 0 10px var(--hero-shadow);
  color: var(--hero-color);
}

/* Ícones de redes sociais */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #2a2a2a;
  background: rgba(0, 255, 0, 0.03);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #e0e0e0;
}

.social-icon:hover {
  border-color: var(--hero-color);
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 15px var(--hero-shadow);
  color: var(--hero-color);
}

/* Modal do VIM */
#vim-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

#vim-modal.active {
  display: flex;
}

.vim-container {
  width: 90vw;
  max-width: 1000px;
  height: 85vh;
  background: #0a0a0a;
  border: 2px solid var(--hero-color);
  box-shadow: 0 0 50px var(--hero-shadow);
  display: flex;
  flex-direction: column;
  font-family: "Space Mono", monospace;
  position: relative;
}

.vim-header {
  background: #1a1a1a;
  padding: 8px 16px;
  border-bottom: 1px solid #2a2a2a;
  color: var(--hero-color);
  font-size: 0.9rem;
}

.vim-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.vim-status {
  background: var(--hero-color);
  color: #0a0a0a;
  padding: 4px 16px;
  font-weight: bold;
  font-size: 0.9rem;
}

.vim-command {
  background: #0a0a0a;
  color: #e0e0e0;
  padding: 4px 16px;
  border-top: 1px solid #2a2a2a;
  font-size: 0.9rem;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.vim-command input {
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: "Space Mono", monospace;
  width: calc(100% - 20px);
  font-size: 0.9rem;
}

.vim-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--hero-color);
  animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.vim-line-number {
  color: #666;
  margin-right: 16px;
  user-select: none;
  display: inline-block;
  min-width: 20px;
}

.vim-error {
  color: #ff5555;
  background: #1a0000;
  padding: 4px 16px;
  border-top: 1px solid #2a2a2a;
}

/* Media query para responsividade */
@media (max-width: 768px) {
  .social-icon {
    width: 36px;
    height: 36px;
  }

  .vim-container {
    width: 95vw;
    height: 90vh;
  }

  .vim-content {
    font-size: 0.85rem;
    padding: 12px;
  }

  .vim-header,
  .vim-status,
  .vim-command {
    font-size: 0.8rem;
  }
}