/* css/explorer.css — ventana Explorador (sistema de archivos del juego) */

.explorer-shell {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #ffffff;
  font-family: Tahoma, Arial, sans-serif; font-size: 11px;
  color: #111;
  overflow: hidden;
}

/* ── Barra de herramientas / dirección ── */
.exp-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  background: linear-gradient(180deg, #f6f5ee 0%, #e6e3d4 100%);
  border-bottom: 1px solid #b8b3a0;
  flex-shrink: 0;
}
.exp-btn {
  font-family: Tahoma, sans-serif; font-size: 11px;
  min-width: 24px; height: 22px; padding: 0 7px;
  border: 1px solid #8a8674;
  background: linear-gradient(180deg, #fefefe 0%, #e4e0d0 100%);
  cursor: pointer;
}
.exp-btn:hover:not(:disabled) { background: linear-gradient(180deg, #ffffff 0%, #dfeaff 100%); border-color: #3a6ea5; }
.exp-btn:disabled { color: #a09c8c; cursor: default; }
.exp-go { font-weight: bold; }
.exp-addr-label { color: #555; margin-left: 6px; }
.exp-addr {
  flex: 1; height: 22px; padding: 0 6px;
  border: 1px solid #7f9db9;
  font-family: Tahoma, sans-serif; font-size: 11px;
  background: #fff;
}

/* ── Cuerpo: panel de tareas + rejilla ── */
.exp-main { flex: 1; display: flex; min-height: 0; }

.exp-tasks {
  width: 168px; flex-shrink: 0;
  background: linear-gradient(180deg, #7ba2e0 0%, #6a8fd6 8%, #a7c0ec 60%, #cfe0f6 100%);
  border-right: 1px solid #4a70b0;
  padding: 8px; overflow-y: auto;
}
.exp-task-sec {
  background: rgba(255,255,255,.82);
  border: 1px solid #b7ccec;
  margin-bottom: 8px;
}
.exp-task-hd {
  font-weight: bold; color: #16418a;
  padding: 4px 8px;
  background: linear-gradient(180deg, #eef4ff 0%, #d7e4fa 100%);
  border-bottom: 1px solid #c3d5f0;
}
.exp-task {
  padding: 4px 8px 4px 14px;
  color: #12305e; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.exp-task:hover { color: #003; text-decoration: underline; }
.exp-task-off { color: #8a97ad; cursor: default; }
.exp-task-off:hover { text-decoration: none; }
.exp-detail { padding: 2px 8px; color: #333; }
.exp-detail b { color: #12305e; }

/* ── Rejilla de archivos ── */
.exp-files {
  flex: 1; min-width: 0;
  padding: 10px;
  display: flex; flex-wrap: wrap; align-content: flex-start;
  gap: 4px;
  overflow-y: auto;
  outline: none;
  background: #fff;
}
.exp-item {
  width: 88px; min-height: 74px;
  padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.exp-item:hover { background: #eaf1ff; }
.exp-item.sel  { background: #cddffb; border-color: #98b6e6; }
.exp-ico   { font-size: 30px; line-height: 1; }
.exp-label {
  font-size: 11px; line-height: 1.25; color: #111;
  word-break: break-word;
  max-width: 84px;
}
.exp-rename {
  font-family: Tahoma, sans-serif; font-size: 11px;
  width: 82px; border: 1px solid #3a6ea5; padding: 1px 2px;
  text-align: center;
}
.exp-empty { color: #888; padding: 12px; font-style: italic; }

/* ── Barra de estado ── */
.exp-status {
  flex-shrink: 0;
  height: 20px; line-height: 20px;
  padding: 0 8px;
  background: linear-gradient(180deg, #f6f5ee 0%, #e6e3d4 100%);
  border-top: 1px solid #b8b3a0;
  color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Menú contextual ── */
.exp-ctx {
  position: fixed;
  min-width: 160px;
  background: #f6f5ee;
  border: 1px solid #7a7a6a;
  box-shadow: 2px 2px 7px rgba(0,0,0,.4);
  font-family: Tahoma, Arial, sans-serif; font-size: 12px;
  padding: 2px;
  z-index: 999995;
}
.exp-ctx-item { padding: 4px 24px 4px 14px; white-space: nowrap; cursor: pointer; }
.exp-ctx-item:hover { background: #2458b8; color: #fff; }
.exp-ctx-off { color: #a09c8c; cursor: default; }
.exp-ctx-off:hover { background: transparent; color: #a09c8c; }
.exp-ctx-sep { height: 1px; background: #c8c8bc; margin: 3px 2px; }
